• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Timer

 
Ranch Hand
Posts: 18944
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 230
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
For the birthday reminder, try this
 
Kevin Ng
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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!
 
reply
    Bookmark Topic Watch Topic
  • New Topic