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


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

Re: JLabel Text Wrap

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

Show all headers | View raw


  To: comp.lang.java.gui
My suggestion would be to use a JPanel(BorderLayout) with a
JLabel(BorderLayout.WEST) (for the icon) and a JTextArea
(BorderLayout.CENTER) for the text. (I have never really warmed to
this HTML to style components idea)

Otherwise ... you might be able to use the QLabel [1] class for this,
it supports multiple lines.

Note: This is part of the bounce [2] package, which I have created
really only for myself, but feel free to use what ever you want. (It
uses an open source BSD license so, no restrictions :-)

[1] http://www.edankert.com/bounce/api/org/bounce/QLabel.html
[2] http://sourceforge.net/projects/bounce/

Regards,
Edwin
--
http://www.edankert.com/

---
 * 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 | NextPrevious in thread | Next 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