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 - javax.* 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 javax.* package in JRE 1.8.0_191 rt.jar. Java source codes are also provided.
✍: FYIcenter
⏎ javax/swing/colorchooser/SlidingSpinner.java
/* * Copyright (c) 2008, Oracle and/or its affiliates. All rights reserved. * ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms. * * * * * * * * * * * * * * * * * * * * */ package javax.swing.colorchooser; import javax.swing.JComponent; import javax.swing.JSlider; import javax.swing.JSpinner; import javax.swing.JSpinner.DefaultEditor; import javax.swing.SpinnerNumberModel; import javax.swing.event.ChangeEvent; import javax.swing.event.ChangeListener; final class SlidingSpinner implements ChangeListener { private final ColorPanel panel; private final JComponent label; private final SpinnerNumberModel model = new SpinnerNumberModel(); private final JSlider slider = new JSlider(); private final JSpinner spinner = new JSpinner(this.model); private float value; private boolean internal; SlidingSpinner(ColorPanel panel, JComponent label) { this.panel = panel; this.label = label; this.slider.addChangeListener(this); this.spinner.addChangeListener(this); DefaultEditor editor = (DefaultEditor) this.spinner.getEditor(); ValueFormatter.init(3, false, editor.getTextField()); editor.setFocusable(false); this.spinner.setFocusable(false); } JComponent getLabel() { return this.label; } JSlider getSlider() { return this.slider; } JSpinner getSpinner() { return this.spinner; } float getValue() { return this.value; } void setValue(float value) { int min = this.slider.getMinimum(); int max = this.slider.getMaximum(); this.internal = true; this.slider.setValue(min + (int) (value * (float) (max - min))); this.spinner.setValue(Integer.valueOf(this.slider.getValue())); this.internal = false; this.value = value; } void setRange(int min, int max) { this.internal = true; this.slider.setMinimum(min); this.slider.setMaximum(max); this.model.setMinimum(Integer.valueOf(min)); this.model.setMaximum(Integer.valueOf(max)); this.internal = false; } void setVisible(boolean visible) { this.label.setVisible(visible); this.slider.setVisible(visible); this.spinner.setVisible(visible); } public void stateChanged(ChangeEvent event) { if (!this.internal) { if (this.spinner == event.getSource()) { Object value = this.spinner.getValue(); if (value instanceof Integer) { this.internal = true; this.slider.setValue((Integer) value); this.internal = false; } } int value = this.slider.getValue(); this.internal = true; this.spinner.setValue(Integer.valueOf(value)); this.internal = false; int min = this.slider.getMinimum(); int max = this.slider.getMaximum(); this.value = (float) (value - min) / (float) (max - min); this.panel.colorChanged(); } } }
⏎ javax/swing/colorchooser/SlidingSpinner.java
Or download all of them as a single archive file:
File name: jre-rt-javax-1.8.0_191-src.zip File size: 5381005 bytes Release date: 2018-10-28 Download
⇒ JRE 8 rt.jar - org.* Package Source Code
2024-03-15, 215920👍, 6💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
What JAR files are required to run dom\Counter.java provided in the Apache Xerces package? You can f...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...
How to download and install Apache ZooKeeper Source Package? Apache ZooKeeper is an open-source serv...