0

I have a project for splash screen with progress bar and I have a separate runnable jar file. I want to run jar and update the progress bar in my project. To do that I'm using exec() method.
What would be the approach to update progressbar?

Andrew Thompson
  • 168,117
  • 40
  • 217
  • 433
Amit.D
  • 113
  • 1
  • 13
  • You need to show some code. There's so very many ways of displaying a progress bar... what have you tried? – markspace Sep 22 '16 at 07:25
  • @markspace I haven't tried yet. I have just got stuck in very idea that 'what would be ideal approach to this problem'. I can think of two solutions to this problem. 1) Based on jar file size and time of execution of jar file 2) Based on progressing in windows form(jar). – Amit.D Sep 22 '16 at 08:10
  • See also (the official) [`SplashScreen`](http://docs.oracle.com/javase/8/docs/api/java/awt/SplashScreen.html). – Andrew Thompson Sep 22 '16 at 08:23
  • 1
    If this is not a duplicate, please edit your question to include a [mcve] that shows your revised approach, for [example](http://stackoverflow.com/a/20603012/230513). – trashgod Sep 22 '16 at 09:23
  • @trashgod. ya something similar but i don't want to make use of setIndeterminate() method. rather i want to update progress bar by setValue() method in range of (0-100). – Amit.D Sep 22 '16 at 10:59
  • @trashgod will it be a good approach if I introduce special ID with every single window in my application(jar) which will be read using inputStream, and based on ID assigned progress bar will be updated? – Amit.D Sep 22 '16 at 11:06
  • This [example](http://stackoverflow.com/a/25526869/230513) shows "changes to display intermediate progress." – trashgod Sep 22 '16 at 17:44

0 Answers0