Results 1 to 6 of 6
Thread: GUI alignment
- 03-13-2011, 08:42 PM #1
Senior Member
- Join Date
- Feb 2011
- Posts
- 107
- Rep Power
- 0
- 03-13-2011, 09:07 PM #2
Senior Member
- Join Date
- Jan 2011
- Location
- Belgrade, Serbia
- Posts
- 227
- Rep Power
- 3
use netbeans :-)
- 03-13-2011, 09:12 PM #3
Senior Member
- Join Date
- Feb 2011
- Posts
- 107
- Rep Power
- 0
ha ha ha, I'm still a novice so I prefer to code by hand. Come on milovan, spare a moment.
-
Nah don't use NetBeans as you will not learn the ins and outs of Swing this way.
One possible way: consider creating a main JPanel that uses a BorderLayout with the Basket in the BorderLayout.EAST position and everything else in a JPanel in the BorderLayout.CENTER position. Everything else can go into a JPanel that uses a GridBagLayout, but you'll need to add empty JLabels to fill up the blank spaces. Again this GridBag panel can go BorderLayout.CENTER into the main JPanel.
- 03-13-2011, 09:20 PM #5
Senior Member
- Join Date
- Jan 2011
- Location
- Belgrade, Serbia
- Posts
- 227
- Rep Power
- 3
Well, if there is nothing new in java I guess GridBagLayout can be the answer. But I'm little rusty with this after IDE came in my life.
Take a look at:
How to Use GridBagLayout (The Java™ Tutorials > Creating a GUI With JFC/Swing > Laying Out Components Within a Container)
- 03-13-2011, 09:22 PM #6
Senior Member
- Join Date
- Feb 2011
- Posts
- 107
- Rep Power
- 0
Similar Threads
-
Alignment in GridLayout
By Zamereon in forum AWT / SwingReplies: 2Last Post: 02-27-2011, 11:49 AM -
pls... help.... alignment....
By eiramae in forum Java AppletsReplies: 0Last Post: 02-26-2011, 06:47 AM -
Help with alignment
By firecat318 in forum AWT / SwingReplies: 3Last Post: 05-25-2010, 03:01 AM -
Alignment using BoxLayout
By tiptoe in forum AWT / SwingReplies: 4Last Post: 01-23-2010, 07:15 PM -
alignment of textfield in awt
By nitinborge5 in forum New To JavaReplies: 2Last Post: 07-30-2007, 11:16 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks