Results 1 to 3 of 3
- 12-01-2008, 07:29 PM #1
Member
- Join Date
- Aug 2008
- Posts
- 41
- Rep Power
- 0
Make a text in Jlabel down to next Line
How to make a text in Jlabel down to next Line ??
I have a String and don't know how long it will, and set that String to the JLabel, and the problem is, when the String is too long, the Text in JLabel will appear "....."
How can we make the text auto drop down to next line???
Sorry, my English is too bad :P
- 12-01-2008, 08:17 PM #2
There's probably a simpler way but if you know how long the JLabel text field is you can just compare the string length to that length and have a loop that once it reaches max length just starts printing on the next line.
-
Similar Threads
-
Saving To A New Line Using A Text File
By jadaleus in forum Advanced JavaReplies: 10Last Post: 10-24-2008, 07:21 PM -
Saving To A New Line Using A Text File
By jadaleus in forum Advanced JavaReplies: 1Last Post: 10-24-2008, 12:31 AM -
saving to a new line a text
By jadaleus in forum Advanced JavaReplies: 1Last Post: 10-20-2008, 06:10 PM -
Styled Text with highlighted Odd Line
By Java Tip in forum SWTReplies: 0Last Post: 07-25-2008, 02:31 PM -
JLabel and text concept issues
By Jononomous in forum New To JavaReplies: 1Last Post: 03-30-2008, 05:42 PM


LinkBack URL
About LinkBacks
Reply With Quote
Bookmarks