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

How to create JProgressBar for executeUpdate()

My little application uploads table to a database . Connection .... ... ... PreparedStatement ps ... ps.executeUpdate() ; // this takes a while so I want to create a progress bar How can I track progress of ps.executeUpdate() ? Can…
CHEBURASHKA
  • 1,623
  • 11
  • 53
  • 85
0
votes
1 answer

Updating the progress bar

I have a big program which needs to be called by a GUI. The GUI has a progress bar which needs to be updated(like 5% .... 10% )after the user presses the start button. The problem is that the background task performed does not have a fixed…
Sashank
  • 101
  • 1
  • 4
0
votes
1 answer

how to open a JProgress bar in a new frame after a button click in a previous frame?

This is the function I am implementing in the frame that opens up after clicking the button on a previous frame... The frame for the progress bar opens up easily, but the progress is not shown... please, help me solve this. public void iterate() { …
0
votes
1 answer

How to progressively update a JProgressBar?

I want to get the maximum length for a wave sound, play the track and display its play progress using a JProgressBar. This is what I have done so far but the progress bar is not updating. Timer t = new Timer(1000,this); private void…
0
votes
2 answers

JProgressBar not working properly

So my JProgressBar I have set up doesn't work the way I want it. So whenever I run the program it just goes from 0 to 100 instantly. I tried using a ProgressMonitor, a Task, and tried a SwingWorker but nothing I tried works. Here is my program: int…
ItsRainingHP
  • 139
  • 1
  • 4
  • 18
0
votes
1 answer

JSlider doesnt change the value and keeps constant

I have just made a java program with eclipse to change a Jprogress bar with a jslider but the sliders value doesn't change It keeps constant, here is the code: First class: package pro; import java.awt.Color; import java.awt.FlowLayout; import…
0
votes
1 answer

run jprogress bar on jframe load

I am creating swing application. I am using netbeans, I have added jprogress bar on container but I have no idea how to start. I need jprogressbar to show loading. I have created a jframe which contains jprogressbar. on jframe load I want to start…
Ashish Kudale
  • 1,230
  • 1
  • 27
  • 51
0
votes
1 answer

Change Nimbus ProgressBar for one Component

I try to change the default color of the nimbus JProgressBar. I can change the color global by change the "nimbusOrange". I like that result. But I need one ProgressBar in original nimbusOrange by nimbus and another ProgressBar included in the same…
Highchiller
  • 194
  • 2
  • 11
0
votes
1 answer

how to center position progressbar in java

i want my progressbar at the center of the sreen. i already tried... setLocationRelativeTo(null); but when i run the program it didnt work. somehow it is not in the middle of the screen. Please help me. See image. HERE ARE MY CODES public class…
Rohan21
  • 353
  • 5
  • 9
  • 24
0
votes
1 answer

JProgress bar for program

Im sorry if this seems like a dumb question, but is it possible for anyone to tell me if it is possible to add a JProgress bar at the part where my program says "Generating a 56-bit DES key..." and if yes how to go about doing it? And also, is it…
Noob_Programmer
  • 111
  • 5
  • 14
0
votes
1 answer

Using JProgressBar in Java

I am making a app that takes data from an API, but it takes some time(like some 1 or 2 seconds), I want to use JProgressBar to show how much of the data is downloaded, here is my code: private void jButton1ActionPerformed(java.awt.event.ActionEvent…
Ved
  • 389
  • 3
  • 7
  • 16
0
votes
1 answer

Firing PropertyChangeListener for JProgressBar without changing value

I'm hoping this is a simple question that doesn't require a SSCCE, since it would be very difficult for me to put one together that's short but includes all necessary parts. I have a GUI (JFrame) that contains a JProgressBar. ProgressBar code inside…
DerStrom8
  • 1,311
  • 2
  • 23
  • 45
0
votes
2 answers

JProgressBar passed as parameter to method in other class & won't update?

Basically, I have 2 classes: 1 for the GUI where the JProgressBar is added to the JPanel, and the other is the class that has the process in which the JProgressBar should update. My problem is the progress bar does not update periodically and it…
Dawin Widjaja
  • 61
  • 4
  • 12
0
votes
1 answer

Custom JTree cell renderers with custom open/close icons

I am wanting to create a custom JTree where it's nodes are JProgressBar's I have this working just like I want it However you'll notice that it's missing it's open/closed icon, which I also want to be a custom +/- icon instead of the standard…
PDStat
  • 5,513
  • 10
  • 51
  • 86
0
votes
2 answers

How to display Progress bar for a procedure call

I have data stored in Jtable, and then I am taking this data row by row and passing this data to a callable procedure in database(1 call for each row), and Procedure returns the message once completed, this process takes almost 1-2 min for each…
user3065757
  • 475
  • 1
  • 5
  • 14