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

setAlwaysOnTop(true) does not work in modal dialog in Windows

XMLWordPrintable

    • Icon: Bug Bug
    • Resolution: Fixed
    • Icon: P2 P2
    • 5.0
    • 5.0
    • client-libs
    • b30
    • generic
    • windows_xp

      Here is the code that demonstrates the bug.

      import java.awt.*;

      public class AlwaysOnTop {

          public static void main(String[] args) {
           
           Frame f = new Frame("Frame");
           f.setBounds(100,100,400,400);

           f.show();
         
           // Always on Top seems to not work on Windows if the Dialog
           // is modal
           Dialog d = new Dialog(f,"Dialog",true);
           d.setAlwaysOnTop(true);
           d.setBounds(200,200,400,400);
           d.show();
            
           
          }


      }

            son Oleg Sukhodolsky (Inactive)
            jgodinez Jennifer Godinez (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: