-
Bug
-
Resolution: Fixed
-
P2
-
1.2.0
-
swing1.0.3
-
sparc
-
solaris_2.6
-
Verified
Swing JInternalFrame.JDesktopIcon(JInternalFrame f) fails with JDK-1.2beta4-G on Solaris 2.6. It works fine with JDK1.1.6 and swing-1.0.2.
Steps to Reproduce:
0) Run the code below with JDK-1.2beta4-G on Solaris 2.6.
1) Notice the output in the console or lack of it.
RESULT: With JDK-1.2beta4-G, the following exceptions are thrown:
Exception in thread "main" java.lang.NullPointerException
at java.awt.swing.plaf.basic.BasicInternalFrameUI.uninstallListeners(Compiled Code)
at java.awt.swing.plaf.basic.BasicInternalFrameUI.uninstallUI(Compiled Code)
at java.awt.swing.plaf.metal.MetalInternalFrameUI.uninstallUI(Compiled Code)
at java.awt.swing.JComponent.setUI(Compiled Code)
at java.awt.swing.JInternalFrame.setUI(Compiled Code)
at java.awt.swing.JInternalFrame.updateUI(Compiled Code)
at java.awt.swing.SwingUtilities.updateComponentTreeUI0(Compiled Code)
at java.awt.swing.SwingUtilities.updateComponentTreeUI(Compiled Code)
at java.awt.swing.JInternalFrame$JDesktopIcon.updateUI(Compiled Code)
at java.awt.swing.JInternalFrame$JDesktopIcon.<init>(Compiled Code)
at Iicon.<init>(Compiled Code)
at Iicon.main(Compiled Code)
import java.awt.*;
import java.awt.event.*;
import java.awt.swing.*;
//import com.sun.java.swing.*;
public class Iicon {
public Iicon() {
JInternalFrame f = new JInternalFrame();
JInternalFrame.JDesktopIcon c = new JInternalFrame.JDesktopIcon(f); // Create JInternalFrame.JDesktopIcon object
}
public static void main(String args[]) { new Iicon(); }
}
Steps to Reproduce:
0) Run the code below with JDK-1.2beta4-G on Solaris 2.6.
1) Notice the output in the console or lack of it.
RESULT: With JDK-1.2beta4-G, the following exceptions are thrown:
Exception in thread "main" java.lang.NullPointerException
at java.awt.swing.plaf.basic.BasicInternalFrameUI.uninstallListeners(Compiled Code)
at java.awt.swing.plaf.basic.BasicInternalFrameUI.uninstallUI(Compiled Code)
at java.awt.swing.plaf.metal.MetalInternalFrameUI.uninstallUI(Compiled Code)
at java.awt.swing.JComponent.setUI(Compiled Code)
at java.awt.swing.JInternalFrame.setUI(Compiled Code)
at java.awt.swing.JInternalFrame.updateUI(Compiled Code)
at java.awt.swing.SwingUtilities.updateComponentTreeUI0(Compiled Code)
at java.awt.swing.SwingUtilities.updateComponentTreeUI(Compiled Code)
at java.awt.swing.JInternalFrame$JDesktopIcon.updateUI(Compiled Code)
at java.awt.swing.JInternalFrame$JDesktopIcon.<init>(Compiled Code)
at Iicon.<init>(Compiled Code)
at Iicon.main(Compiled Code)
import java.awt.*;
import java.awt.event.*;
import java.awt.swing.*;
//import com.sun.java.swing.*;
public class Iicon {
public Iicon() {
JInternalFrame f = new JInternalFrame();
JInternalFrame.JDesktopIcon c = new JInternalFrame.JDesktopIcon(f); // Create JInternalFrame.JDesktopIcon object
}
public static void main(String args[]) { new Iicon(); }
}