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/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); } boolean isVisible() { return this.slider.isVisible(); } 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: 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, 194600👍, 5💬
Popular Posts:
Smack is an Open Source XMPP (Jabber) client library for instant messaging and presence. A pure Java...
JDK 1.1 source code directory contains Java source code for JDK 1.1 core classes: "C:\fyicenter\jdk-...
JDK 11 jdk.jlink.jmod is the JMOD file for JDK 11 JLink tool, which can be invoked by the "jlink" co...
Java Cryptography Extension 1.2.2 JAR File Size and Download Location: File name: jce.jar, jce-1.2.2...
JDK 11 jdk.jshell.jmod is the JMOD file for JDK 11 JShell tool, which can be invoked by the "jshell"...