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 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/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 final static 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-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, 20080👍, 0💬
Popular Posts:
Jackson is "the Java JSON library" or "the best JSON parser for Java". Or simply as "JSON for Java"....
How to display types defined in an XML Schema file with the xs\QueryXS.java provided in the Apache X...
What Is javaws.jar in JRE (Java Runtime Environment) 8? javaws.jar in JRE (Java Runtime Environment)...
JDK 11 jdk.compiler.jmod is the JMOD file for JDK 11 Compiler tool, which can be invoked by the "jav...
JDK 11 jdk.scripting.nashorn.jm odis the JMOD file for JDK 11 Scripting Nashorn module. JDK 11 Scrip...