Search code examples
javaswingjframejprogressbar

Jprogress bar keeps track of download


Note: I have searched for hours going through hundreds of threads on multiple different sites but none of them are what i want to do. Couldn't even find some i could put together like a puzzle. Making a new class for it is something i prefer. If there is a better way to do it in the main class that would be nice :) Hope one of you can help me out.

My old download system opens a new window to download & it's just annoying & looks like crap.

What I want to do is add the Jprogressbar to my download system while it showing on the current jframe. Does anyone have source code or a link to a guide for this specific request?

I'm trying to add a better download manager w/ a jProgressBar in the middle of my screen. Once i figure out how to do that i can probably finish the rest of my idea on my own. Thanks to whoever can help me out :/

Example of my loading screen.


Solution

  • Take a look at How to use Progress Bars and just in case, Concurrency in Swing

    And few examples of a SwingWorker and progress bar...

    You could also try using a ProgressMonitor...for example...How create progress bar while file transfering