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/apple/laf/AquaMnemonicHandler.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 java.awt.event.KeyEvent; import javax.swing.*; import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor; public class AquaMnemonicHandler { private static final RecyclableSingleton<AltProcessor> altProcessor = new RecyclableSingletonFromDefaultConstructor<AltProcessor>(AltProcessor.class); public static KeyEventPostProcessor getInstance() { return altProcessor.get(); } protected static boolean isMnemonicHidden = true; // true by default public static void setMnemonicHidden(final boolean hide) { if (UIManager.getBoolean("Button.showMnemonics")) { // Do not hide mnemonics if the UI defaults do not support this isMnemonicHidden = false; } else { isMnemonicHidden = hide; } } /** * Gets the state of the hide mnemonic flag. This only has meaning if this feature is supported by the underlying OS. * * @return true if mnemonics are hidden, otherwise, false * @see #setMnemonicHidden * @since 1.4 */ public static boolean isMnemonicHidden() { if (UIManager.getBoolean("Button.showMnemonics")) { // Do not hide mnemonics if the UI defaults do not support this isMnemonicHidden = false; } return isMnemonicHidden; } static class AltProcessor implements KeyEventPostProcessor { public boolean postProcessKeyEvent(final KeyEvent ev) { if (ev.getKeyCode() != KeyEvent.VK_ALT) { return false; } final JRootPane root = SwingUtilities.getRootPane(ev.getComponent()); final Window winAncestor = (root == null ? null : SwingUtilities.getWindowAncestor(root)); switch(ev.getID()) { case KeyEvent.KEY_PRESSED: setMnemonicHidden(false); break; case KeyEvent.KEY_RELEASED: setMnemonicHidden(true); break; } repaintMnemonicsInWindow(winAncestor); return false; } } /* * Repaints all the components with the mnemonics in the given window and all its owned windows. */ static void repaintMnemonicsInWindow(final Window w) { if (w == null || !w.isShowing()) { return; } final Window[] ownedWindows = w.getOwnedWindows(); for (final Window element : ownedWindows) { repaintMnemonicsInWindow(element); } repaintMnemonicsInContainer(w); } /* * Repaints all the components with the mnemonics in container. * Recursively searches for all the subcomponents. */ static void repaintMnemonicsInContainer(final Container cont) { for (int i = 0; i < cont.getComponentCount(); i++) { final Component c = cont.getComponent(i); if (c == null || !c.isVisible()) { continue; } if (c instanceof AbstractButton && ((AbstractButton)c).getMnemonic() != '\0') { c.repaint(); continue; } if (c instanceof JLabel && ((JLabel)c).getDisplayedMnemonic() != '\0') { c.repaint(); continue; } if (c instanceof Container) { repaintMnemonicsInContainer((Container)c); } } } }
⏎ com/apple/laf/AquaMnemonicHandler.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, 33274👍, 0💬
Popular Posts:
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
What is the sax\Counter.java provided in the Apache Xerces package? I have Apache Xerces 2.11.0 inst...
JDK 6 tools.jar is the JAR file for JDK 6 tools. It contains Java classes to support different JDK t...
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool, which can be invoked by the "jco...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...