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/AquaMenuBorder.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.*;

import javax.swing.*;
import javax.swing.border.Border;
import javax.swing.plaf.UIResource;

public class AquaMenuBorder implements Border, UIResource {
    public AquaMenuBorder() { }

    /**
     * Paints the border for the specified component with the specified
     * position and size.
     * @param c the component for which this border is being painted
     * @param g the paint graphics
     * @param x the x position of the painted border
     * @param y the y position of the painted border
     * @param width the width of the painted border
     * @param height the height of the painted border
     */
    public void paintBorder(final Component c, final Graphics g, final int x, final int y, final int width, final int height) {
        // for now we don't paint a border. We let the button paint it since there
        // needs to be a strict ordering for aqua components.
        //paintButton(c, g, x, y, width, height);
        //if (c instanceof JPopupMenu) {
            //g.setColor(Color.red);
            //g.drawRect(x,y, width-1, height-1);
        //}
    }

    /**
     * Returns whether or not the border is opaque.  If the border
     * is opaque, it is responsible for filling in it's own
     * background when painting.
     */
    public boolean isBorderOpaque() {
        return false;
    }

    protected static Insets getItemInsets() {
        return new Insets(1, 5, 1, 5);
    }

    protected static Insets getEmptyInsets() {
        return new Insets(0, 0, 0, 0);
    }

    protected static Insets getPopupInsets() {
        return new Insets(4, 0, 4, 0);
    }

    /**
     * Returns the insets of the border.
     * @param c the component for which this border insets value applies
     */
    public Insets getBorderInsets(final Component c) {
        if (!(c instanceof JPopupMenu)) {
            return getItemInsets();
        }

        // for more info on this issue, see AquaComboBoxPopup.updateContents()
        final JPopupMenu menu = (JPopupMenu)c;
        final int nChildren = menu.getComponentCount();
        if (nChildren > 0) {
            final Component firstChild = menu.getComponent(0);
            if (firstChild instanceof Box.Filler) return getEmptyInsets();
            if (firstChild instanceof JScrollPane) return getEmptyInsets();
        }

        // just need top and bottom, and not right and left.
        // but only for non-list popups.
        return getPopupInsets();
    }
}

com/apple/laf/AquaMenuBorder.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, 30763👍, 0💬