Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (101)
JavaBeans (21)
JDBC (121)
JDK (426)
JSP (20)
Logging (108)
Mail (58)
Messaging (8)
Network (84)
PDF (97)
Report (7)
Scripting (84)
Security (32)
Server (121)
Servlet (26)
SOAP (24)
Testing (54)
Web (15)
XML (309)
Collections:
Other Resources:
JDK 11 jdk.unsupported.desktop.jmod - Unsupported Desktop Module
JDK 11 jdk.unsupported.desktop.jmod is the JMOD file for JDK 11 Unsupported Desktop module.
JDK 11 Unsupported Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.unsupported.desktop.jmod.
JDK 11 Unsupported Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Unsupported Desktop module source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.unsupported.desktop.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ jdk/swing/interop/LightweightFrameWrapper.java
/* * Copyright (c) 2018, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package jdk.swing.interop; import java.awt.AWTEvent; import java.awt.Container; import java.awt.Component; import java.awt.event.WindowFocusListener; import java.awt.event.MouseEvent; import java.awt.event.MouseWheelEvent; import java.awt.event.KeyEvent; import sun.awt.LightweightFrame; import sun.awt.UngrabEvent; import sun.awt.AWTAccessor; import sun.swing.JLightweightFrame; /** * This class wraps sun.swing.JLightweightFrame and implements * APIs to be used by FX swing interop to access and use JLightweightFrame APIs. * * @since 11 */ public class LightweightFrameWrapper { JLightweightFrame lwFrame; public LightweightFrameWrapper() { lwFrame = new JLightweightFrame(); } private JLightweightFrame getLightweightFrame() { return lwFrame; } public void notifyDisplayChanged(final int scaleFactor) { if (lwFrame != null) { lwFrame.notifyDisplayChanged(scaleFactor, scaleFactor); } } /** * {@code overrideNativeWindowHandle()} is package private but * part of the interface of this class. It supports providing a * foreign native window handle (i.e. an FX window handle) to AWT, * and as such is intended to be called via JNI code, * not by Java code, so it is not public. */ void overrideNativeWindowHandle(long handle, Runnable closeWindow) { if (lwFrame != null) { lwFrame.overrideNativeWindowHandle(handle, closeWindow); } } public void setHostBounds(int x, int y, int w, int h) { if (lwFrame != null) { lwFrame.setHostBounds(x, y, w, h); } } public void dispose() { if (lwFrame != null) { lwFrame.dispose(); } } public void addWindowFocusListener(WindowFocusListener listener) { if (lwFrame != null) { lwFrame.addWindowFocusListener(listener); } } public void setVisible(boolean visible) { if (lwFrame != null) { lwFrame.setVisible(visible); } } public void setBounds(int x, int y, int w, int h) { if (lwFrame != null) { lwFrame.setBounds(x, y, w, h); } } public void setContent(final LightweightContentWrapper lwCntWrapper) { if (lwFrame != null) { lwFrame.setContent(lwCntWrapper.getContent()); } } public void emulateActivation(boolean activate) { if (lwFrame != null) { lwFrame.emulateActivation(activate); } } public MouseEvent createMouseEvent(LightweightFrameWrapper lwFrame, int swingID, long swingWhen, int swingModifiers, int relX, int relY, int absX, int absY, int clickCount, boolean swingPopupTrigger, int swingButton) { return new java.awt.event.MouseEvent(lwFrame.getLightweightFrame(), swingID, swingWhen, swingModifiers, relX, relY, absX, absY, clickCount, swingPopupTrigger, swingButton); } public MouseWheelEvent createMouseWheelEvent(LightweightFrameWrapper lwFrame, int swingModifiers, int x, int y, int wheelRotation) { return new MouseWheelEvent(lwFrame.getLightweightFrame(), java.awt.event.MouseEvent.MOUSE_WHEEL, System.currentTimeMillis(), swingModifiers, x, y, 0, 0, 0, false, MouseWheelEvent.WHEEL_UNIT_SCROLL, 1, wheelRotation); } public KeyEvent createKeyEvent(LightweightFrameWrapper lwFrame, int swingID, long swingWhen, int swingModifiers, int swingKeyCode, char swingChar) { return new java.awt.event.KeyEvent(lwFrame.getLightweightFrame(), swingID, swingWhen, swingModifiers, swingKeyCode, swingChar); } public AWTEvent createUngrabEvent(LightweightFrameWrapper lwFrame) { return new UngrabEvent(lwFrame.getLightweightFrame()); } public Component findComponentAt(LightweightFrameWrapper cont, int x, int y, boolean ignoreEnabled) { Container lwframe = cont.getLightweightFrame(); return AWTAccessor.getContainerAccessor().findComponentAt(lwframe, x, y, ignoreEnabled); } public boolean isCompEqual(Component c, LightweightFrameWrapper lwFrame) { return c != lwFrame.getLightweightFrame(); } }
⏎ jdk/swing/interop/LightweightFrameWrapper.java
Or download all of them as a single archive file:
File name: jdk.unsupported.desktop-11.0.1-src.zip File size: 7362 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.xml.dom.jmod - XML DOM Module
2022-06-28, 6644👍, 3💬
Popular Posts:
A stream buffer is a stream-based representation of an XML infoset in Java. Stream buffers are desig...
JDK 11 jdk.dynalink.jmod is the JMOD file for JDK 11 Dynamic Linking module. JDK 11 Dynamic Linking ...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
What Is HttpComponents httpclient-4.2.2.jar? HttpComponents httpclient-4.2.2.jar is the JAR file for...
The Jakarta-ORO Java classes are a set of text-processing Java classes that provide Perl5 compatible...