how to close a messagebox automatically
im my java SE application i have a messagebox prompting asking the user to press OK. i want to make the user wait a certain time and the messagebox will automatically close in a certain time.
i read on swing.timer about this. but im bit confused with the implementation. how to do it to a messagebox.
can someone help me with a example code. pelase
lich
Junior Poster in Training
79 posts since May 2008
Reputation Points: -1
Solved Threads: 4
On showing the messagebox, start a timer. When the timer runs out, dispose of the window.
jwenting
duckman
8,392 posts since Nov 2004
Reputation Points: 1,662
Solved Threads: 337
can you please provide me a sample code. about the timer and the timer runs out
lich
Junior Poster in Training
79 posts since May 2008
Reputation Points: -1
Solved Threads: 4
lich ... it's not that hard to write a countdown, even if you're not using a timer.
stultuske
Posting Sensei
3,137 posts since Jan 2007
Reputation Points: 1,114
Solved Threads: 433
can you please provide me a sample code. about the timer and the timer runs out
There's lots of examples on the web. Why do you think someone should write a new one just for you? Google is your friend.
JamesCherrill
Posting Genius
6,373 posts since Apr 2008
Reputation Points: 2,130
Solved Threads: 1,073