File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
Win a copy of Soft Skills: The software developer's life manual this week in the Jobs Discussion forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Timer

 
Anonymous
Ranch Hand
Posts: 18944
  • 0
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 230
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
For the birthday reminder, try this
 
Kevin Ng
Greenhorn
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Posts: 23
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Michael Dunn,
If you not mind can u show me how to get the date data from MySQL?
Thank you!
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic