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


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

line breaks in Jlabel w/o

Started by"TrevorBoydSmith" <trevorboydsmith@THRWHITE.remove-dii-this>
First post2011-04-27 15:25 +0000
Last post2011-04-27 15:25 +0000
Articles 2 — 2 participants

Back to article view | Back to comp.lang.java.gui


Contents

  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

#129 — line breaks in Jlabel w/o

From"TrevorBoydSmith" <trevorboydsmith@THRWHITE.remove-dii-this>
Date2011-04-27 15:25 +0000
Subjectline breaks in Jlabel w/o
Message-ID<1163775984.723494.48260@k70g2000cwa.googlegroups.com>
  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

[toc] | [next] | [standalone]


#133 — Re: line breaks in Jlabel

From"Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this>
Date2011-04-27 15:25 +0000
SubjectRe: line breaks in Jlabel
Message-ID<1163782133.724762.139460@k70g2000cwa.googlegroups.com>
In reply to#129
  To: comp.lang.java.gui
TrevorBoydSmith@gmail.com wrote:
...
> 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)

Did the results of your simple test, support your theory?

Andrew T.

---
 * 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

[toc] | [prev] | [standalone]


Back to top | Article view | comp.lang.java.gui


csiph-web