• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

jbutton in one line with jlabel

 
Lucas Smith
Ranch Hand
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
[Thumbnail for layout.JPG]
 
Darryl Burke
Bartender
Posts: 5132
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Either use a more appropriate layout or an EmptyBorder.
 
Rob Camick
Ranch Hand
Posts: 2599
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 808
1
Android Eclipse IDE Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thank You both.

EmptyBorder is quite useful
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic