Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 17 jdk.unsupported.desktop.jmod - Unsupported Desktop Module
JDK 17 jdk.unsupported.desktop.jmod is the JMOD file for JDK 17 Unsupported Desktop module.
JDK 17 Unsupported Desktop module compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.unsupported.desktop.jmod.
JDK 17 Unsupported Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 Unsupported Desktop module source code files are stored in \fyicenter\jdk-17.0.5\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-17.0.5-src.zip File size: 8021 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.xml.dom.jmod - XML DOM Module
2022-11-07, ∼3855🔥, 0💬
Popular Posts:
Xalan-Java, Version 2.7.1, is an XSLT processor for transforming XML documents into HTML, text, or o...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
JavaMail Source Code Files are provided in the source package file, httpcomponents-client-5. 2-src.zi...
What Is ojdbc5.jar for Oracle 11g R1? ojdbc5.jar for Oracle 11g R1 is the JAR files of ojdbc.jar, JD...
Apache Log4j 1.2 Bridge allows applications coded to use Log4j 1.2 API to use Log4j 2 instead. Bytec...