Win a copy of Cross-Platform Desktop Applications: Using Node, Electron, and NW.js this week in the JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

How do i create animated alert on specific interval ?  RSS feed

 
raj varma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
In my swing application, How do i create animated alert on specific interval ?
Will alert display evenif application is mininized ?
Please Help !
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'd use the Timer class in javax.swing for scheduling the animation.
As for the "Will alert display even if application is mininized ?" part, that's specific to your application... You'll have to describe what your application does with "alerts"...
[ May 27, 2003: Message edited by: Nathan Pruett ]
 
raj varma
Greenhorn
Posts: 28
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanx Nathan,
About my application , It is a cyber cafe application I want to show alert for every 1 hr.OR if user selects like give me alert after 1.30 hr.
 
Nathan Pruett
Bartender
Posts: 4121
IntelliJ IDE Java Spring
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Yeah, the alert runs whether or not the frame is minimized, and if part of the alert response is to pop up a dialog or something, the dialog should still show up. Or you could just test the current state of the frame and un-minimize it when a new alert was launched.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!