aspose file tools
The moose likes Swing / AWT / SWT and the fly likes GridBagLayout Big Moose Saloon
  Search | Java FAQ | Recent Topics
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Reply Bookmark "GridBagLayout" Watch "GridBagLayout" New topic
Author

GridBagLayout

Maiquel knechtel
Greenhorn

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
Bartender

Joined: Jun 19, 2010
Posts: 792
    
    2

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
Sheriff

Joined: Oct 13, 2005
Posts: 32638
    
    4
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
 
I agree. Here's the link: http://ej-technologies/jprofiler - if it wasn't for jprofiler, we would need to run our stuff on 16 servers instead of 3.
 
subject: GridBagLayout
 
Similar Threads
Need help with addActionListener
Can't get PaintComponent to work :(
gridlayout with combo box
GridBagLayout Problem
GridBagLayout and JFrame