Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4141532

JInternalFrame.JDesktopIcon(JInternalFrame f) fails with JDK-1.2beta4-G

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 1.2.0
    • 1.2.0
    • client-libs
    • 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(); }
      }

            rschiavisunw Richard Schiavi (Inactive)
            nschorrsunw Nancy Schorr (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: