• Post Reply Bookmark Topic Watch Topic
  • New Topic

background color after regular intervals

 
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.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!