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
0
votes
1 answer

A constantly scrolling JProgressBar

I would like to ask: Is it possible to have a JProgressBar that moves incessantly unless stopped explicitly? I know that the most common way to use a JProgressBar is to listen for changes and to change the progress by using the setValue(). If…
An SO User
  • 24,612
  • 35
  • 133
  • 221
0
votes
2 answers

java - JProgressBar while method is running

The Find() method is a sample of my method that makes a search of a word into some files. I call it from a Button_Start mouseclicked event. Here is my code: public void Find (String word) { List_files_directories (directory.getAbsolutePath(),…
Frank
  • 2,083
  • 8
  • 34
  • 52
0
votes
1 answer

JProgress Bar not updating

Hello I want to update my JProgress Bar with the help of a Swing Worker class. I searched the other questions on this topic in this forum and took some code of a solution but in my case i does not work:( I have two classes: In the first class i…
Jan_K.
  • 1
  • 2
0
votes
1 answer

Visibly Moving JProgressBar

I have a JProgressBar and want to be able to see it dynamically updated. The progress bar should be able to visibly move from one position to another, not just change without the bar visibly changing (think regular loading bars). public static void…
Aaron
  • 992
  • 3
  • 15
  • 33
0
votes
2 answers

FileInputStream / FileOutputStream blocking?

I have the following code which successfully copies a file. However, there are two problems with it: The System.out.println() immediately after the progressBar.setValue() does not print intervals between 0 and 100 (just prints "0" till the end…
davidkomer
  • 3,020
  • 2
  • 23
  • 58
0
votes
1 answer

JProgressBar indeterminate thread

I have a problem while creating a JProgressBar which is set to indeterminate. The following code is my implementation of the JProgressBar and is called/constructed from another class: public class Progress implements Runnable { private JFrame…
marc3l
  • 2,525
  • 7
  • 34
  • 62
0
votes
1 answer

how to change setIndeterminate jProgressbar in other frame

i have a two frame, frameA and frameB, in frameA i add one button with name buttonA to show frameB and progressbar (setIndeterminate(false)), in frameB i add one button with name buttonB , i want to when i click buttonB, progressbar in…
0
votes
1 answer

Displaying the progress of a thread in percent number with a JProgressBar

I have a button that search some files, so I'm trying to display the progress of this task in a progress bar with percent numbers. I'm using another thread to execute this task, but it takes long time so I'd like to show it in a progress…
igarcia
  • 691
  • 1
  • 9
  • 26
0
votes
2 answers

Thread, Wait, Notify, Sleep in Java

I am developing/developed a desktop application, where the button has actionlistener and to do lot of background task, I didnt use the thread, wait, notify or sleep before. I am just confused which one to learn and which one to use otherwise when i…
vijay
  • 1,129
  • 7
  • 22
  • 34
0
votes
2 answers

Java BufferedInputStream Progress Bar

I'm having a slight issue getting a JProgressBar to show the status of an HTTP download. The progress bar is working, however it fills up too quickly and eventually overshoots the max value by quite an amount, as shown below: public void…
Antix
  • 369
  • 3
  • 19
0
votes
2 answers

How to see communicate between 2 runnable with progression

I have 2 classes .java The main : public class Controller extends javax.swing.JFrame { public static void updateProgressBar(int i) { jProgressBar1.setValue(i); jProgressBar1.repaint(); } public static void main(String…
Kalzem
  • 7,320
  • 6
  • 54
  • 79
0
votes
1 answer

How to make a jprogressbar to run in parallel with my algorithm

Possible Duplicate: Java GUI JProgressBar not painting Can a progress bar be used in a class outside main? I am using Netbeans drag and drop to do an application. I will get input from user and use the input to run my algorithm. The algorithm…
yt729
  • 11
  • 5
0
votes
2 answers

How to exit an app when ProgressBar reaches 100?

Ok people, I have this sample Java code. Many of you have probably seen it before. Since I'm very new to Java I wondered how do you actually invoke a program to close after the ProgressBar reaches 100% or in my case num >= 2000? Code: package…
mutantkeyboard
  • 1,614
  • 1
  • 16
  • 44
0
votes
1 answer

Update JProgressBar From Different Class

I have built a small java application, it is for updating product price, quantity and special offers etc of products on a mysql database, using a csv file as input that I receive from a closed computer system in my fathers electrical retail…
0
votes
1 answer

JDialog with a JProgressBar

Possible Duplicate: Java GUI JProgressBar not painting I have a GUI that has the GUI Locked while processing an Action Event, so I need a progress bar to show up. I can get the JDialog to show up but the progress bar won't show up. I used…
yams
  • 942
  • 6
  • 27
  • 60