Tek-Tips is the largest IT community on the Internet today!

Members share and learn making Tek-Tips Forums the best source of peer-reviewed technical information on the Internet!

  • Congratulations derfloh on being selected by the Tek-Tips community for having the most helpful posts in the forums last week. Way to Go!

How to set child Dialog always appears when active parent Frame

Status
Not open for further replies.

trungx

Programmer
Joined
Sep 20, 2001
Messages
28
Location
VN
How to set child Dialog always appears when active parent Frame.

I call Dialog from Frame; and switch to other application, then active Frame => but I can't see Dialog, only use Alt-Tab to display Dialog.Help me, Thanks a lot!
 
Set the dialog as modal in the constructor or in the setModal(true) method.


srinu
 
Ye,but It's not ok!!
It's only ok if use Alt-Tab to switch to another app
Help!
 
Is the parent also a java app?
If not you can't force modality without using native
methods.
 
yeah, the parent is the java app
 
Yeah, it is the java app
 
Sorry! I want to call Dialog from JInternalFrame, not Frame!
 
Status
Not open for further replies.

Part and Inventory Search

Sponsor

Back
Top