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/AquaToolBarUI.java
/* * Copyright (c) 2011, 2014, 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 javax.swing.*; import javax.swing.border.*; import javax.swing.plaf.*; import javax.swing.plaf.basic.BasicToolBarUI; import com.apple.laf.AquaUtils.*; public class AquaToolBarUI extends BasicToolBarUI implements SwingConstants { private static final RecyclableSingleton<ToolBarBorder> toolBarBorder = new RecyclableSingletonFromDefaultConstructor<ToolBarBorder>(ToolBarBorder.class); public static Border getToolBarBorder() { return toolBarBorder.get(); } public static ComponentUI createUI(final JComponent c) { return new AquaToolBarUI(); } protected void setBorderToNonRollover(final Component c) { } protected void setBorderToNormal(final Component c) { } protected void setBorderToRollover(final Component c) { } protected RootPaneContainer createFloatingWindow(final JToolBar toolbar) { final RootPaneContainer window = super.createFloatingWindow(toolbar); window.getRootPane().putClientProperty("Window.style", "small"); return window; } /* ToolBarBorder and drag-off handle, based loosly on MetalBumps */ @SuppressWarnings("serial") // Superclass is not serializable across versions static class ToolBarBorder extends AbstractBorder implements UIResource, javax.swing.SwingConstants { protected void fillHandle(final Graphics g, final int x1, final int y1, final int x2, final int y2, final boolean horizontal) { g.setColor(UIManager.getColor("ToolBar.borderHandleColor")); if (horizontal) { final int h = y2 - y1 - 2; g.fillRect(x1 + 2, y1 + 1, 1, h); g.fillRect(x1 + 5, y1 + 1, 1, h); } else { final int w = x2 - x1 - 2; g.fillRect(x1 + 1, y1 + 2, w, 1); g.fillRect(x1 + 1, y1 + 5, w, 1); } } public void paintBorder(final java.awt.Component c, final Graphics g, int x, int y, final int w, final int h) { g.translate(x, y); if (c.isOpaque()) { AquaUtils.fillRect(g, c, c.getBackground(), 0, 0, w - 1, h - 1); } final Color oldColor = g.getColor(); final JToolBar jtb = (JToolBar)c; final ComponentOrientation orient = jtb.getComponentOrientation(); final boolean horizontal = jtb.getOrientation() == SwingConstants.HORIZONTAL; if (jtb.isFloatable()) { if (horizontal) { if (orient.isLeftToRight()) { fillHandle(g, 2, 2, 10, h - 2, true); } else { fillHandle(g, w - 10, 2, w - 2, h - 2, true); } } else { fillHandle(g, 2, 2, w - 2, 10, false); } } g.setColor(oldColor); g.translate(-x, -y); } public Insets getBorderInsets(final java.awt.Component c) { final Insets borderInsets = new Insets(5, 5, 5, 5); return getBorderInsets(c, borderInsets); } public Insets getBorderInsets(final java.awt.Component c, final Insets borderInsets) { borderInsets.left = 4; borderInsets.right = 4; borderInsets.top = 2; borderInsets.bottom = 2; if (((JToolBar)c).isFloatable()) { if (((JToolBar)c).getOrientation() == HORIZONTAL) { borderInsets.left = 12; // We don't have to adjust for right-to-left } else { // vertical borderInsets.top = 12; } } final Insets margin = ((JToolBar)c).getMargin(); if (margin != null) { borderInsets.left += margin.left; borderInsets.top += margin.top; borderInsets.right += margin.right; borderInsets.bottom += margin.bottom; } return borderInsets; } public boolean isBorderOpaque() { return true; } } @Override public final void update(final Graphics g, final JComponent c) { if (c.isOpaque()) { AquaUtils.fillRect(g, c); } paint(g, c); } }
⏎ com/apple/laf/AquaToolBarUI.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, 47951👍, 0💬
Popular Posts:
What is jxl.jar 2.6.12? jxl.jar 2.6.12 is the JAR file for Java Excel API 2.6.12, which is a Java li...
How to run "jarsigner" command from JDK tools.jar file? "jarsigner" command allows you to digitally ...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...
How to run "javac" command from JDK tools.jar file? "javac" is the Java compiler command that allows...
JDK 11 jdk.internal.opt.jmod is the JMOD file for JDK 11 Internal Opt module. JDK 11 Internal Opt mo...