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

Swing Splash screen with progress bar

This is my splash screen code, public class SplashScreen extends JWindow { private static final long serialVersionUID = 1L; private BorderLayout borderLayout = new BorderLayout(); private JLabel imageLabel = new JLabel(); private JProgressBar…
Praveen
  • 522
  • 1
  • 8
  • 17
6
votes
2 answers

updating a JProgressBar while processing

I know the subject has already been seen on many Questions and has been answered, but still, I can't get trough it. I just want to update a progressBar while extracting some stuff of a large xml file. I thought it was enough to have the…
user978548
  • 711
  • 2
  • 7
  • 12
6
votes
3 answers

Change colors for JProgressBar with Nimbus?

does anyone know how to change the colors for JProgressBar when you use Nimbus LookAndFeel?
Hassenboy
  • 165
  • 1
  • 7
6
votes
5 answers

CellRenderer Item repaint

I created my own CellRenderer which include some several strings and a JProgressBar in a JList Item ... But the JProgressBar and so the whole JList Item will painted one time and I'm looking for a way to repaint the Items ... I tried to start a…
6
votes
1 answer

Java Swing progress bar for download process

I am using Java function to download file from internet. public void getLatestRelease() { try { // Function called long startTime = System.currentTimeMillis(); // Open connection …
Edward Ruchevits
  • 6,411
  • 12
  • 51
  • 86
6
votes
1 answer

Basic Indeterminate JProgress Bar Usage

I simply want to have an indeterminate JProgressBar animate in the bottom left corner of my frame when a long download is being done. I've looked through many tutorials, none of which are clear to me. I simply want to have it animate while the file…
Bill
  • 2,319
  • 9
  • 29
  • 36
6
votes
5 answers

My JProgressBar is not Updating Until it is 100%

Ok, I have the following code. public class MyProgressBar extends JPanel implements MyData, Serializable { /** * */ public static final int MAX = 10000; public static final int WIDTH = 400; …
Patrick Aquilone
  • 584
  • 2
  • 11
  • 28
5
votes
4 answers

JButton stays in pressed state

In my Java GUI app I have a JButton and when clicked it calls a function to connect to a database, then calls a function to clear a table in the DB, then calls a function that reads text from one file and loads variables, which calls a function that…
Beef
  • 1,413
  • 6
  • 21
  • 36
5
votes
1 answer

Display indeterminate JProgressBar while batch file runs

I've been browsing SO and google for a while now for an answer to this question, but I can't seem to find one that really works. I'll start from the beginning: I created a Java class with a method that runs a batch file in the background (the…
DerStrom8
  • 1,311
  • 2
  • 23
  • 45
5
votes
2 answers

JProgressBar Changing Bar Color dynamically

I am using JProgressBar component along with the Nimbus UI Defaults. The problem is that When I want to manually change each progressbar's Bar color, I use BasicProgressBarUI by setting JProgressBar.setUI() function. This makes more trouble because…
mbasol
  • 105
  • 1
  • 2
  • 9
4
votes
3 answers

JTable wait indicator

I have java applet with JTable. Due to lots of data and poor network bandwidth it takes lots of time to perform any operation like load the table or change it. I'm thinking about adding sort of activity indicator to let user know that his request is…
Misha
  • 5,260
  • 6
  • 35
  • 63
4
votes
1 answer

JProgressBar not taking up space when not visible

I want to be able to hide a JProgressBar and have the panel it resides in not change size. Currently, when I set the progress bar to visible (via pb.setVisible(true)), I get a layout like the following: Then when I set it to not visible, I get the…
kmort
  • 2,848
  • 2
  • 32
  • 54
4
votes
2 answers

JProgressBar Doesn't Start Until Try-catch finishes

I am writing a program which uses Random.ORG api. When I click calculate button, JProgressBar starts right after the opeartion is being done and stay freezed until this moment. I tried extra try-catch clauses, if statements and bool-gates. None of…
Lunatic Fnatic
  • 661
  • 2
  • 6
  • 17
4
votes
2 answers

SwingWorker does not update JProgressBar without Thread.sleep() in custom dialog panel

I have a SwingWorker class which loads a text file and slices it to chunks for further processing. This is the SwingWorker class: public class ConverterWorker extends SwingWorker { private final File f; private final JLabel…
Bence Kaulics
  • 7,066
  • 7
  • 33
  • 63
4
votes
3 answers

How can I make an endless progressbar in Swing?

Like this question, I'd like to do the same with Swing in Java. I looked for the JProgressBar on NetBeans, but I couldn't find an option like that. There is another component that would perform this task or there is an option in the…
Zignd
  • 6,896
  • 12
  • 40
  • 62
1
2
3
32 33