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 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/AquaFocus.java
/*
* Copyright (c) 2011, 2012, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
//
// AquaFocus.java
// Copyright (c) 2009 Apple Inc. All rights reserved.
//
package com.apple.laf;
import java.awt.*;
import javax.swing.*;
import sun.java2d.*;
import apple.laf.JRSUIFocus;
import com.apple.laf.AquaUtils.Painter;
public class AquaFocus {
interface Drawable {
public void draw(final Graphics2D sg2d);
}
static boolean paintFocus(final Graphics g, final Drawable drawable) {
// TODO: requires OSXSurfaceData
return false;
/*if (!(g instanceof SunGraphics2D)) return false;
final SunGraphics2D sg2d = (SunGraphics2D)g;
final SurfaceData surfaceData = sg2d.getSurfaceData();
if (!(surfaceData instanceof OSXSurfaceData)) return false;
try {
((OSXSurfaceData)surfaceData).performCocoaDrawing(sg2d, new OSXSurfaceData.CGContextDrawable() {
@Override
public void drawIntoCGContext(final long cgContext) {
final JRSUIFocus focus = new JRSUIFocus(cgContext);
focus.beginFocus(JRSUIFocus.RING_BELOW);
drawable.draw(sg2d);
focus.endFocus();
}
});
} finally {
sg2d.dispose();
}
return true;*/
}
public static Icon createFocusedIcon(final Icon tmpIcon, final Component c, final int slack) {
return new FocusedIcon(tmpIcon, slack);
}
/* -- disabled until we can get the real JRSUI focus painter working
static class FocusedIcon implements Icon {
final Icon icon;
final int slack;
public FocusedIcon(final Icon icon, final int slack) {
this.icon = icon;
this.slack = slack;
}
@Override
public int getIconHeight() {
return icon.getIconHeight() + slack + slack;
}
@Override
public int getIconWidth() {
return icon.getIconWidth() + slack + slack;
}
@Override
public void paintIcon(final Component c, final Graphics g, final int x, final int y) {
final boolean painted = paintFocus(g, new Drawable() {
@Override
public void draw(SunGraphics2D sg2d) {
icon.paintIcon(c, sg2d, x + slack, y + slack);
}
});
if (!painted) {
icon.paintIcon(c, g, x + slack, y + slack);
}
}
}
*/
static class FocusedIcon extends AquaUtils.ShadowBorder implements Icon {
final Icon icon;
final int slack;
public FocusedIcon(final Icon icon, final int slack) {
super(
new Painter() {
public void paint(Graphics g, int x, int y, int w, int h) {
Graphics2D imgG = (Graphics2D)g;
imgG.setComposite(AlphaComposite.Src);
imgG.setColor(UIManager.getColor("Focus.color"));
imgG.fillRect(x, y, w - (slack * 2), h - (slack * 2));
imgG.setComposite(AlphaComposite.DstAtop);
icon.paintIcon(null, imgG, x, y);
}
},
new Painter() {
public void paint(Graphics g, int x, int y, int w, int h) {
((Graphics2D)g).setComposite(AlphaComposite.SrcAtop);
icon.paintIcon(null, g, x, y);
}
},
slack, slack, 0.0f, 1.8f, 7
);
this.icon = icon;
this.slack = slack;
}
@Override
public int getIconHeight() {
return icon.getIconHeight() + slack + slack;
}
@Override
public int getIconWidth() {
return icon.getIconWidth() + slack + slack;
}
@Override
public void paintIcon(final Component c, final Graphics g, final int x, final int y) {
paintBorder(c, g, x, y, getIconWidth(), getIconHeight());
icon.paintIcon(c, g, x + slack, y + slack);
}
}
}
⏎ com/apple/laf/AquaFocus.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, ≈400🔥, 0💬
Popular Posts:
commons-io-1.4.jar is the JAR file for Commons IO 1.4, which is a library of utilities to assist wit...
maven-model-builder-3.5. 4.jaris the JAR file for Apache Maven 3.5.4 Model Builder module. Apache Ma...
What Is wstx-asl-3.2.8.jar? wstx-asl-3.2.8.jar is JAR file for the ASL component of Woodstox 3.2.8. ...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
What Is mail.jar of JavaMail 1.4? I got the JAR file from javamail-1_4.zip. mail.jar in javamail-1_4...