Two Laptop Bag*
The moose likes Swing / AWT / SWT and the fly likes problem with JDialogs Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "problem with JDialogs" Watch "problem with JDialogs" New topic
Author

problem with JDialogs

Srinivas Bitla
Ranch Hand

Joined: Nov 10, 2003
Posts: 31
Hi All,
I have a problem with JDialogs in my standalone application. This app pops-up multiple JDialogs, say a stack of JDialogs.
I have a standalone application which runs as a JFrame, call it JFrame1, which is working fine. JFrame1 pops-up a JDialog, on some button click on JFrame1, call it JDialog1, which is also working fine. Now JDialog1 pops-up another JDialog, again on some button click on JDialog1, call it JDialog2, which is too working fine. But, after I finish with JDialog2 and dispose it my JDialog1 is not working fine, though that is the front dialog at present.
Any ideas why JDialog1 is not working fine? Am I missing anything?
Thanks,
Srinivas.
Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
what isnt working?


SCJP 1.2, SCJP 5, SCBCD
Srinivas Bitla
Ranch Hand

Joined: Nov 10, 2003
Posts: 31
Hi Chris,
I have a component called DateComponent that works similar to a JComboBox. When you click a small popup button of DateComponent, it pops-up a Calendar similar to the drop down list of JComboBox and user can pick a date from it. It gets closed when it loses focus.
I have this DateComponent on JFrame1, JDialog1 and JDialog2. This Calendar is not being diaplayed on JDialog1 upon clicking the small button of DateComponent after JDialog2 is disposed. But it is being diaplayed properly on JDialog1 before JDialog1 opens JDialog2.
I am using JDK1.3.1.
Thanks,
Srinivas.
Chris Brat
Ranch Hand

Joined: May 22, 2003
Posts: 108
hi again,
cant really think of anything off-hand from what you have described.
if possible can you post me the source - no promises, except that I can try fiddle with it.
c.k.b@webmail.co.za
chris
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: problem with JDialogs