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

Continue once the thread returns true

I am having trouble getting my code to 'pause' until the thread is finished. My program is simply a JProgressBar inside a frame. I am using a loop located inside a thread, which loops every 10 milliseconds and adds +1 to the progress bar. The end…
Dragneel
  • 171
  • 2
  • 16
-2
votes
1 answer

Automatically start a progress bar without a button click in java

I have here a sample of progress bar: import java.awt.BorderLayout; import java.awt.Container; import javax.swing.BorderFactory; import javax.swing.JFrame; import javax.swing.JProgressBar; import…
user3771102
  • 558
  • 2
  • 8
  • 27
-2
votes
1 answer

JProgressBar working according to application load in swing

I want to develop small project for file copy application in java swing. I want to show progress bar for that, means how much percent data is been copy.. so can any body tell me idea how to develop it
Vicky3D
  • 173
  • 3
  • 13
-2
votes
1 answer

blocking thread when progressbar is running

Hello guys i want to make ProgressBar who will loading till the song starts ... i have this code but the ProgressBar is starting when the song starts and also its maked to finish it about 5 sec. so please someone help me make it right ... Thanks…
-2
votes
2 answers

Progress bar not working

Good Evening, i have a problem in running a progress bar, please check my code and tell me where is the problem: /** ** @author Islam */ public class Register extends javax.swing.JFrame implements Runnable { static final int MY_MINIMUM = 0; static…
Eslam Hamdy
  • 7,126
  • 27
  • 105
  • 165
-3
votes
2 answers

java - how to get object inside cell in jtable

Possible Duplicate: Adding multiple JProgressBar to TableColumn of JTable i have a jTable with a DefaultTableModel with this coloumn: String String JProgressBar and every row is created like this: progress.add(getProgress(x,…
Jayyrus
  • 12,961
  • 41
  • 132
  • 214
-3
votes
1 answer

Indeterminate JProgressBar Popup/modal dialog not moving

I don't understand why the progress bar does not move in the following code: JDialog dlgProgress = new JDialog(InterfaceYadis.frameInterface, "Veuillez patienter...", true); JLabel lblStatus = new JLabel("Test"); JProgressBar pbProgress = new…
-3
votes
1 answer

JProgressBar, Syntax Error on these tokens true

Hey I'm having a problem with 3 lines of coding, and I still don't know what the problem is. public class HealthBar{ int min = 0; int max = 100; JProgressBar PlayerHealth = new JProgressBar(min,max); JProgressBar EnemyHealth = new…
-3
votes
1 answer

How to change the default Java Icon in JProgressBar?

I searched all the way but unable to find the solution. I want to change the default java icon in the progress bar, as I used JProgressBar. Here is my small snippet public class SwingWorkerProgressMonitor implements PropertyChangeListener…
user2914906
  • 21
  • 1
  • 4
-4
votes
1 answer

Java Value must Be Between 0 and 100

I have this code: package com.cjburkey.downloads.wie_ein_chef; import java.awt.FlowLayout; import java.awt.event.ActionEvent; import java.awt.event.ActionListener; import java.beans.PropertyChangeEvent; import…
CJ Burkey
  • 385
  • 1
  • 14
-4
votes
1 answer

Create a separate frame for JProgressBar

I have a program where when the user clicks a certain button I want a small new frame to appear with a progress bar. I do not want the user to be able to do any other thing until the process is finished. I am having troubles updating the progress…
user3245747
  • 805
  • 2
  • 17
  • 30
-5
votes
1 answer

how to work with jprogress bar in Java Swing

i have a desktop GUI in swing , i want to show status of user storage used in the GUI using jProgressBar, Please suggest some attractive way to do.
user1608338
  • 1
  • 1
  • 1
  • 2
1 2 3
32
33