Questions tagged [jprogressbar]

JProgressBar is a Java Swing component that visually displays the progress of some task.

JProgressBar is a Java Swing component that visually displays the progress of some task. As the task progresses towards completion, the progress bar displays the task's percentage of completion. This percentage is typically represented visually by a rectangle which starts out empty and gradually becomes filled in as the task progresses. In addition, the progress bar can display a textual representation of this percentage.

For details and examples see How to Use Progress Bars tutorial.

492 questions
2
votes
2 answers

Create Modal JDialog while things are processing

how do you create a Modal JDialog saying "loading" while a task is processing that shows after more than 3 seconds has passed?
KJW
  • 15,035
  • 47
  • 137
  • 243
2
votes
1 answer

Java file a progress bar

I'm new to Java. I want to write a program that makes arcive of file and i want to use progress bar to show progress of zipping There is my code, but it duosen't work shows only 100% when work is done. getContentPane().add(progressBar); …
Edgar Buchvalov
  • 257
  • 2
  • 12
  • 22
2
votes
1 answer

Overlaying several JProgressBars?

I'd like to have a JProgressBar that is actually several JProgressBars layered together. Does such an implementation exist? I'd like to know before I crack out Flithy Rich Clients and try to put one together. Here is my problem: I have a bunch of…
Greg Mattes
  • 33,090
  • 15
  • 73
  • 105
2
votes
2 answers

JProgressBar update and thread scheduling

Hello stack exchangers, I have a problem with progress bars in java Swing. I think my confusions arise from my poor understanding of threads and the Swing event queue (I don't know much about java Threads, and exactly what is happening on the…
2
votes
4 answers

Changing Swing progress bar look and feel

I keep trying to chang the UIManager to make these stupid looking green squares go away. how do i change the look and feel of this to the user? Is it system dependent? Someone else who was compiling my code had a constant gradient. Ideally, it…
NickG
  • 871
  • 3
  • 11
  • 18
2
votes
1 answer

JProgressBar updating values behavior (Threaded)

I cannot seem to understand why when working with certain values the JProgressBar will sort of freeze and stop making calculations. For example the code bellow will only show zero all of the time; ... int value = (100/maxGenerations)*i; …
Carlos
  • 5,405
  • 21
  • 68
  • 114
2
votes
2 answers

How to create a task for using progress monitors in java?

I've created a stand alone java application in which i need to copy files from one place to other. But the copying takes times and i want to show the progress of the copying with the help of progress monitor in java. Progress Monitor requires a task…
Antrromet
  • 15,294
  • 10
  • 60
  • 75
2
votes
2 answers

How to asynchronous trigger JProgressBar?

I have a JButton(swing) in the JPanel, where if it is pressed I am performing a task on the for loop over the list in its EDT thread. While doing so I need to update the JProgressBar. Problem is, when I am pressing the JButton the task is performed…
Dinesh Ravi
  • 1,209
  • 1
  • 17
  • 35
2
votes
1 answer

Call a function after a Thread is completed

i'm writing a Sftp-client program using Jsch. I am using JProgressBars to display the Progress of Uploads and Downloads. My GUI contains Buttons according to the files in my Working Directory. When i delete a file i updated my gui to give the user a…
2
votes
2 answers

Changing JProgressBar

After noticing this link: http://www.newscientist.com/blogs/nstv/2010/12/best-videos-of-2010-progress-bar-illusion.html I wanted to make my jprogressbar look like that. How would I go about doing that? Is there a library that already does that for…
LazyCubicleMonkey
  • 1,213
  • 10
  • 17
2
votes
0 answers

How do I change the ImageIcon for a JProgressBar?

Hi is this even possible? I want to get rid of the basic blue line that shows the progress bars current progress, and replace that with a .gif file so it is more animated, rather that a static interface. I have tried to do this, I am aware it is…
Maiwand
  • 73
  • 8
2
votes
2 answers

Why is my download progress bar firing the same event multiple times?

I'm practicing Swing and I coded a download progress bar to download an image when the user presses the "Start download" button. The download works. The problem is that in my Terminal, I can see that the same event (propertyChange) is being fired…
brienna
  • 1,415
  • 1
  • 18
  • 45
2
votes
2 answers

How to measure progress of task for JProgressBar in java

I have developed a UI in which i am taking the shared folder location of a zipped file copying the files contained in that to my system. Performing some operations on that and again storing that to a machine location, all this things are done using…
Srishti
  • 355
  • 1
  • 17
2
votes
2 answers

JProgressBar not updating value when using setValue(newValue)

I am using JProgressBar as a health bar, so I want to manually set the bars maximum and value as the game progresses. The game is a Pokemon game and it allows for new Pokemon to be summoned. These new Pokemon can have different max health values and…
Cole
  • 51
  • 9
2
votes
0 answers

JProgressBar Rounded Corners

I am new to java and i am trying to create JProgressBar with Rounded Corners. Anybody can help me out? I want to have a customized ProgressBar.I am looking for a bar with rounded edges and a rounded fill. Something like this: my current…