This week's giveaway is in the Spring forum.
We're giving away four copies of REST with Spring (video course) and have Eugen Paraschiv on-line!
See this thread for details.
The moose likes Swing / AWT / SWT and the fly likes BoxLayout quirk Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "BoxLayout quirk" Watch "BoxLayout quirk" New topic

BoxLayout quirk

Eric Larsen
Ranch Hand

Joined: Mar 28, 2009
Posts: 35
Why does my my JLabel appear all the way on the right-hand side of my GUI?

The source code for the class:

Attached is a screenshot of the GUI output.

[Thumbnail for Wessenger_screen.JPG]

Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
add these lines


comment out this line

and they'll all be left-aligned
It is sorta covered in the JavaRanch Style Guide.
subject: BoxLayout quirk
It's not a secret anymore!