• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

JInternalFrames and Dialogs

 
Ranch Hand
Posts: 333
1
Mac Eclipse IDE Safari
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
My application consists of a JFrame and a lot of JInternalFrames. I would like to add a facility to some of my JInternalFrames which would allow the user to invoke some kind of data selection dialog box for lookup tables etc. If I code this lookup facility as another JInternalFrame I don't how to tell from the JInternalFrame (parent) that invoked it what value the user has selected or indeed that a value has been selected at all. If I create the lookup facility as a JDialog then it is modal and in effect non of the other many JInternalFrames that the user has open are accessible until the dialog is closed.

What is the best way to return a value from one form to another in a manner that the calling form waits for the child form to complete.

I had wondered if it was possible to code my lookup form as a dialog but when creating it pass my JInternalFrame (parent) as the owner, but it does not seem possible to cast a JInternalFrame as a JFrame.

I hope I have explained myself clearly enough.

Thanks in advance

Dave
 
reply
    Bookmark Topic Watch Topic
  • New Topic