Results 1 to 1 of 1
Thread: Aligning Labels
-
Aligning Labels
Lables can be aligned to right, left, or center by passing the appropriate constant to the constructor as shown below:
Java Code:Label center = new Label("This label is centered", Label.CENTER); Label left = new Label("This label is left-aligned", Label.LEFT); Label right = new Label("This label is right-aligned", Label.RIGHT);
Similar Threads
-
Having Trouble Aligning JLabels
By Mark_Petrov in forum AWT / SwingReplies: 0Last Post: 01-20-2008, 05:22 PM -
Working with Labels on Panels.
By vargihate in forum AWT / SwingReplies: 2Last Post: 01-04-2008, 04:09 AM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks