This week's book giveaway is in the Kotlin forum.
We're giving away four copies of Kotlin in Action and have Dmitry Jemerov & Svetlana Isakova on-line!
See this thread for details.
Win a copy of Kotlin in Action this week in the Kotlin forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

background color after regular intervals  RSS feed

 
Tamana Joshi
Greenhorn
Posts: 21
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hello,
i m making a banking system. for that i need some logics as i m poor in logics. plz tell me how to change background color of the frame after regular intervals lets say 5 secs.

thanks
 
Stuart Gray
Ranch Hand
Posts: 410
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Try the classes java.util.Timer or javax.swing.Timer. Each has different situations for which it is best suited. Check out the API page for each; in your case I think javax.swing.Timer might be better.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!