• 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
  • Tim Cooke
  • Devaka Cooray
  • Ron McLeod
  • Jeanne Boyarsky
Sheriffs:
  • Liutauras Vilda
  • paul wheaton
  • Junilu Lacar
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Piet Souris
  • Carey Brown
  • Tim Holloway
Bartenders:
  • Martijn Verburg
  • Frits Walraven
  • Himai Minh

Frames with tabs (make 2 frames ?)

 
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I am working on setting up a GUI.
I'm on paper right now.

I want to keep general data at the very top like a header.
A section under and spanning the Frame I want one event interface.
Under that I want a section that is managed by 3 tabs to select between the three tasks.
The header with the general data and the top event will always be available.

Do I want to make a frame in a frame?
One giant frame to hold everything
A second frame to hold the tabbed panes at the bottom?

Or do I want to just use a layout manager that will contain the tabbed panes in the southern section?

I hope I made sense...
Also, how much of the details of each GUI section should be held in the main frame and how much should be held in other classes to be called by the main frame's constructor?

Ok... I think I'm done.
[ February 25, 2005: Message edited by: Matt Fielder ]
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
if the event interface controls the visible 'tab' of the bottom section,
perhaps a cardlayout panel would be better than a JTabbedPane
 
Ranch Hand
Posts: 3061
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Typically I have little to no code in my Frames when I make GUI apps. I usually have a Panel that contains the logic to set up the GUI. This makes it easier to change the application into an applet or other type of program.

As for the rest of your questions, I don't have much advice off the top of my head. You should probably mosey over to the GUI forum where questions like this are more on topic. Also, the experts on this topic will be more likely to hang out there.

Keep Coding!

Layne
 
Matt Fielder
Ranch Hand
Posts: 158
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
I always feel stupid when I only realize that there's an entire forum section dedicated to the issue that I'm asking about AFTER I post. *sigh* Oh well. Thanks.
 
You had your fun. Now it's time to go to jail. Thanks for your help tiny ad.
the value of filler advertising in 2021
https://coderanch.com/t/730886/filler-advertising
reply
    Bookmark Topic Watch Topic
  • New Topic