Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > comp.lang.java.gui > #129

line breaks in Jlabel w/o

From "TrevorBoydSmith" <trevorboydsmith@THRWHITE.remove-dii-this>
Subject line breaks in Jlabel w/o
Message-ID <1163775984.723494.48260@k70g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:25 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
I know you can do line breaks in a JLabel when you use html and you use
the '<br>'... but when the user resizes the window all the html JLabels
get funkified in an ugly way!  I want to avoid my gui getting all
screwed up when the user resizes the window.  The quick work around to
my problem is to just restrict the user from being able to resize the
window...

Does the JLabel class support line breaks by using the '\n' or '\r\n'
characters??  (My theory is that if I can use these characters instead
of html, then the gui would not get messed up when the user resizes a
window)

---
 * Synchronet * The Whitehouse BBS --- whitehouse.hulds.com --- check it out free usenet!
--- Synchronet 3.15a-Win32 NewsLink 1.92
Time Warp of the Future BBS - telnet://time.synchro.net:24

Back to comp.lang.java.gui | Previous | NextNext in thread | Find similar


Thread

line breaks in Jlabel w/o "TrevorBoydSmith" <trevorboydsmith@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000
  Re: line breaks in Jlabel "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:25 +0000

csiph-web