Results 1 to 9 of 9
Thread: panels, panels, and more panels
- 06-11-2012, 04:30 AM #1
student
- Join Date
- Jun 2012
- Location
- MD
- Posts
- 8
- Rep Power
- 0
- 06-11-2012, 04:48 AM #2
Re: panels, panels, and more panels
You use the add() method to add components to containers.
If you don't understand my response, don't ignore it, ask a question.
- 06-11-2012, 04:49 AM #3
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
- 06-11-2012, 05:08 AM #4
student
- Join Date
- Jun 2012
- Location
- MD
- Posts
- 8
- Rep Power
- 0
Re: panels, panels, and more panels
Thanks for the link...
yankeetooter7
- 06-11-2012, 05:36 AM #5
student
- Join Date
- Jun 2012
- Location
- MD
- Posts
- 8
- Rep Power
- 0
Re: panels, panels, and more panels
Yes, but I am having trouble figuring out where I add the panels...in the driver class, in the constructor...*shrugs*. I think I am giving up for the night...too tired.
- 06-11-2012, 05:38 AM #6
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: panels, panels, and more panels
You're welcome.
Depending on your experience the API docs can be as clear as mud... Oracle's Tutorial is a very valuable resource but, again, the page I linked to doesn't have a lot of overall "context" so you might have to look around the surrounding pages.
One common mistake is to overlook the importance of panel layouts. In Java (or rather awt/swing) panels and layouts are pretty much a package detail. So a more accurate answer to your quesion would be: set the layout, then add(). Getting the hang of which layout to use and when involves some tinkering.
If you get stuck, post what you've come up with and describe what goes wrong.
- 06-11-2012, 05:52 AM #7
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: panels, panels, and more panels
Probably the panel's constructor. But, sans code, that's a guess.
Read the links and sleep on it. Between the muses and some playing about with code as they might suggest you'll come up with something. Then it's just amatter of making it work...
- 06-11-2012, 05:52 AM #8
Moderator
- Join Date
- Feb 2009
- Location
- New Zealand
- Posts
- 4,547
- Rep Power
- 11
Re: panels, panels, and more panels
Probably the panel's constructor. But, sans code, that's a guess.
Read the links and sleep on it. Between the muses and some playing about with code as they might suggest you'll come up with something. Then it's just amatter of making it work...
- 06-11-2012, 06:09 AM #9
student
- Join Date
- Jun 2012
- Location
- MD
- Posts
- 8
- Rep Power
- 0
Similar Threads
-
Frame with 2 Panels
By collwill in forum New To JavaReplies: 9Last Post: 01-10-2013, 06:49 AM -
Gap Between Panels?
By OllyHal in forum AWT / SwingReplies: 1Last Post: 03-13-2012, 08:36 PM -
frames and panels
By alextemari in forum New To JavaReplies: 6Last Post: 03-26-2011, 04:01 AM -
Need some help with panels inside panels
By kakefjes in forum AWT / SwingReplies: 0Last Post: 03-17-2011, 11:36 AM -
Java Panels
By nikkka in forum New To JavaReplies: 11Last Post: 03-12-2011, 02:28 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks