Forums Register Login

underlining label caption

+Pie Number of slices to send: Send
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
+Pie Number of slices to send: Send
html is one way

JLabel label = new JLabel("<html><u>Hello World</u></html>");
+Pie Number of slices to send: Send
thnx

but what if the string to be underlined is a variable?
+Pie Number of slices to send: Send
exactly the same way as any string

"string"+variable+"string"
+Pie Number of slices to send: Send
Bless u, done it
Hannah
[ December 31, 2005: Message edited by: H Melua ]
It will give me the powers of the gods. Not bad for a tiny ad:
a bit of art, as a gift, the permaculture playing cards
https://gardener-gift.com


reply
reply
This thread has been viewed 1200 times.
Similar Threads
Personal Project using Python
i need help to make a big region in hssfworkbook ?
Problems while parsing files in different encoding
JFileChooser and network share
customize confirm box button text ???
More...

All times above are in ranch (not your local) time.
The current ranch time is
Mar 28, 2024 15:16:15.