Categories:
Audio (13)
Biotech (29)
Bytecode (36)
Database (77)
Framework (7)
Game (7)
General (507)
Graphics (53)
I/O (35)
IDE (2)
JAR Tools (102)
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 (322)
Collections:
Other Resources:
JDK 11 jdk.jconsole.jmod - JConsole Tool
JDK 11 jdk.jconsole.jmod is the JMOD file for JDK 11 JConsole tool,
which can be invoked by the "jconsole" command.
JDK 11 JConsole tool compiled class files are stored in \fyicenter\jdk-11.0.1\jmods\jdk.jconsole.jmod.
JDK 11 JConsole tool compiled class files are also linked and stored in the \fyicenter\jdk-11.0.1\lib\modules JImage file.
JDK 11 JConsole tool source code files are stored in \fyicenter\jdk-11.0.1\lib\src.zip\jdk.jconsole.
You can click and view the content of each source code file in the list below.
✍: FYIcenter
⏎ sun/tools/jconsole/TimeComboBox.java
/*
* Copyright (c) 2004, 2006, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.tools.jconsole;
import java.awt.event.*;
import java.beans.*;
import java.util.*;
import javax.swing.*;
/**
* A combo box to control the visible time range for one or more Plotter components.
* When used with two or more Plotters, it also acts to coordinate the range between
* them.
*/
@SuppressWarnings("serial")
public class TimeComboBox extends JComboBox<String> implements ItemListener, PropertyChangeListener {
private ArrayList<Plotter> plotters = new ArrayList<Plotter>();
public TimeComboBox(Plotter... plotterArray) {
super(Plotter.rangeNames);
addItemListener(this);
if (plotterArray != null && plotterArray.length > 0) {
plotters.addAll(Arrays.asList(plotterArray));
selectValue(plotterArray[0].getViewRange());
for (Plotter plotter : plotters) {
plotter.addPropertyChangeListener(this);
}
}
}
public void addPlotter(Plotter plotter) {
plotters.add(plotter);
if (plotters.size() == 1) {
selectValue(plotter.getViewRange());
}
plotter.addPropertyChangeListener(this);
}
public void itemStateChanged(ItemEvent ev) {
for (Plotter plotter : plotters) {
plotter.setViewRange(Plotter.rangeValues[getSelectedIndex()]);
}
}
private void selectValue(int value) {
// Set the selected value
for (int i = 0; i < Plotter.rangeValues.length; i++) {
if (Plotter.rangeValues[i] == value) {
setSelectedItem(Plotter.rangeNames[i]);
}
}
// Make sure all plotters show this value
if (plotters.size() > 1) {
for (Plotter plotter : plotters) {
plotter.setViewRange(value);
}
}
}
public void propertyChange(PropertyChangeEvent ev) {
if (ev.getPropertyName() == "viewRange") {
selectValue((Integer)ev.getNewValue());
}
}
}
⏎ sun/tools/jconsole/TimeComboBox.java
Or download all of them as a single archive file:
File name: jdk.jconsole-11.0.1-src.zip File size: 164713 bytes Release date: 2018-11-04 Download
⇒ JDK 11 jdk.jdeps.jmod - JDeps Tool
2020-07-07, ≈34🔥, 0💬
Popular Posts:
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
JDK 17 java.base.jmod is the JMOD file for JDK 17 Base module. JDK 17 Base module compiled class fil...
JSP(tm) Standard Tag Library 1.1 implementation - Jakarta Taglibs hosts the Standard Taglib 1.1, an ...
How to download and install Apache XMLBeans-2.6.0.zip? If you want to try the XMLBeans Java library,...
The Bouncy Castle Crypto package is a Java implementation of cryptographic algorithms, it was develo...