Java Solaris Communities Sun Store Join SDN My Profile Why Join?
 
Bug Database
Bug Detail
Quick Lists
Top 25 Bugs
Top 25 RFE's
Recently Closed Bugs
Printable Page Printable Page


Bug Database
Bug ID: 4940645
Votes 0
Synopsis setAlwaysOnTop(true) does not work in modal dialog in Windows
Category java:classes_awt
Reported Against tiger-beta
Release Fixed 1.5(tiger-b30)
State 10-Fix Delivered, bug
Priority: 2-High
Related Bugs 4775862
Submit Date 20-OCT-2003
Description
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();
      
     
    }


}
Work Around
N/A
Evaluation



Showing of modal dialogs is a little bit different then showing of other windows.  
And we forgot to set always-on-top property of native window on this way.

To fix this we should update always-on-top property in WWindowPeer.show().
  xxxxx@xxxxx   2003-10-24

======================================================================
Comments
  
  Include a link with my name & email   


PLEASE NOTE: JDK6 is formerly known as Project Mustang