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
2 answers

Updating a jprogress-bar

I'm running an AudioInputStream in a jframe. I have a progress bar on the jframe. I named the jproggressbar "bar". I am trying to get the progress bar to track how far the AudioInputStream is through a song. I'v tried a loop, but every way i try it,…
0
votes
1 answer

Get value on clicking jprogressbar

I am trying to make a player in java. Have made a seekbar using jprogressbar as shown in this link in Andrew Thompson's answer, I have been able to add a mouselistener and detect click on jprogressbar, but how do I get the selected value of…
user2538522
0
votes
1 answer

JProgress Bar Indeterminate mode not updating

I have a JNI function that can take a while to complete, and I want a JProgress bar in indeterminate mode running while it is finishing the function. I have read the tutorials provided by Oracle, but the nature of their tutorials doesn't seem to…
Sean Sen Wang
  • 193
  • 1
  • 1
  • 12
0
votes
1 answer

JProgressBar Implementation

I have developed a frame to show in real time the implementation progress of my graph db. For the purpose, I have developed the following frame and its components. The problem is that it is shown after the db is completed. How can I implement a…
QGA
  • 3,114
  • 7
  • 39
  • 62
0
votes
2 answers

Trying to use a thread with JProgressBar

So I'm trying to learn how to use threads so I decided to make a program that adds one then waits for 1/2 a sec. while the thread (that I think I made correctly) refreshes the value of the progress bar. So I'm not sure if I've made the program wrong…
Fouroh3
  • 542
  • 2
  • 10
  • 27
0
votes
1 answer

Progressbar TableCellRenderer not working

I'm trying to set a JProgressbar cell renderer on a JTable column. The problem is, that there won't show up any ProgressBar on my table cell's, it just shows the progress value. That's my TableModel: public class DownloadTableModel extends…
Marius
  • 309
  • 1
  • 5
  • 16
0
votes
1 answer

How to display the progress of read/write serilization in a JProgressBar?

How to check the Progress of Java read/write serilization and display it in a JProgressBar? The tasks that need to be done are these: Check how many bytes have been read/written, and get a percentage done by dividing this by the total bytes that…
Evared
  • 93
  • 1
  • 1
  • 7
0
votes
0 answers

JProgressBar SQL Query

Since one week now, I am looking for how to make JProgressBar to a result set. Could you give me, please, an example a sample code of a progress bar applied on a result set? This a sample code with a button and the action done by clicking on…
Lamine
  • 13
  • 4
0
votes
2 answers

Need help in adding a JProgressBar to a swing application

I am using the following code to upload a file to server using a PUT request. This works properly. But I want to add a JProgressBar to this this code, how do you suggest I do that? I am not sure of which classes to use to achieve the progressbar I…
user1386101
  • 1,945
  • 1
  • 14
  • 21
0
votes
1 answer

Update JProgressBar from ExecutorService

I am pinging gateways using Java ICMP ping function. To perform fast pinging I am using ExectorService which creates threads for pinging. After address is pinged (or not) I want to update Jprogressbar after pinging. I have this code which is working…
user2496520
  • 881
  • 4
  • 13
  • 36
0
votes
1 answer

JProgressBar not working as expected

I am trying to use this JProgressBar with a button. I set the visibility of the ProgressBar to true on click of the button and in the same code I call a webservice. Upon receipt of a response from the web service, I set the visibility of the…
dharam
  • 7,882
  • 15
  • 65
  • 93
0
votes
2 answers

how to include a progress bar in a program of file transfer using sockets in java

i am working on a project in java that transfers files from a client to a server. now i need to show the progress bar for each file transfer i.e the progress bar should automatically pop up as each transfer starts. i have made the program to create…
trisha mehta
  • 11
  • 1
  • 3
0
votes
1 answer

JProgressBar displaying weird orang wave

I am using JProgressBar to display a progress bar on my frame. The progress bar is set to indeterminate mode as i dont know when the task will end. Instead of displaying the normal progress bar a wierd orange wave is displayed. The wave keeps…
Rishabh
  • 199
  • 3
  • 14
0
votes
3 answers

progress bar when save in java

hi I have these lines of codes in java netbeans which save the result of p2 in Result.txt System.setOut(new PrintStream(new FileOutputStream("Result.txt"))); String line1; Process p2= Runtime.getRuntime().exec(command); BufferedReader in = new…
vidzz
  • 197
  • 2
  • 4
  • 15
0
votes
1 answer

When i click on the progress bar close button it should ask the confirmation and stop the progress bar background task

I have added a progress bar in my java swing application. When i click on the progress bar close button it should ask for confirmation and stop the progress bar background task when the user select yes than terminate the progress bar and background…
Rahul Singh
  • 19
  • 1
  • 6