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

Parentless JDialog's icon is not shown on Taskbar on Solaris

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Duplicate
    • Icon: P3 P3
    • None
    • 7
    • client-libs
    • None
    • sparc
    • solaris_10

      The parentless dialog's Icon is not shown on the task bar on Solaris. One icon for the frame and other one for the parentless dialog. The icon is shown on the 'Alt + TAB' list for the parentless dialog. The same is working fine on Windows.

      If comment the line d.setModalityType(Dialog.DEFAULT_MODALITY_TYPE);, then you can see 2 icons displayed on the task bar.

      This bug is reproducible on 6.0 (tried with b104) and 7.0 latest builds.

      Run this following test. If you don't see the 2 icons on Solaris then the bug is reproduced.

      import javax.swing.*;
      import java.awt.*;

      public class FrameTest {

          public static void main(String args[]) {
              JFrame frame = new JFrame("Test");
              frame.setSize(400, 300);
              frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
              frame.setVisible(true);
              JDialog d = new JDialog((Window)null, "Test Dialog");
              d.setModalityType(Dialog.DEFAULT_MODALITY_TYPE);
              d.setSize(200, 300);
              d.setVisible(true);
          }
      }

            Unassigned Unassigned
            esubramasunw Elancheran Subramanian (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: