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

Frames dissapear from task bar but still running with XGL ON

    XMLWordPrintable

    Details

    • Type: Bug
    • Status: Closed
    • Priority: P4
    • Resolution: Cannot Reproduce
    • Affects Version/s: 6
    • Fix Version/s: None
    • Component/s: client-libs
    • Subcomponent:
    • CPU:
      x86
    • OS:
      linux

      Description

      FULL PRODUCT VERSION :
      1.5.0_15
      1.6.0_07

      ADDITIONAL OS VERSION INFORMATION :
      Sled 10 SP2 with XGL on
      Sled 10 SP1 with XGL on


      A DESCRIPTION OF THE PROBLEM :
      If I have a few frames showing. Then after showing and closing modal dialog on some frame, all frames will disappear from task bar except the last opened frame. And if you close this "last" frame, it will look like Java Application closed, but you still can get some frames by Alt+Tab, however they are not showed in task bar.

      STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
      1) show 3 frames, you can see them in task bar.
      2) show modal dialog on one of them, all frames collapse in one link in task bar.
      3) close modal dialog, link in task bar was expanded in only one frame. Should be 3!
      4) close this frame which have link in task bar. And task bar doesn't show links to Java Frames anymore, however there are still 2 frames are running and you can get them by ALT+TAB only.


      REPRODUCIBILITY :
      This bug can be reproduced always.

      ---------- BEGIN SOURCE ----------
      public class TestFrame extends JFrame
      {
      public static void main(String args[])
      {
      showMe().setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
      }

      static TestFrame showMe()
      {
      TestFrame frame = new TestFrame();
      frame.pack();
      frame.setLocationRelativeTo(null);
      frame.setVisible(true);
      return frame;
      }

      public TestFrame()
      {
      JButton buttonDialog = new JButton(new AbstractAction("Show Dialog")
      {
      public void actionPerformed(ActionEvent e)
      {
      TestDialog.showMe(TestFrame.this);
      }
      });
      add(buttonDialog, BorderLayout.PAGE_START);
      JButton buttonFrame = new JButton(new AbstractAction("Show Frame")
      {
      public void actionPerformed(ActionEvent e)
      {
      TestFrame.showMe();
      }
      });
      add(buttonFrame, BorderLayout.PAGE_END);
      }
      }


      public class TestDialog extends JDialog
      {
      public TestDialog(Frame owner)
      {
      super(owner);
      setModal(true);
      setDefaultCloseOperation(JDialog.DISPOSE_ON_CLOSE);
      }

      public static TestDialog showMe(JFrame frame)
      {
      TestDialog dialog = new TestDialog(frame);
      dialog.setSize(100, 50);
      dialog.setLocationRelativeTo(null);
      dialog.setVisible(true);
      return dialog;
      }
      }
      ---------- END SOURCE ----------

        Attachments

          Activity

            People

            Assignee:
            Unassigned Unassigned
            Reporter:
            ndcosta Nelson Dcosta (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: