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
1
vote
0 answers

JProgressBar with Swingworker

I have a client server program where the client is requesting a (jasper)report from server and displays it on screen. The report-fetching part is handled by Swingworker on client side as the report might take a while to arrive (server running query…
nullPointer
  • 4,419
  • 1
  • 15
  • 27
1
vote
1 answer

How to remove highlight form JProgressbar

I haven't been able to find a way to remove the highlight and keep my the black line border. Setting .setBorderPainted(false) fixes the highlight but also removes my border. Is there a way this can be fixed with look and feel or UIManager? Code: …
Maxwell
  • 133
  • 1
  • 7
1
vote
2 answers

Java swing opaque JProgressBar inside JProgressBar

I am trying to combine 2 JProgressBars together so that I can represent statistics about a single thing. My question is how could the two progress bars be combined or overlayed such that this would work? One solution I came up with is to put 2…
JFreeman
  • 974
  • 1
  • 10
  • 26
1
vote
2 answers

Java swing indeterminate JProgressBar starting from the left when reaching end instead of bouncing

I created a JProgressBar in a GUI application, and setted it to "indeterminate", but I don't like that it bounces instead of restarting every time it reaches the end. What can I do to fix this graphic setting?
CuriousCI
  • 138
  • 1
  • 11
1
vote
1 answer

How to run method with JProgressBar

I have a function called CreateAccount. I need it to run and also need to show a progress bar. When I click the button, the method will start. And I need to start showing loading progress bar. Once method is done progress bar also should stop at…
H Athukorala
  • 739
  • 11
  • 32
1
vote
1 answer

Notify PropertyChangeListener faster

So I'm creating a JProgressBar that displays the progress of a CSV manipulation, where every line is read and checked if there are no null values in obligatory (NOT NULL) columns. For that, I've created a SwingWorker Task that handles converting the…
1
vote
0 answers

JProgressbar not showing and code executing in wrong order?

I've been having some issues with making a GUI for a program. Back-end program works fine but sometimes it takes a while to complete. In the GUI I want to show the user that work is being done and thought an indeterminate JProgressBar (progress)…
1
vote
2 answers

JProgressBar not displaying correctly from ActionEvent

In the below code the JProgressBar displays correctly when the doSomething() is called from within main() but not when called as a result of an ActionEvent - the interface seems to freeze. What is the problem? import java.awt.BorderLayout; import…
user508575
1
vote
1 answer

JProgressBar in dialog frame not working properly

I have a java program that load a text file as input, read its content, modify some strings and then prints the result to a textarea. Due to several seconds required by this operation i would like to show a JProgressBar during this activity in order…
xXJohnRamboXx
  • 739
  • 3
  • 10
  • 24
1
vote
2 answers

jprogressbar visible and working on button click

public NewJDialog(java.awt.Frame parent, boolean modal) { super(parent, modal); initComponents(); jProgressBar1.setVisible(false); } private void jButton1ActionPerformed(java.awt.event.ActionEvent evt) { …
Jisson
  • 3,566
  • 8
  • 38
  • 71
1
vote
1 answer

Synchronized copying display with jProgressBar

I wanted to monitor the progress of my file getting copied from source to destination. I have used synchronized keyword but somehow it not working as i expect it to be, my logic might be wrong. I will be glad if you help me out. Here is my…
1
vote
0 answers

Always use same animation for Nimbus JProgressBar when running in indeterminate mode

I would like to force Nimbus to ALWAYS use the rolling blocks rather than oscillating circles in JProgressBar ... Images found in another question: Nimbus - Different JProgressBar Styles Is this doable?
Constantin
  • 1,506
  • 10
  • 16
1
vote
1 answer

JProgressBar background color does not appear

I have made a custom UI for my JProgressBar which is the following: public class BarUI extends BasicProgressBarUI { private Rectangle r = new Rectangle(); @Override protected void paintIndeterminate(Graphics g, JComponent c) { …
Lae
  • 832
  • 1
  • 13
  • 34
1
vote
1 answer

Java Progress Bar While Loading From SQL Database

My Goal: Progress Bar While Loading from Database I am currently working on a Scheduling Program that will be used by one of my managers for multiple purposes, but mainly to set up the weekly schedules for the employees. When accessing the SQL…
HyperCell
  • 60
  • 1
  • 8
1
vote
0 answers

JProgressBar update on some condition Java Applet

I have a situation where I need to update ProgressBar based on some logic being performed in a different method. I am using SwingWorker to create the ProgressBar. Here is the snippet of code developed so far : public class ProgressApplet extends…
Java Enthusiast
  • 654
  • 7
  • 19