• Post Reply Bookmark Topic Watch Topic
  • New Topic

Auto-update and Swing

 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Hi All,
I am developing a Swing application where I exactly wanna implement an update pop up. The application, on start-up, shows a pop-up message, say new updates available (it shows the same at regular intervals) . I know I should use Threads. But I am not much clear on how to get into.

Any break through?

Thanks
Renjith
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Have you considered JWS ? With JWS you need not bother about implementing code to update the jars.
Users do not need to manually update applications because each time they launch an application, it is transparently updated from the web--so they always use the most recent version available.

More information here
http://java.sun.com/j2se/1.5.0/docs/guide/javaws/developersguide/faq.html
 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for the quick reply, Maneesh.

Let me make it more clear. What I mean by 'update' is, the application checks whether the user has filled a particular form and submitted. If it finds any failed submission, it alerts user like 'one of the forms has been failed to submit. Send it now' (some message whatsoever)

hope it's now more clear for you
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
How does
The application, on start-up, shows a pop-up message, say new updates available (it shows the same at regular intervals)
tie up with the failed submission? Are we talking about two different requirements here?
 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

On certain form submission, the application connects to a website, where it is submitted. Due to any reasons, if the submission is unsuccessful, the application writes the contents in a file and save at client side. So, each time the application starts, it checks for any such failed submission. If any, it throws a popup message.

Clear ?
 
Maneesh Godbole
Bartender
Posts: 11445
18
Android Eclipse IDE Google Web Toolkit Java Mac Ubuntu
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Check out the java.lang.Timer and java.lang.SwingWorker.
Essentially you need to spawn a new thread after a specific time interval and check the status.
Also check outjava.lang.SwingUtilities #invokeLater()
 
Renjith Mohan
Ranch Hand
Posts: 65
Android Chrome Java
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks Maneesh.

Working with SwingWorker and Timer...

Get back to you once I have news.

Thanks,
Renjith
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!