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 17 jdk.jconsole.jmod - JConsole Tool
JDK 17 jdk.jconsole.jmod is the JMOD file for JDK 17 JConsole tool,
which can be invoked by the "jconsole" command.
JDK 17 JConsole tool compiled class files are stored in \fyicenter\jdk-17.0.5\jmods\jdk.jconsole.jmod.
JDK 17 JConsole tool compiled class files are also linked and stored in the \fyicenter\jdk-17.0.5\lib\modules JImage file.
JDK 17 JConsole tool source code files are stored in \fyicenter\jdk-17.0.5\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/inspector/XTextField.java
/*
* Copyright (c) 2004, 2013, Oracle and/or its affiliates. All rights reserved.
* ORACLE PROPRIETARY/CONFIDENTIAL. Use is subject to license terms.
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*
*/
package sun.tools.jconsole.inspector;
import java.awt.*;
import java.awt.event.*;
import javax.swing.event.*;
import javax.swing.*;
/**
* This list implements the drag and drop functionality.
*/
@SuppressWarnings("serial")
public class XTextField extends JPanel
implements DocumentListener,
ActionListener {
private XObject selectedObject;
protected JTextField textField;
private static boolean allowNullSelection = false;
protected static final int COMPATIBLE_VALUE = 1;
protected static final int CURRENT_VALUE = 2;
protected static final int NULL_VALUE = 3;
private JButton button;
private XOperations operation;
//used in XTestFieldEditor
public XTextField() {
super(new BorderLayout());
add(textField = new JTextField(),BorderLayout.CENTER);
textField.addActionListener(this);
//
}
public XTextField(Object value) {
this(value,value.toString().length());
}
public XTextField(Object value, int colWidth) {
this(value,value.getClass(),colWidth, true, null, null);
}
public XTextField(Object value,
Class<?> expectedClass,
int colWidth,
boolean isCallable,
JButton button,
XOperations operation) {
super(new BorderLayout());
this.button = button;
this.operation = operation;
add(textField = new JTextField(value.toString(),colWidth),
BorderLayout.CENTER);
if(isCallable)
textField.addActionListener(this);
boolean fieldEditable = Utils.isEditableType(expectedClass.getName());
if (fieldEditable && isCallable) {
textField.setEditable(true);
}
else {
textField.setEditable(false);
}
}
public static void setNullSelectionAllowed(boolean allowNullSelection) {
XTextField.allowNullSelection = allowNullSelection;
}
public static boolean getNullSelectionAllowed() {
return allowNullSelection;
}
protected void init(Object value, Class<?> expectedClass) {
boolean fieldEditable = Utils.isEditableType(expectedClass.getName());
clearObject();
if (value != null) {
textField.setText(value.toString());
}
else {
//null String value for the moment
textField.setText("");
}
textField.setToolTipText(null);
if (fieldEditable) {
if (!textField.isEditable()) {
textField.setEditable(true);
}
}
else {
if (textField.isEditable()) {
textField.setEditable(false);
}
}
}
private synchronized void clearObject() {
textField.getDocument().removeDocumentListener(this);
selectedObject = null;
setDefaultColors();
}
private synchronized void setDefaultColors() {
// if (fore != null) textField.setForeground(fore);
// if (back != null) textField.setBackground(back);
}
public void setHorizontalAlignment(int h) {
textField.setHorizontalAlignment(h);
}
//can be overwritten
protected JMenuItem buildJMenuItem(XObject xobject, int valueType) {
if (valueType == COMPATIBLE_VALUE) {
return new JMenuItem(xobject.getText());
}
else if (valueType == CURRENT_VALUE) {
return new JMenuItem("> "+xobject.getText());
}
else if (valueType == NULL_VALUE) {
return new JMenuItem("null");
}
else {
return null;
}
}
// ACTIONLISTENER IMPLEMENTATION
public void actionPerformed(ActionEvent e) {
if (e.getSource() instanceof JTextField) {
if(operation != null)
operation.performInvokeRequest(button);
}
}
/**
* This method returns either the user inputted String, or an XObject
* if one was dropped on the input field.
*/
public Object getValue() {
if (selectedObject!=null) {
if (selectedObject == XObject.NULL_OBJECT) {
//null case
return null;
}
else {
return selectedObject;
}
}
else {
return textField.getText();
}
}
public void changedUpdate(DocumentEvent e) {
// the user typed something, so remove references
// to the object that was dropped.
clearObject();
}
public void removeUpdate(DocumentEvent e) {
// the user typed something, so remove references
// to the object that was dropped.
clearObject();
}
public void insertUpdate(DocumentEvent e) {
// the user typed something, so remove references
// to the object that was dropped.
clearObject();
}
}
⏎ sun/tools/jconsole/inspector/XTextField.java
Or download all of them as a single archive file:
File name: jdk.jconsole-17.0.5-src.zip File size: 169450 bytes Release date: 2022-09-13 Download
⇒ JDK 17 jdk.jdeps.jmod - JDeps Tool
2023-04-17, ≈10🔥, 0💬
Popular Posts:
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
JLayer is a library that decodes/plays/converts MPEG 1/2/2.5 Layer 1/2/3 (i.e. MP3) in real time for...
JRE 8 rt.jar is the JAR file for JRE 8 RT (Runtime) libraries. JRE (Java Runtime) 8 is the runtime e...
What Is ojdbc7.jar for Oracle 12c R1? ojdbc7.jar for Oracle 12c R1 is the JAR files of ojdbc.jar, JD...
How to show the XML parsing flow with sax\DocumentTracer.java provided in the Apache Xerces package?...