aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes Timer Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of The Java EE 7 Tutorial Volume 1 or Volume 2 this week in the Java EE forum
or jQuery UI in Action in the JavaScript forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Timer" Watch "Timer" New topic
Author

Timer

Anonymous
Ranch Hand

Joined: Nov 22, 2008
Posts: 18944
I don't know how to use Timer with a JLabel. My intention is to make the JLabel text blinking.
Code sample or any pointer will be a great help.
Regards,
Sabbir
Frank Hale
Ranch Hand

Joined: Mar 25, 2000
Posts: 230
There is an article on the Swing Connection at Suns Java site.
http://java.sun.com/products/jfc/tsc/index.html <- Swing Connection
http://java.sun.com/products/jfc/tsc/articles/timer/index.html < Timer article
Have fun,
Frank
Kevin Ng
Greenhorn

Joined: Aug 31, 2003
Posts: 23
Does someone know how to do the birthday reminder for application. The idea is a popup reminder/alert box will appear if the particular person birth date same with today date or earlier in my record.
Really need you all ideas and comments. If can you all can provides a sample code for me. Thank you in advance!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
For the blinking label, try this
Not sure if there's a visible property you can toggle, so I've used remove/add
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
For the birthday reminder, try this
Kevin Ng
Greenhorn

Joined: Aug 31, 2003
Posts: 23
Dear Michael Dunn,
How about if i want to display a popup box to remind me according with the date in my MySQL database. Which means the birth date of my friend equal or earlier with the today date then a popupbox will appear.
Thank you!
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
Get the date data from MySQL, put the data into the string variable "birthday" (you may have to change the SimpleDateFormat pattern to match the pattern of the data from MySQL), the rest should be the same.
Kevin Ng
Greenhorn

Joined: Aug 31, 2003
Posts: 23
Dear Michael Dunn,
If you not mind can u show me how to get the date data from MySQL?
Thank you!
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Timer