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 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/sun/java/swing/SwingUtilities3.java
/* * Copyright (c) 2002, 2021, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.java.swing; import sun.awt.AppContext; import sun.awt.SunToolkit; import java.util.Collections; import java.util.Map; import java.util.WeakHashMap; import java.applet.Applet; import java.awt.Component; import java.awt.Container; import java.awt.Window; import javax.swing.JComponent; import javax.swing.RepaintManager; /** * A collection of utility methods for Swing. * <p> * <b>WARNING:</b> While this class is public, it should not be treated as * public API and its API may change in incompatable ways between dot dot * releases and even patch releases. You should not rely on this class even * existing. * * This is a second part of sun.swing.SwingUtilities2. It is required * to provide services for JavaFX applets. * */ public class SwingUtilities3 { /** * The {@code clientProperty} key for delegate {@code RepaintManager} */ private static final Object DELEGATE_REPAINT_MANAGER_KEY = new StringBuilder("DelegateRepaintManagerKey"); /** * Registers delegate RepaintManager for {@code JComponent}. */ public static void setDelegateRepaintManager(JComponent component, RepaintManager repaintManager) { /* setting up flag in AppContext to speed up lookups in case * there are no delegate RepaintManagers used. */ AppContext.getAppContext().put(DELEGATE_REPAINT_MANAGER_KEY, Boolean.TRUE); component.putClientProperty(DELEGATE_REPAINT_MANAGER_KEY, repaintManager); } private static final Map<Container, Boolean> vsyncedMap = Collections.synchronizedMap(new WeakHashMap<Container, Boolean>()); /** * Sets vsyncRequested state for the {@code rootContainer}. If * {@code isRequested} is {@code true} then vsynced * {@code BufferStrategy} is enabled for this {@code rootContainer}. * * Note: requesting vsynced painting does not guarantee one. The outcome * depends on current RepaintManager's RepaintManager.PaintManager * and on the capabilities of the graphics hardware/software and what not. * * @param rootContainer topmost container. Should be either {@code Window} * or {@code Applet} * @param isRequested the value to set vsyncRequested state to */ @SuppressWarnings("removal") public static void setVsyncRequested(Container rootContainer, boolean isRequested) { assert (rootContainer instanceof Applet) || (rootContainer instanceof Window); if (isRequested) { vsyncedMap.put(rootContainer, Boolean.TRUE); } else { vsyncedMap.remove(rootContainer); } } /** * Checks if vsync painting is requested for {@code rootContainer} * * @param rootContainer topmost container. Should be either Window or Applet * @return {@code true} if vsync painting is requested for {@code rootContainer} */ @SuppressWarnings("removal") public static boolean isVsyncRequested(Container rootContainer) { assert (rootContainer instanceof Applet) || (rootContainer instanceof Window); return Boolean.TRUE == vsyncedMap.get(rootContainer); } /** * Returns delegate {@code RepaintManager} for {@code component} hierarchy. */ public static RepaintManager getDelegateRepaintManager(Component component) { RepaintManager delegate = null; if (Boolean.TRUE == SunToolkit.targetToAppContext(component) .get(DELEGATE_REPAINT_MANAGER_KEY)) { while (delegate == null && component != null) { while (component != null && ! (component instanceof JComponent)) { component = component.getParent(); } if (component != null) { delegate = (RepaintManager) ((JComponent) component) .getClientProperty(DELEGATE_REPAINT_MANAGER_KEY); component = component.getParent(); } } } return delegate; } }
⏎ com/sun/java/swing/SwingUtilities3.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
2023-09-16, 62294👍, 0💬
Popular Posts:
JSP(tm) Standard Tag Library 1.0 implementation - Jakarta Taglibs hosts the Standard Taglib 1.0, an ...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
commons-collections4-4.2 -sources.jaris the source JAR file for Apache Commons Collections 4.2, whic...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What JAR files are required to run sax\Writer.java provided in the Apache Xerces package? 1 JAR file...