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/AquaTextPasswordFieldUI.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.*; import java.awt.geom.*; import javax.swing.*; import javax.swing.border.Border; import javax.swing.plaf.*; import javax.swing.text.*; import com.apple.laf.AquaUtils.RecyclableSingleton; import com.apple.laf.AquaUtils.RecyclableSingletonFromDefaultConstructor; public class AquaTextPasswordFieldUI extends AquaTextFieldUI { private static final RecyclableSingleton<CapsLockSymbolPainter> capsLockPainter = new RecyclableSingletonFromDefaultConstructor<CapsLockSymbolPainter>(CapsLockSymbolPainter.class); static CapsLockSymbolPainter getCapsLockPainter() { return capsLockPainter.get(); } public static ComponentUI createUI(final JComponent c) { return new AquaTextPasswordFieldUI(); } @Override protected String getPropertyPrefix() { return "PasswordField"; } @Override public View create(final Element elem) { return new AquaPasswordView(elem); } @Override protected void installListeners() { super.installListeners(); getComponent().addKeyListener(getCapsLockPainter()); } @Override protected void uninstallListeners() { getComponent().removeKeyListener(getCapsLockPainter()); super.uninstallListeners(); } @Override protected void paintBackgroundSafely(final Graphics g) { super.paintBackgroundSafely(g); final JTextComponent component = getComponent(); if (component == null) return; if (!component.isFocusOwner()) return; final boolean capsLockDown = Toolkit.getDefaultToolkit().getLockingKeyState(KeyEvent.VK_CAPS_LOCK); if (!capsLockDown) return; final Rectangle bounds = component.getBounds(); getCapsLockPainter().paintBorder(component, g, bounds.x, bounds.y, bounds.width, bounds.height); } protected class AquaPasswordView extends PasswordView { public AquaPasswordView(final Element elem) { super(elem); setupDefaultEchoCharacter(); } protected void setupDefaultEchoCharacter() { // this allows us to change the echo character in CoreAquaLookAndFeel.java final Character echoChar = (Character)UIManager.getDefaults().get(getPropertyPrefix() + ".echoChar"); if (echoChar != null) { LookAndFeel.installProperty(getComponent(), "echoChar", echoChar); } } } static class CapsLockSymbolPainter extends KeyAdapter implements Border, UIResource { protected Shape capsLockShape; protected Shape getCapsLockShape() { if (capsLockShape != null) return capsLockShape; final RoundRectangle2D rect = new RoundRectangle2D.Double(0.5, 0.5, 16, 16, 8, 8); final GeneralPath shape = new GeneralPath(rect); shape.setWindingRule(Path2D.WIND_EVEN_ODD); // arrow shape.moveTo( 8.50, 2.00); shape.lineTo( 4.00, 7.00); shape.lineTo( 6.25, 7.00); shape.lineTo( 6.25, 10.25); shape.lineTo(10.75, 10.25); shape.lineTo(10.75, 7.00); shape.lineTo(13.00, 7.00); shape.lineTo( 8.50, 2.00); // base line shape.moveTo(10.75, 12.00); shape.lineTo( 6.25, 12.00); shape.lineTo( 6.25, 14.25); shape.lineTo(10.75, 14.25); shape.lineTo(10.75, 12.00); return capsLockShape = shape; } @Override public Insets getBorderInsets(final Component c) { return new Insets(0, 0, 0, 0); } @Override public boolean isBorderOpaque() { return false; } @Override public void paintBorder(final Component c, Graphics g, final int x, final int y, final int width, final int height) { g = g.create(width - 23, height / 2 - 8, 18, 18); g.setColor(UIManager.getColor("PasswordField.capsLockIconColor")); ((Graphics2D)g).setRenderingHint(RenderingHints.KEY_ANTIALIASING, RenderingHints.VALUE_ANTIALIAS_ON); ((Graphics2D)g).fill(getCapsLockShape()); g.dispose(); } @Override public void keyPressed(final KeyEvent e) { update(e); } @Override public void keyReleased(final KeyEvent e) { update(e); } void update(final KeyEvent e) { if (KeyEvent.VK_CAPS_LOCK != e.getKeyCode()) return; e.getComponent().repaint(); } } }
⏎ com/apple/laf/AquaTextPasswordFieldUI.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, 84111👍, 0💬
Popular Posts:
How to download and install JDK (Java Development Kit) 8? If you want to write Java applications, yo...
What Is HttpComponents commons-httpclient-3.1.j ar?HttpComponents commons-httpclient-3.1.j aris the ...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
What JAR files are required to run sax\Writer.java provided in the Apache Xerces package? 1 JAR file...
What Is poi-examples-5.2.3.jar? poi-examples-5.2.3.jar is one of the JAR files for Apache POI 5.2.3,...