| Author |
underlining label caption
|
H Melua
Ranch Hand
Joined: Jan 04, 2005
Posts: 168
|
posted

0
|
hey guys looking at the API, i can see that class Font does not have attribute UNDERLINE... is there a way to have Jlabel caption underlined? thank u
|
 |
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
|
posted

0
|
html is one way JLabel label = new JLabel("<html><u>Hello World</u></html>");
|
 |
H Melua
Ranch Hand
Joined: Jan 04, 2005
Posts: 168
|
posted

0
|
thnx but what if the string to be underlined is a variable?
|
 |
Michael Dunn
Ranch Hand
Joined: Jun 09, 2003
Posts: 4632
|
posted

0
|
exactly the same way as any string "string"+variable+"string"
|
 |
H Melua
Ranch Hand
Joined: Jan 04, 2005
Posts: 168
|
posted

0
|
Bless u, done it Hannah [ December 31, 2005: Message edited by: H Melua ]
|
 |
 |
|
|
subject: underlining label caption
|
|
|