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 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/XObject.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; // java import import javax.swing.*; import java.util.Objects; /** * This provides a wrapper to the Object class to allow it to be displayed/manipulated as a GUI object. */ @SuppressWarnings("serial") public class XObject extends JLabel { private Object object; private static boolean useHashCodeRepresentation = true; public static final XObject NULL_OBJECT = new XObject("null"); public XObject (Object object, Icon icon) { this(object); setIcon(icon); } public XObject (Object object) { setObject(object); setHorizontalAlignment(SwingConstants.LEFT); } public boolean equals(Object o) { if (o instanceof XObject) { return Objects.equals(object, ((XObject)o).getObject()); } return false; } @Override public int hashCode() { return object.hashCode(); } public Object getObject() { return object; } //if true the object.hashcode is added to the label public static void useHashCodeRepresentation(boolean useHashCodeRepresentation) { XObject.useHashCodeRepresentation = useHashCodeRepresentation; } public static boolean hashCodeRepresentation() { return useHashCodeRepresentation; } public void setObject(Object object) { this.object = object; // if the object is not a swing component, // use default icon try { String text = null; if (object instanceof JLabel) { setIcon(((JLabel)object).getIcon()); if (getText() != null) { text = ((JLabel)object).getText(); } } else if (object instanceof JButton) { setIcon(((JButton)object).getIcon()); if (getText() != null) { text = ((JButton)object).getText(); } } else if (getText() != null) { text = object.toString(); setIcon(IconManager.DEFAULT_XOBJECT); } if (text != null) { if (useHashCodeRepresentation && (this != NULL_OBJECT)) { text = text + " ("+object.hashCode()+")"; } setText(text); } } catch (Exception e) { System.out.println("Error setting XObject object :"+ e.getMessage()); } } }
⏎ sun/tools/jconsole/inspector/XObject.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, 3568👍, 0💬
Popular Posts:
What Is poi-ooxml-3.5.jar? poi-ooxml-3.5.jar is one of the JAR files for Apache POI 3.5, which provi...
JDK 11 java.sql.jmod is the JMOD file for JDK 11 SQL (Structured Query Language) module. JDK 11 SQL ...
What Is jniwrap.jar in JNIWrapper 3.7.1? winpack.jar in JNIWrapper 3.7.1 is an add-on JAR file for J...
How to download and install ojdbc11.jar for Oracle 21c? ojdbc11.jar for Oracle 21c is a Java JDBC Dr...
xml-commons External Source Code Files are provided in the source package file, xml-commons-external...