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


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

line breaks in Jlabel w/o

Path csiph.com!x330-a1.tempe.blueboxinc.net!feeder1.hal-mli.net!border3.nntp.dca.giganews.com!border1.nntp.dca.giganews.com!nntp.giganews.com!news-in-01.newsfeed.easynews.com!easynews.com!easynews!news-out.news.tds.net!newsreading01.news.tds.net!86597e80!not-for-mail
From "TrevorBoydSmith" <trevorboydsmith@THRWHITE.remove-dii-this>
Subject line breaks in Jlabel w/o
Message-ID <1163775984.723494.48260@k70g2000cwa.googlegroups.com> (permalink)
X-Comment-To comp.lang.java.gui
Newsgroups comp.lang.java.gui
Content-Type text/plain; charset=IBM437
Content-Transfer-Encoding 8bit
X-Gateway time.synchro.net [Synchronet 3.15a-Win32 NewsLink 1.92]
Lines 17
Date Wed, 27 Apr 2011 15:25:46 GMT
NNTP-Posting-Host 96.60.20.240
X-Complaints-To news@tds.net
X-Trace newsreading01.news.tds.net 1303917946 96.60.20.240 (Wed, 27 Apr 2011 10:25:46 CDT)
NNTP-Posting-Date Wed, 27 Apr 2011 10:25:46 CDT
Organization TDS.net
Xref x330-a1.tempe.blueboxinc.net comp.lang.java.gui:129

Show key headers only | 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 | Unroll thread


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