• 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 all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Jeanne Boyarsky
  • Devaka Cooray
  • Paul Clapham
Sheriffs:
  • Tim Cooke
  • Knute Snortum
  • Bear Bibeault
Saloon Keepers:
  • Ron McLeod
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Ganesh Patekar
Bartenders:
  • Frits Walraven
  • Carey Brown
  • Tim Holloway

Need Help With (Creating New) Frames

 
Greenhorn
Posts: 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello all - I'm hoping someone could give me a hand with a problem I'm having. I'm creating a bibliography program and I'm using multiple different types of sources (i.e. encyclopedia, dictionary, book etc) but each of these has a different requirement for what needs to be in the media type (i.e. Online, In Print, CD-ROM)

I'm using Choice drop down bars to allow the user to determine what source and media type they want to use.

Right now my layout looks something like this

<Source Dropdown> <Media Type Dropdown> [Continue Button]

After selecting a source and media type, the user would then hit the continue button which would open up a new frame which would have all the input fields for the appropriate source and media type.

I'm not quite sure how to do this though, I've already created another JFrame Form in a different file... is it possible to just load that file when the continue button is clicked?

Thanks for any help you can give me

-Chris
 
Ranch Hand
Posts: 1535
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
is it possible to just load that file when the continue button is clicked? Yes you can do this. Just take care to allow only one instance to be shown at a time (in case the continue button is pressed more than once).
Here's another possibility:
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!