Skip to content

Ghidra is a software reverse engineering (SRE) framework

Merge branch 'GP-0_ryanmkurtz_PR-7225_hippietrail_the-the'

Ryan Kurtz2bebb96f77c9
diff --cc Ghidra/Features/Base/src/main/java/ghidra/framework/main/InfoPanel.java
index f90cad54c0,04945db79f..668b85c290
--- a/Ghidra/Features/Base/src/main/java/ghidra/framework/main/InfoPanel.java
+++ b/Ghidra/Features/Base/src/main/java/ghidra/framework/main/InfoPanel.java
@@@ -187,8 -192,43 +187,8 @@@ class InfoPanel extends JPanel
return imagePanel;
}
- private HyperlinkComponent buildJavaVersionComponent() {
- String anchorName = "java_version";
- final HyperlinkComponent javaVersionComponent =
- new HyperlinkComponent("<html><CENTER>Java Version " + "<A HREF=\"" + anchorName +
- "\">" + System.getProperty("java.version") + "</A></CENTER>");
- javaVersionComponent.addHyperlinkListener(anchorName, e -> {
- if (e.getEventType() != HyperlinkEvent.EventType.ACTIVATED) {
- return;
- }
-
- showJavaHomeInfo(javaVersionComponent);
- });
-
- DockingUtils.setTransparent(javaVersionComponent);
- return javaVersionComponent;
- }
-
- private void showJavaHomeInfo(final HyperlinkComponent javaVersionComponent) {
- JToolTip tooltip = new JToolTip();
- tooltip.setTipText(System.getProperty("java.home"));
-
- Point location = MouseInfo.getPointerInfo().getLocation();
- Window window = WindowUtilities.windowForComponent(javaVersionComponent);
- tooltip.setLocation(location);
-
- PopupWindow popupWindow = new PopupWindow(window, tooltip);
-
- SwingUtilities.convertPointFromScreen(location, javaVersionComponent);
- MouseEvent dummyEvent =
- new MouseEvent(javaVersionComponent, (int) System.currentTimeMillis(),
- System.currentTimeMillis(), 0, location.x, location.y, 1, false);
- popupWindow.setCloseWindowDelay(1);
- popupWindow.showPopup(dummyEvent);
- }
-
/**
- * Read the version information from the the resource file.
+ * Read the version information from the resource file.
*/
private void getAboutInfo() {