Skip to main content

Multiline Label with TextAlignement=Center

Please note these java.net forums are being decommissioned and use the new and improved forums at https://community.oracle.com/community/java.
1 reply [Last post]
ugochirico
Offline
Joined: 2009-11-04

Is there a way to have a Multiline Label with TextAlignement=Center?

I mean a Label with 2 o 3 lines of text center aligned

Reply viewing options

Select your preferred way to display the comments and click "Save settings" to activate your changes.
gt8887b
Offline
Joined: 2010-03-15

I usually use TextArea with editing disabled. However, if you want center alignment you will have to split your text into multiple lines and have one label per line.