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 11 java.desktop.jmod - Desktop Module
JDK 11 java.desktop.jmod is the JMOD file for JDK 11 Desktop module.
JDK 11 Desktop module compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\java.desktop.jmod.
JDK 11 Desktop module compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 Desktop module source code files are stored in \fyicenter\jdk-11.0.1\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/plaf/gtk/GTKGraphicsUtils.java
/* * Copyright (c) 2002, 2017, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.java.swing.plaf.gtk; import javax.swing.*; import javax.swing.plaf.synth.*; import java.awt.Color; import java.awt.Graphics; import java.awt.Rectangle; /** * @author Joshua Outwater */ class GTKGraphicsUtils extends SynthGraphicsUtils { public void paintText(SynthContext context, Graphics g, String text, int x, int y, int mnemonicIndex) { if (text == null || text.length() <= 0) { // We don't need to paint empty strings return; } if (context.getRegion() == Region.INTERNAL_FRAME_TITLE_PANE) { // Metacity handles painting of text on internal frame title, // ignore this. return; } int componentState = context.getComponentState(); String themeName = GTKLookAndFeel.getGtkThemeName(); if (themeName != null && themeName.startsWith("blueprint") && shouldShadowText(context.getRegion(), componentState)) { g.setColor(Color.BLACK); super.paintText(context, g, text, x+1, y+1, mnemonicIndex); g.setColor(Color.WHITE); } super.paintText(context, g, text, x, y, mnemonicIndex); } /** * Paints text at the specified location. This will not attempt to * render the text as html nor will it offset by the insets of the * component. * * @param context SynthContext * @param g Graphics used to render string in. * @param text Text to render * @param bounds Bounds of the text to be drawn. * @param mnemonicIndex Index to draw string at. */ public void paintText(SynthContext context, Graphics g, String text, Rectangle bounds, int mnemonicIndex) { if (text == null || text.length() <= 0) { // We don't need to paint empty strings return; } Region id = context.getRegion(); if ((id == Region.RADIO_BUTTON || id == Region.CHECK_BOX || id == Region.TABBED_PANE_TAB) && (context.getComponentState() & SynthConstants.FOCUSED) != 0) { JComponent source = context.getComponent(); if (!(source instanceof AbstractButton) || ((AbstractButton)source).isFocusPainted()) { // The "bounds" parameter encompasses only the actual text; // when drawing the focus, we need to expand that bounding // box by "focus-line-width" plus "focus-padding". Note that // the layout process for these components will have already // taken these values into account, so there should always // be enough space allocated for drawing the focus indicator. int synthState = context.getComponentState(); GTKStyle style = (GTKStyle)context.getStyle(); int focusSize = style.getClassSpecificIntValue(context, "focus-line-width", 1); int focusPad = style.getClassSpecificIntValue(context, "focus-padding", 1); int totalFocus = focusSize + focusPad; int x = bounds.x - totalFocus; int y = bounds.y - totalFocus; int w = bounds.width + (2 * totalFocus); int h = bounds.height + (2 * totalFocus); Color color = g.getColor(); GTKPainter.INSTANCE.paintFocus(context, g, id, synthState, "checkbutton", x, y, w, h); g.setColor(color); } } super.paintText(context, g, text, bounds, mnemonicIndex); } private static boolean shouldShadowText(Region id, int state) { int gtkState = GTKLookAndFeel.synthStateToGTKState(id, state); return((gtkState == SynthConstants.MOUSE_OVER) && (id == Region.MENU || id == Region.MENU_ITEM || id == Region.CHECK_BOX_MENU_ITEM || id == Region.RADIO_BUTTON_MENU_ITEM)); } }
⏎ com/sun/java/swing/plaf/gtk/GTKGraphicsUtils.java
Or download all of them as a single archive file:
File name: java.desktop-11.0.1-src.zip File size: 7974380 bytes Release date: 2018-11-04 Download
⇒ JDK 11 java.instrument.jmod - Instrument Module
2022-08-06, 193061👍, 5💬
Popular Posts:
JDK 11 jdk.rmic.jmod is the JMOD file for JDK 11 RMI (Remote Method Invocation) Compiler Tool tool, ...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...
What Is fop.jar? I got it from the fop-2.7-bin.zip. fop.jar in fop-2.7-bin.zip is the JAR file for F...
What Is poi-ooxml-5.2.3.jar? poi-ooxml-5.2.3.jar is one of the JAR files for Apache POI 5.2.3, which...
What Is log4j-1.2.15.jar? I got the JAR file from apache-log4j-1.2.15.zip. log4j-1.2.15.jar is the v...