Results 1 to 5 of 5
Thread: panel positioning
- 09-09-2008, 04:11 PM #1
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
- 09-09-2008, 04:23 PM #2
Look at layout managers and the set... methods of the Component class. There some to locate and size a component in its container.
There are probably examples on the forum if you Search.
- 09-09-2008, 04:34 PM #3
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
i can't find it on forum...
lets say i have 3 classes, each representing a panel:
PanelMain, Panel1, Panel2
can i set the size of Panel1 in its constructor and the location(setBounds or setLocation?) in the constructor of PanelMain?
- 09-09-2008, 04:50 PM #4
Member
- Join Date
- Sep 2008
- Posts
- 38
- Rep Power
- 0
okay, maybe i m a bit lazy...
ill look it up, thx anyway
- 09-09-2008, 05:15 PM #5
Similar Threads
-
Undoable Drawing Panel
By Java Tip in forum javax.swingReplies: 1Last Post: 04-13-2009, 02:27 PM -
How to add more components to main panel
By aneesahamedaa in forum AWT / SwingReplies: 4Last Post: 08-21-2008, 06:31 PM -
add image on panel
By samiksha.goel in forum AWT / SwingReplies: 4Last Post: 08-02-2008, 07:38 PM -
Problem in getting table on panel
By adeeb in forum AWT / SwingReplies: 0Last Post: 06-09-2008, 08:23 PM -
Help with drag from panel
By fernando in forum AWT / SwingReplies: 2Last Post: 08-07-2007, 10:19 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks