Granny's Programming Pearls
"inside of every large program is a small program struggling to get out"
The moose likes Swing / AWT / SWT and the fly likes how to add LOADING... effect Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "how to add LOADING... effect " Watch "how to add LOADING... effect " New topic

how to add LOADING... effect

Rishabh Rathi

Joined: Mar 07, 2011
Posts: 13
Hello everybody.
I am working on a project of compression.In the user interface i want to add the effect of ADDING.... and EXTRACTING..... in the same way it is present in Winzip. Means i want my user interface to be just like winzip in which while ADDING or EXTRACTING files ,file names are shown and LOADING effect( green rectangle move constantly saving its previous image)
Maneesh Godbole
Saloon Keeper

Joined: Jul 26, 2007
Posts: 10167

Take a look at JProgressBar

[How to ask questions] [Donate a pint, save a life!] [Onff-turn it on!]
Giovanni Lima

Joined: Mar 08, 2011
Posts: 13
The effect must be realistic, in the other words, the progress must be calculated based in the real extracting process.. so make sure to do that, you can create listeners that would be called as the process occurs!
André Sébastien

Joined: May 27, 2008
Posts: 7
You can also use an API like that help you to show and follow tasks executions.
It is sorta covered in the JavaRanch Style Guide.
subject: how to add LOADING... effect
Similar Threads
Custom file type extention and icon
jar-file won't extract
Any Eclipse 3.2 Tutorial ?
updation of war file using ant
getResource( path) fails in Jar