Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

GridBagLayout  RSS feed

 
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: 55351
157
  • 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
Boost this thread!