-
Enhancement
-
Resolution: Unresolved
-
P4
-
None
-
5.0
-
Cause Known
-
x86
-
windows_xp
A DESCRIPTION OF THE REQUEST :
I think JLabel needs to have an option to automatically word-wrap like a JTextPane. JLabel should have a property, maybe called wordWrap, and corresponding methods void setWordWrap(boolean) and boolean getWordWrap(). Then, whenever the label would normally be cut off or require a certain amount of size, it would instead wrap the words onto the next line like any other text component would do.
JUSTIFICATION :
Text components are too heavy and have their own Look & Feel. It is currently difficult to make something that behaves and looks like a label to the user, but can handle wide text which needs to be wrapped to multiple lines.
###@###.### 10/19/04 19:58 GMT
I think JLabel needs to have an option to automatically word-wrap like a JTextPane. JLabel should have a property, maybe called wordWrap, and corresponding methods void setWordWrap(boolean) and boolean getWordWrap(). Then, whenever the label would normally be cut off or require a certain amount of size, it would instead wrap the words onto the next line like any other text component would do.
JUSTIFICATION :
Text components are too heavy and have their own Look & Feel. It is currently difficult to make something that behaves and looks like a label to the user, but can handle wide text which needs to be wrapped to multiple lines.
###@###.### 10/19/04 19:58 GMT