my dog learned polymorphism*
The moose likes Swing / AWT / SWT and the fly likes Allignment Of Swing Component Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Allignment Of Swing Component" Watch "Allignment Of Swing Component" New topic
Author

Allignment Of Swing Component

Ahesanali Khanusiya
Greenhorn

Joined: Jul 15, 2010
Posts: 11



I want to align Jlable and Jtextfield Component in single line then which layout manager I used and how....
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4571
    
    5

Take your choice.
http://download.oracle.com/docs/cd/E17409_01/javase/tutorial/uiswing/layout/visual.html


luck, db
There are no new questions, but there may be new answers.
Rob Spoor
Sheriff

Joined: Oct 27, 2005
Posts: 19697
    
  20

There are more layout managers that can do this than that cannot do this. FlowLayout is the easiest if the JTextField's size should remain fixed, BorderLayout if the size should grow.


SCJP 1.4 - SCJP 6 - SCWCD 5 - OCEEJBD 6
How To Ask Questions How To Answer Questions
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Allignment Of Swing Component