The Artima Developer Community
Sponsored Link

Java Answers Forum
Creating a JFrame from a *Modal* JDialog

2 replies on 1 page. Most recent reply: May 19, 2004 6:18 AM by Gary Roth

Welcome Guest
  Sign In

Go back to the topic listing  Back to Topic List Click to reply to this topic  Reply to this Topic Click to search messages in this forum  Search Forum Click for a threaded view of the topic  Threaded View   
Previous Topic   Next Topic
Flat View: This topic has 2 replies on 1 page
Gary Roth

Posts: 2
Nickname: gdalya
Registered: May, 2004

Creating a JFrame from a *Modal* JDialog Posted: May 18, 2004 2:48 PM
Reply to this message Reply
Advertisement
I have a program where I use a JDialog to launch various sub-programs for visualizing data in different ways. The JDialog is modal so that the data can't be changed while it is being visualized. The subprograms are JFrame's because I want there to be a separate "button" in the Windows Taskbar so that I can easily switch between the subprograms which are large enough that they usually overlap on the screen. (ie, that's why I don't solve the following problem by basing my subprograms on JDialog's).<br><br>

The problem is that, in addition to blocking my main program, the modal dialog box is blocking the subprograms as well because they don't recognize the Modal JDialog as their owner. JFrame is descended from java.awt.Window, so it should be able to have an owner, but I can't figure out any way to set the owner.<br><br>

Does anyone have any idea how I can get around this problem?<br><br>

Thanks.


Daniel Ray

Posts: 53
Nickname: budoray
Registered: Oct, 2002

Re: Creating a JFrame from a *Modal* JDialog Posted: May 18, 2004 4:05 PM
Reply to this message Reply
Why not implement some form of MDI with JInternalFrame instead?

Gary Roth

Posts: 2
Nickname: gdalya
Registered: May, 2004

Re: Creating a JFrame from a *Modal* JDialog Posted: May 19, 2004 6:18 AM
Reply to this message Reply
Because I'm adding on to a much larger application.

Flat View: This topic has 2 replies on 1 page
Topic: JSP : Parameter Triming problem ? Previous Topic   Next Topic Topic: Thank You To Java Answers Forum

Sponsored Links



Google
  Web Artima.com   

Copyright © 1996-2019 Artima, Inc. All Rights Reserved. - Privacy Policy - Terms of Use