Any way to make text blink without threads?

Is there any way to make text rendered by drawString (or somesuch) blink without mucking around with threads? Is there some font characteristic like Font.BOLD or Font.ITALIC called someotherFont.BLINK that I just haven't found in the API? I really dont want to screw with threads if I can avoid it.

[306 byte] By [apchar_boiira] at [2007-9-29 23:17:10]
# 1
No. You can make life a little easyer with Timer & TimerTasks
mlka at 2007-7-16 3:42:13 > top of Java-index,Java Essentials,New To Java...
# 2

> Is there any way to make text rendered by drawString

> (or somesuch) blink without mucking around with

> threads? Is there some font characteristic like

> Font.BOLD or Font.ITALIC called someotherFont.BLINK

> that I just haven't found in the API? I really dont

> want to screw with threads if I can avoid it.

Hi,

I am not sure if you can do such a thing using drawSting. How about using JLabels (or labels if you are still using awt). They support HTML tags and hence blinking will be just adding a tag to the label text.

Comments always welcome.

Thanks,.

Chandra Mohan

bschandramohana at 2007-7-16 3:42:13 > top of Java-index,Java Essentials,New To Java...
# 3
If the implementor of the HTML render in Java implemented the none-standard, and very evil blink tag, I will personally go and smack him/her over the head with a blink tag made out of Lego bricks.(i'm fairly sure they did not, so my lego mindstormers set is safe)
mlka at 2007-7-16 3:42:13 > top of Java-index,Java Essentials,New To Java...
# 4
You could instruct your users to open and close their eyes in rapid succession.
ChrisBoya at 2007-7-16 3:42:13 > top of Java-index,Java Essentials,New To Java...
# 5
hi chandra mohan,If u dont mind , can u tell me how to blink JLabel .Thanks bye
g.madhua at 2007-7-16 3:42:13 > top of Java-index,Java Essentials,New To Java...