Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

Center text inside label

newjavalearnerAug 13 2012 — edited Aug 13 2012
Hello,
I have problem centering text inside my label.
Here is the code
 Label myLabel = new Label("text");
I've tried many setting (setTextAlignment, setAlignment, ...) but always the text inside label is not in the center
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2012
Added on Aug 13 2012
5 comments
5,615 views