This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes GridBagLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "GridBagLayout" Watch "GridBagLayout" New topic


Maiquel knechtel

Joined: Jan 31, 2009
Posts: 6
Hello everybody,

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

tracking code

Maiquel Knechtel

SCJP 5.0
SCWCD{in progress}

Alan Kay: "The best way to predict the future is to invent it."
Kemal Sokolovic

Joined: Jun 19, 2010
Posts: 825

Did you go through How to Use GridBagLayout first? There is an example with exactly what you're looking for (applied to buttons).

The quieter you are, the more you are able to hear.
Campbell Ritchie

Joined: Oct 13, 2005
Posts: 37884
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
It is sorta covered in the JavaRanch Style Guide.
subject: GridBagLayout
Similar Threads
gridlayout with combo box
Need help with addActionListener
GridBagLayout and JFrame
GridBagLayout Problem
Can't get PaintComponent to work :(