How to make sure a window is always on top of all other windows using AWT or Swing?
Submitted by: AdministratorBefore Java 1.5 you couldn't:
AWT and Swing didn't provide this feature. All you could do was to use a (modal) [J]Dialog, and make sure the [J]Dialog is provided with the correct parent/owner in the constructor.
Since Java 1.5:
Window.setAlwaysOnTop(), which is inherited by the other top-level containers like JFrame.
Submitted by: Administrator
AWT and Swing didn't provide this feature. All you could do was to use a (modal) [J]Dialog, and make sure the [J]Dialog is provided with the correct parent/owner in the constructor.
Since Java 1.5:
Window.setAlwaysOnTop(), which is inherited by the other top-level containers like JFrame.
Submitted by: Administrator
Read Online Java GUI Framework Job Interview Questions And Answers
Top Java GUI Framework Questions
☺ | What is Event-Driven-Thread (EDT) in Swing? |
☺ | What is Qt Jambi? |
☺ | What is JavaFX? |
☺ | What is difference between invokeAndWait and invokeLater? |
☺ | What is an SSCCE? |
Top Java Programming Language Categories
☺ | Core Java Interview Questions. |
☺ | Hibernate Interview Questions. |
☺ | Advanced Java Interview Questions. |
☺ | IBM WebSphere Interview Questions. |
☺ | Spring Framework Interview Questions. |