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

sun/lwawt/LWRepaintArea.java

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


package sun.lwawt;

import java.awt.Component;
import java.awt.Graphics;

import sun.awt.AWTAccessor;
import sun.awt.RepaintArea;

/**
 * Emulates appearance of heavyweight components before call of the user code.
 *
 * @author Sergey Bylokhov
 */
final class LWRepaintArea extends RepaintArea {

    @Override
    protected void updateComponent(final Component comp, final Graphics g) {
        // We shouldn't paint native component as a result of UPDATE events,
        // just flush onscreen back-buffer.
        if (comp != null) {
            super.updateComponent(comp, g);
            LWComponentPeer.flushOnscreenGraphics();
        }
    }

    @Override
    protected void paintComponent(final Component comp, final Graphics g) {
        if (comp != null) {
            Object peer = AWTAccessor.getComponentAccessor().getPeer(comp);
            if (peer != null) {
                ((LWComponentPeer<?, ?>) peer).paintPeer(g);
            }
            super.paintComponent(comp, g);
            LWComponentPeer.flushOnscreenGraphics();
        }
    }
}

sun/lwawt/LWRepaintArea.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, ≈458🔥, 0💬