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:
JRE 8 rt.jar - com.* Package Source Code
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime environment included in JDK 8. JRE 8 rt.jar libraries are divided into 6 packages:
com.* - Internal Oracle and Sun Microsystems libraries java.* - Standard Java API libraries. javax.* - Extended Java API libraries. jdk.* - JDK supporting libraries. org.* - Third party libraries. sun.* - Old libraries developed by Sun Microsystems.
JAR File Information:
Directory of C:\fyicenter\jdk-1.8.0_191\jre\lib 63,596,151 rt.jar
Here is the list of Java classes of the com.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ com/sun/java/swing/plaf/motif/MotifScrollBarButton.java
/* * Copyright (c) 1997, 1998, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package com.sun.java.swing.plaf.motif; import javax.swing.*; import javax.swing.event.*; import javax.swing.plaf.*; import javax.swing.plaf.basic.BasicArrowButton; import java.awt.*; import java.awt.event.*; /** * Motif scroll bar button. * <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. A future release of Swing will provide support for * long term persistence. */ public class MotifScrollBarButton extends BasicArrowButton { private Color darkShadow = UIManager.getColor("controlShadow"); private Color lightShadow = UIManager.getColor("controlLtHighlight"); public MotifScrollBarButton(int direction) { super(direction); switch (direction) { case NORTH: case SOUTH: case EAST: case WEST: this.direction = direction; break; default: throw new IllegalArgumentException("invalid direction"); } setRequestFocusEnabled(false); setOpaque(true); setBackground(UIManager.getColor("ScrollBar.background")); setForeground(UIManager.getColor("ScrollBar.foreground")); } public Dimension getPreferredSize() { switch (direction) { case NORTH: case SOUTH: return new Dimension(11, 12); case EAST: case WEST: default: return new Dimension(12, 11); } } public Dimension getMinimumSize() { return getPreferredSize(); } public Dimension getMaximumSize() { return getPreferredSize(); } public boolean isFocusTraversable() { return false; } public void paint(Graphics g) { int w = getWidth(); int h = getHeight(); if (isOpaque()) { g.setColor(getBackground()); g.fillRect(0, 0, w, h); } boolean isPressed = getModel().isPressed(); Color lead = (isPressed) ? darkShadow : lightShadow; Color trail = (isPressed) ? lightShadow : darkShadow; Color fill = getBackground(); int cx = w / 2; int cy = h / 2; int s = Math.min(w, h); switch (direction) { case NORTH: g.setColor(lead); g.drawLine(cx, 0, cx, 0); for (int x = cx - 1, y = 1, dx = 1; y <= s - 2; y += 2) { g.setColor(lead); g.drawLine(x, y, x, y); if (y >= (s - 2)) { g.drawLine(x, y + 1, x, y + 1); } g.setColor(fill); g.drawLine(x + 1, y, x + dx, y); if (y < (s - 2)) { g.drawLine(x, y + 1, x + dx + 1, y + 1); } g.setColor(trail); g.drawLine(x + dx + 1, y, x + dx + 1, y); if (y >= (s - 2)) { g.drawLine(x + 1, y + 1, x + dx + 1, y + 1); } dx += 2; x -= 1; } break; case SOUTH: g.setColor(trail); g.drawLine(cx, s, cx, s); for (int x = cx - 1, y = s - 1, dx = 1; y >= 1; y -= 2) { g.setColor(lead); g.drawLine(x, y, x, y); if (y <= 2) { g.drawLine(x, y - 1, x + dx + 1, y - 1); } g.setColor(fill); g.drawLine(x + 1, y, x + dx, y); if (y > 2) { g.drawLine(x, y - 1, x + dx + 1, y - 1); } g.setColor(trail); g.drawLine(x + dx + 1, y, x + dx + 1, y); dx += 2; x -= 1; } break; case EAST: g.setColor(lead); g.drawLine(s, cy, s, cy); for (int y = cy - 1, x = s - 1, dy = 1; x >= 1; x -= 2) { g.setColor(lead); g.drawLine(x, y, x, y); if (x <= 2) { g.drawLine(x - 1, y, x - 1, y + dy + 1); } g.setColor(fill); g.drawLine(x, y + 1, x, y + dy); if (x > 2) { g.drawLine(x - 1, y, x - 1, y + dy + 1); } g.setColor(trail); g.drawLine(x, y + dy + 1, x, y + dy + 1); dy += 2; y -= 1; } break; case WEST: g.setColor(trail); g.drawLine(0, cy, 0, cy); for (int y = cy - 1, x = 1, dy = 1; x <= s - 2; x += 2) { g.setColor(lead); g.drawLine(x, y, x, y); if (x >= (s - 2)) { g.drawLine(x + 1, y, x + 1, y); } g.setColor(fill); g.drawLine(x, y + 1, x, y + dy); if (x < (s - 2)) { g.drawLine(x + 1, y, x + 1, y + dy + 1); } g.setColor(trail); g.drawLine(x, y + dy + 1, x, y + dy + 1); if (x >= (s - 2)) { g.drawLine(x + 1, y + 1, x + 1, y + dy + 1); } dy += 2; y -= 1; } break; } } }
⏎ com/sun/java/swing/plaf/motif/MotifScrollBarButton.java
Or download all of them as a single archive file:
File name: jre-rt-com-1.8.0_191-src.zip File size: 8099783 bytes Release date: 2018-10-28 Download
⇒ Backup JDK 8 Installation Directory
2023-02-07, 251741👍, 3💬
Popular Posts:
JRE 8 plugin.jar is the JAR file for JRE 8 Java Control Panel Plugin interface and tools. JRE (Java ...
How to download and install ojdbc6.jar for Oracle 11g R2? ojdbc6.jar for Oracle 11g R2 is a Java 6, ...
Where to find answers to frequently asked questions on Downloading and Using JDK (Java Development K...
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
The JSR 105 XML Digital Signature 1.0.1 FCS implementation provides an API and implementation that a...