• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

GridBagLayout

 
Maiquel knechtel
Greenhorn
Posts: 12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hello everybody,

I would like to position the JLabel JList side but with a space between them

tracking code

 
Kemal Sokolovic
Bartender
Posts: 825
5
Java Python Ruby
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Did you go through How to Use GridBagLayout first? There is an example with exactly what you're looking for (applied to buttons).
 
Campbell Ritchie
Sheriff
Posts: 48652
56
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Also find out about the GBC class, which you can find here, along with a link to a classic tutorial. The tutorial works better after a few drinks
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic