Results 1 to 3 of 3

Thread: JLabel

  1. #1
    Freddie is offline Member
    Join Date
    May 2007
    Posts
    41
    Rep Power
    0

    Default JLabel

    I want to configure JLabel like this:
    |exam|
    |ple |

    not like this:
    |exam...|

    Do you know how can I do this?
    thanks

  2. #2
    Alan is offline Member
    Join Date
    May 2007
    Posts
    39
    Rep Power
    0

    Default

    mmm You can't do this.
    but please search a Multiline Jtable, i remember that I've searched and somebody implemented this. I used a JtextArea without color, visually, this is the same!
    ;)

  3. #3
    Nick15 is offline Member
    Join Date
    May 2007
    Posts
    38
    Rep Power
    0

    Default

    You can use a JTextArea with linewrap instead of jlabel.
    for example

    jTextArea.setEditable(false)
    jTextArea.setLineWrap(true)
    jTextArea.setWrapStyleWord(true);

    try it

Similar Threads

  1. JLabel append?
    By Jononomous in forum New To Java
    Replies: 0
    Last Post: 04-07-2008, 08:41 PM
  2. JLabel .setActionCommand
    By stevemcc in forum AWT / Swing
    Replies: 1
    Last Post: 03-28-2008, 05:16 AM
  3. Problems with JLabel 2
    By geork in forum New To Java
    Replies: 2
    Last Post: 02-03-2008, 09:40 PM
  4. help me with JFrame and JLabel
    By michcio in forum New To Java
    Replies: 5
    Last Post: 11-20-2007, 08:44 AM
  5. JLabel
    By Jack in forum AWT / Swing
    Replies: 2
    Last Post: 07-02-2007, 02:55 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •