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

REG: always-on-top doesn't work with child dialog

    XMLWordPrintable

Details

    • b58
    • generic
    • windows

    Description

      If always-on-top frame has a child dialog, it loses its always-on-top property. The following simple test demonstrates the problem:

      import java.awt.*;
      import java.awt.event.*;

      public class AlwaysOnTopTest
      {
        public static void main(String[] args)
        {
          Frame g = new Frame("AOT Frame w/o child");
          g.setBounds(000, 000, 200, 100);
          g.setAlwaysOnTop(true);
          g.setVisible(true);

          Frame f = new Frame("AOT Frame");
          f.setBounds(100, 100, 200, 100);
          f.setAlwaysOnTop(true);
          f.setVisible(true);

          Dialog d1 = new Dialog(f, "Non-AOT modeless Dialog", false);
          d1.setBounds(200, 200, 200, 100);
          d1.setVisible(true);
        }
      }

      The only difference between frames f and g is that there is a child dialog d1 for frame f. This leads to f to be not always-on-top.


      ###@###.### 2005-03-29 11:48:59 GMT

      Attachments

        Issue Links

          Activity

            People

              ant Anton Tarasov (Inactive)
              art Artem Ananiev (Inactive)
              Votes:
              0 Vote for this issue
              Watchers:
              0 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved:
                Imported:
                Indexed: