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/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, ≈31🔥, 0💬
Popular Posts:
How to download and install iText7-Core-7.1.4.zip? iText7-Core-7.1.4.zip is the binary package of iT...
What JAR files are required to run dom\Writer.java provided in the Apache Xerces package? 3 JAR file...
JDK 11 jdk.jdeps.jmod is the JMOD file for JDK 11 JDeps tool, which can be invoked by the "jdeps" co...
JDK 11 jdk.jfr.jmod is the JMOD file for JDK 11 JFR module. JDK 11 JFR module compiled class files a...
JDK 17 jdk.jshell.jmod is the JMOD file for JDK 17 JShell tool, which can be invoked by the "jshell"...