Author
jbutton in one line with jlabel
Lucas Smith
Ranch Hand
Joined: Apr 20, 2009
Posts: 804
Hi,
I want to create the GUI which is similar to that from picture. Everything is OK, but I am not able to add that gaps (indicates by red colour).
NORTH, CENTER and EAST parts are OK.
I have the code for theSOUTH panel:
Everything is OK, but the gaps are absent. Any ideas on how to introduce them?
layout.JPG
SCJP6, SCWCD5, OCE:EJBD6.
BLOG: http://leakfromjavaheap.blogspot.com
Darryl Burke
Bartender
Joined: May 03, 2008
Posts: 4167
Either use a more appropriate layout or an EmptyBorder .
luck, db
There are no new questions, but there may be new answers.
Rob Camick
Ranch Hand
Joined: Jun 13, 2009
Posts: 1790
Read the GridLayout API for information on how to specify vertical/horizontal gaps.
Edit:
I was also going to suggest using a more appropriate layout, but Darryl beat me to it
Lucas Smith
Ranch Hand
Joined: Apr 20, 2009
Posts: 804
Thank You both.
EmptyBorder is quite useful
subject: jbutton in one line with jlabel