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
⏎ javax/swing/border/SoftBevelBorder.java
/* * Copyright (c) 1997, 2014, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.border; import java.awt.Graphics; import java.awt.Insets; import java.awt.Rectangle; import java.awt.Color; import java.awt.Component; import java.beans.ConstructorProperties; /** * A class which implements a raised or lowered bevel with * softened corners. * <p> * <strong>Warning:</strong> * Serialized objects of this class will not be compatible with * future Swing releases. The current serialization support is * appropriate for short term storage or RMI between applications running * the same version of Swing. As of 1.4, support for long term storage * of all JavaBeans™ * has been added to the <code>java.beans</code> package. * Please see {@link java.beans.XMLEncoder}. * * @author Amy Fowler * @author Chester Rose */ @SuppressWarnings("serial") // Same-version serialization only public class SoftBevelBorder extends BevelBorder { /** * Creates a bevel border with the specified type and whose * colors will be derived from the background color of the * component passed into the paintBorder method. * @param bevelType the type of bevel for the border */ public SoftBevelBorder(int bevelType) { super(bevelType); } /** * Creates a bevel border with the specified type, highlight and * shadow colors. * @param bevelType the type of bevel for the border * @param highlight the color to use for the bevel highlight * @param shadow the color to use for the bevel shadow */ public SoftBevelBorder(int bevelType, Color highlight, Color shadow) { super(bevelType, highlight, shadow); } /** * Creates a bevel border with the specified type, highlight * shadow colors. * @param bevelType the type of bevel for the border * @param highlightOuterColor the color to use for the bevel outer highlight * @param highlightInnerColor the color to use for the bevel inner highlight * @param shadowOuterColor the color to use for the bevel outer shadow * @param shadowInnerColor the color to use for the bevel inner shadow */ @ConstructorProperties({"bevelType", "highlightOuterColor", "highlightInnerColor", "shadowOuterColor", "shadowInnerColor"}) public SoftBevelBorder(int bevelType, Color highlightOuterColor, Color highlightInnerColor, Color shadowOuterColor, Color shadowInnerColor) { super(bevelType, highlightOuterColor, highlightInnerColor, shadowOuterColor, shadowInnerColor); } /** * Paints the border for the specified component with the specified * position and size. * @param c the component for which this border is being painted * @param g the paint graphics * @param x the x position of the painted border * @param y the y position of the painted border * @param width the width of the painted border * @param height the height of the painted border */ public void paintBorder(Component c, Graphics g, int x, int y, int width, int height) { Color oldColor = g.getColor(); g.translate(x, y); if (bevelType == RAISED) { g.setColor(getHighlightOuterColor(c)); g.drawLine(0, 0, width-2, 0); g.drawLine(0, 0, 0, height-2); g.drawLine(1, 1, 1, 1); g.setColor(getHighlightInnerColor(c)); g.drawLine(2, 1, width-2, 1); g.drawLine(1, 2, 1, height-2); g.drawLine(2, 2, 2, 2); g.drawLine(0, height-1, 0, height-2); g.drawLine(width-1, 0, width-1, 0); g.setColor(getShadowOuterColor(c)); g.drawLine(2, height-1, width-1, height-1); g.drawLine(width-1, 2, width-1, height-1); g.setColor(getShadowInnerColor(c)); g.drawLine(width-2, height-2, width-2, height-2); } else if (bevelType == LOWERED) { g.setColor(getShadowOuterColor(c)); g.drawLine(0, 0, width-2, 0); g.drawLine(0, 0, 0, height-2); g.drawLine(1, 1, 1, 1); g.setColor(getShadowInnerColor(c)); g.drawLine(2, 1, width-2, 1); g.drawLine(1, 2, 1, height-2); g.drawLine(2, 2, 2, 2); g.drawLine(0, height-1, 0, height-2); g.drawLine(width-1, 0, width-1, 0); g.setColor(getHighlightOuterColor(c)); g.drawLine(2, height-1, width-1, height-1); g.drawLine(width-1, 2, width-1, height-1); g.setColor(getHighlightInnerColor(c)); g.drawLine(width-2, height-2, width-2, height-2); } g.translate(-x, -y); g.setColor(oldColor); } /** * Reinitialize the insets parameter with this Border's current Insets. * @param c the component for which this border insets value applies * @param insets the object to be reinitialized */ public Insets getBorderInsets(Component c, Insets insets) { insets.set(3, 3, 3, 3); return insets; } /** * Returns whether or not the border is opaque. */ public boolean isBorderOpaque() { return false; } }
⏎ javax/swing/border/SoftBevelBorder.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, 194923👍, 5💬
Popular Posts:
MXP1 is a stable XmlPull parsing engine that is based on ideas from XPP and in particular XPP2 but c...
Java Advanced Imaging (JAI) is a Java platform extension API that provides a set of object-oriented ...
How to read XML document with DTD validation from socket connections with the socket\DelayedInput.ja.. .
Apache Log4j API provides the interface that applications should code to and provides the adapter co...
iText is an ideal library for developers looking to enhance web- and other applications with dynamic...