1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126
|
Description: Remove usages of JApplet
JApplet was removed from Java 25 API. Remove usages of JApplet.
GetPropertyAction was removed, it is unused. Remove usage of
GetPropertyAction.
The open-source upstream has not been updated since 2019,
the software is now closed-source https://www.jidesoft.com/history/index.php#3.8.0.
The release notes indicate removal of the features for the
compatibility.
Author: Vladimir Petko <vladimir.petko@canonical.com>
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=1108578
Forwarded: not-needed
Last-Update: 2026-02-03
--- a/src-jdk9/com/jidesoft/plaf/windows/XPStyle.java
+++ b/src-jdk9/com/jidesoft/plaf/windows/XPStyle.java
@@ -9,7 +9,6 @@
import com.jidesoft.plaf.windows.TMSchema.TypeEnum;
import com.jidesoft.utils.ReflectionUtils;
import sun.awt.image.SunWritableRaster;
-import sun.security.action.GetPropertyAction;
import sun.swing.CachedPainter;
import javax.swing.*;
@@ -86,8 +85,6 @@
themeActive = Boolean.FALSE;
}
if (themeActive.booleanValue()) {
- GetPropertyAction propertyAction =
- new GetPropertyAction("swing.noxp");
}
}
return xp = null;
--- a/src/com/jidesoft/swing/JideSwingUtilities.java
+++ b/src/com/jidesoft/swing/JideSwingUtilities.java
@@ -3640,7 +3640,7 @@
return lastRootPane;
}
if (c.getParent() instanceof JDialog || c.getParent() instanceof JWindow
- || c.getParent() instanceof JFrame || c.getParent() instanceof JApplet) {
+ || c.getParent() instanceof JFrame ) {
return lastRootPane;
}
c = c.getParent().getParent();
--- a/src/com/jidesoft/swing/ResizableMouseInputAdapter.java
+++ b/src/com/jidesoft/swing/ResizableMouseInputAdapter.java
@@ -167,10 +167,6 @@
((JFrame) c).getGlassPane().setVisible(true);
((JFrame) c).getGlassPane().setCursor(s);
}
- else if (c instanceof JApplet) {
- ((JApplet) c).getGlassPane().setVisible(true);
- ((JApplet) c).getGlassPane().setCursor(s);
- }
else if (c instanceof JWindow) {
((JWindow) c).getGlassPane().setVisible(true);
((JWindow) c).getGlassPane().setCursor(s);
@@ -626,10 +622,6 @@
((JFrame) _resizable.getComponent().getTopLevelAncestor()).getGlassPane().setVisible(false);
}
- else if (c instanceof JApplet) {
- ((JApplet) c).getGlassPane().setCursor(Cursor.getDefaultCursor());
- ((JApplet) c).getGlassPane().setVisible(false);
- }
else if (c instanceof JWindow) {
((JWindow) c).getGlassPane().setCursor(Cursor.getDefaultCursor());
((JWindow) c).getGlassPane().setVisible(false);
--- a/src/com/jidesoft/utils/PortingUtils.java
+++ b/src/com/jidesoft/utils/PortingUtils.java
@@ -152,12 +152,6 @@
// to handle multi-display case
Dimension screenSize = getScreenBounds().getSize();
- // jdk1.4 only
- if (invoker != null && !(invoker instanceof JApplet) && invoker.getGraphicsConfiguration() != null) {
- Insets insets = Toolkit.getDefaultToolkit().getScreenInsets(invoker.getGraphicsConfiguration());
- screenSize.width -= insets.left + insets.right;
- screenSize.height -= insets.top + insets.bottom;
- }
return screenSize;
}
@@ -171,19 +165,7 @@
public static Dimension getLocalScreenSize(Component invoker) {
// ensureScreenBounds();
- // jdk1.4 only
- if (invoker != null && !(invoker instanceof JApplet) && invoker.getGraphicsConfiguration() != null) {
- // to handle multi-display case
- GraphicsConfiguration gc = invoker.getGraphicsConfiguration();
- Rectangle bounds = gc.getBounds();
- Insets insets = Toolkit.getDefaultToolkit().getScreenInsets(gc);
- bounds.width -= insets.left + insets.right;
- bounds.height -= insets.top + insets.bottom;
- return bounds.getSize();
- }
- else {
return getScreenSize(invoker);
- }
}
/**
@@ -199,16 +181,6 @@
// to handle multi-display case
Rectangle bounds = (!useInvokerDevice || invoker == null || invoker.getGraphicsConfiguration() == null) ? (Rectangle) getScreenBounds().clone() : invoker.getGraphicsConfiguration().getBounds();
- // TODO
- // jdk1.4 only
- if (invoker != null && !(invoker instanceof JApplet) && invoker.getGraphicsConfiguration() != null) {
- Insets insets = Toolkit.getDefaultToolkit().getScreenInsets(invoker.getGraphicsConfiguration());
- bounds.x += insets.left;
- bounds.y += insets.top;
- bounds.width -= insets.left + insets.right;
- bounds.height -= insets.top + insets.bottom;
- }
-
return bounds;
}
@@ -586,4 +558,4 @@
((JComponent) component).setMinimumSize(size);
}
}
-}
\ No newline at end of file
+}
|