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


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

JLabel Text Wrap

From "Ooder" <ooder@THRWHITE.remove-dii-this>
Subject JLabel Text Wrap
Message-ID <1170171921.319486.243710@q2g2000cwa.googlegroups.com> (permalink)
Newsgroups comp.lang.java.gui
Date 2011-04-27 15:29 +0000
Organization TDS.net

Show all headers | View raw


  To: comp.lang.java.gui
Hi,

I have a JList that uses a custom cell renderer that implements JLabel 
to display text.  The problem is I want the text to automatically 
wrap.  I would use JTextArea instead of JLabel, except that I need to 
display an image with the text, which to my knowledge JTextArea cannot 
do.  I am therefore stuck with using a JLabel, but I can't get the 
text to wrap, and I would prefer to not dynamically insert <br> tags.  
Any suggestions?

Thanks

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

JLabel Text Wrap "Ooder" <ooder@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: JLabel Text Wrap "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
  Re: JLabel Text Wrap "Edwin Dankert" <edwin.dankert@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000
    Re: JLabel Text Wrap "Andrew Thompson" <andrew.thompson@THRWHITE.remove-dii-this> - 2011-04-27 15:29 +0000

csiph-web