JDK 17 java.desktop.jmod - Desktop Module

JDK 17 java.desktop.jmod is the JMOD file for JDK 17 Desktop module.

JDK 17 Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\java.desktop.jmod.

JDK 17 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.

JDK 17 Desktop module source code files are stored in \fyicenter\jdk-17.0.5\lib\src.zip\java.desktop.

You can click and view the content of each source code file in the list below.

✍: FYIcenter

com/apple/laf/AquaInternalFrameBorderMetrics.java

/*
 * Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
 * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 *
 */

package com.apple.laf;

import java.awt.Font;

import apple.laf.JRSUIUtils;
import com.apple.laf.AquaUtils.RecyclableSingleton;

public abstract class AquaInternalFrameBorderMetrics {
    private static final boolean useLegacyBorderMetrics = JRSUIUtils.InternalFrame.shouldUseLegacyBorderMetrics();

    public Font font;
    public int titleBarHeight;
    public int leftSidePadding;
    public int buttonHeight;
    public int buttonWidth;
    public int buttonPadding;
    public int downShift;

    private AquaInternalFrameBorderMetrics() {
        initialize();
    }

    protected abstract void initialize();

    public static AquaInternalFrameBorderMetrics getMetrics(boolean isUtility) {
        if (useLegacyBorderMetrics) {
            return isUtility ? legacyUtilityMetrics.get() : legacyStandardMetrics.get();
        } else {
            return isUtility ? utilityMetrics.get() : standardMetrics.get();
        }
    }

    private static final RecyclableSingleton<AquaInternalFrameBorderMetrics> standardMetrics = new RecyclableSingleton<AquaInternalFrameBorderMetrics>() {
        @Override
        protected AquaInternalFrameBorderMetrics getInstance() {
            return new AquaInternalFrameBorderMetrics() {
                protected void initialize() {
                    font = new Font("Lucida Grande", Font.PLAIN, 13);
                    titleBarHeight = 22;
                    leftSidePadding = 7;
                    buttonHeight = 15;
                    buttonWidth = 15;
                    buttonPadding = 5;
                    downShift = 0;
                }
            };
        }
    };

    private static final RecyclableSingleton<AquaInternalFrameBorderMetrics> utilityMetrics = new RecyclableSingleton<AquaInternalFrameBorderMetrics>() {
        @Override
        protected AquaInternalFrameBorderMetrics getInstance() {
            return new AquaInternalFrameBorderMetrics() {
                protected void initialize() {
                    font = new Font("Lucida Grande", Font.PLAIN, 11);
                    titleBarHeight = 16;
                    leftSidePadding = 6;
                    buttonHeight = 12;
                    buttonWidth = 12;
                    buttonPadding = 6;
                    downShift = 0;
                }
            };
        }
    };

    private static final RecyclableSingleton<AquaInternalFrameBorderMetrics> legacyStandardMetrics = new RecyclableSingleton<AquaInternalFrameBorderMetrics>() {
        @Override
        protected AquaInternalFrameBorderMetrics getInstance() {
            return new AquaInternalFrameBorderMetrics() {
                protected void initialize() {
                    font = new Font("Lucida Grande", Font.PLAIN, 13);
                    titleBarHeight = 22;
                    leftSidePadding = 8;
                    buttonHeight = 15;
                    buttonWidth = 15;
                    buttonPadding = 6;
                    downShift = 1;
                }
            };
        }
    };

    private static final RecyclableSingleton<AquaInternalFrameBorderMetrics> legacyUtilityMetrics = new RecyclableSingleton<AquaInternalFrameBorderMetrics>() {
        @Override
        protected AquaInternalFrameBorderMetrics getInstance() {
            return new AquaInternalFrameBorderMetrics() {
                protected void initialize() {
                    font = new Font("Lucida Grande", Font.PLAIN, 11);
                    titleBarHeight = 16;
                    leftSidePadding = 5;
                    buttonHeight = 13;
                    buttonWidth = 13;
                    buttonPadding = 5;
                    downShift = 0;
                }
            };
        }
    };
}

com/apple/laf/AquaInternalFrameBorderMetrics.java

 

Or download all of them as a single archive file:

File name: java.desktop-17.0.5-src.zip
File size: 9152233 bytes
Release date: 2022-09-13
Download 

 

JDK 17 java.instrument.jmod - Instrument Module

JDK 17 java.datatransfer.jmod - Data Transfer Module

JDK 17 JMod/Module Files

⇑⇑ FAQ for JDK (Java Development Kit) 17

2023-09-16, 31132👍, 0💬