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
votes
1 answer

Java with SwingWorker - GUI freezes after button pressed (ProgressBar not working too)

The main idea of my program is to parse XML data from file and insert it into MySQL database using JDBC driver. File conatins 2000 elements and everything works perfectly - file is parsed and data loaded to database. The problem is that when I press…
anton86993
  • 638
  • 1
  • 9
  • 26
-1
votes
1 answer

JProgressBar foreground color not changing on JButton click

Problem: The problem I have run into is that when I click on the "Play" button or the "Feed" button, the pet will change its statistics, but the JProgressBar color will not change accordingly, but the progress bar percentage will. Here is the…
user5083456
-1
votes
1 answer

Create indeterminate JProgressBar Popup/modal dialog

How can I create a popup window/modal dialog with an indeterminate progressbar running ? I can´t even manage to create a indeterminate progressbar that isn´t running all the time in a simple window... Thats the best result I´ve got so…
-1
votes
2 answers

JProgressBar duplicating

My JProgressBar is worked perfectly up until i set my JFrame GlassPane visible. It then randomly decides to shoot across the screen and duplicate. Here is an animated GIF displaying the bug. This happens no matter what my code is - even with an…
TacoB
  • 71
  • 9
-1
votes
1 answer

How to add JProgress Bar at the bottom left of the Frame

I want to add JProgressBar while loading a file.I wrote code for that.It's working.But,Earlier I used BufferedReader and setText() method of JTextArea for load a file,In this case it took 6 seconds time to load 44MB textfile.Now I use…
user3912886
  • 53
  • 2
  • 9
-1
votes
1 answer

Add jProgressBar to Java mail application

I'm trying develop a Java application for sending email. I'm using Java mail. I want to add file attachment option for this application. I did it. But now I need to add a jProgressBar to this application for viewing attachment uploading progress. I…
-1
votes
2 answers

Progress bar using for loop as simulation

I am trying to simulate a progressbar process using a for loop. The whole loop represent 100% so as the loop increases, the progressbar should also increase until the loop is done it will be 100% However in netbean UI the progress bar doesnt show as…
BeyondProgrammer
  • 893
  • 2
  • 15
  • 32
-1
votes
1 answer

Creating custom JComponent with JLayer over JProgressBar

I'm attempting to create a customized JProgressBar that utilizes the JLayer class so that it can be colored differently depending on the situation, a la this solution. The thing is that I want to wrap it up as a JComponent of some sort since it…
Jesse
  • 253
  • 1
  • 3
  • 12
-1
votes
1 answer

Mysql Backup Progress Monitor in java

Am backing up MySQL database using java. I will like to know if there is a way to monitor the backup progress and then display in percent on JProgressBar? Thanks.
code4
  • 35
  • 1
  • 7
-1
votes
2 answers

JButton Action Listener progress bar, update without freezing?

I've got a progress bar, when I strike the button, on the button listener I've got a progress bar that updates as something downloads. However, the GUI freezes until the download is complete. How can I get this progress bar to update as the download…
John Smith
  • 39
  • 1
  • 8
-1
votes
1 answer

Progress bar not updating during a loop

My progress bar doesn't update until the loop has finished? Why is this? for (String theURL : IPArray) { URL url = new URL(theURL); InetAddress address = InetAddress.getByName(url.getHost()); String temp = address.toString(); String…
-1
votes
1 answer

link application with a progress bar

private void exportButtonActionPerformed(java.awt.event.ActionEvent evt) { if ("PDF(.pdf)".equals(jComboBox1.getSelectedItem())) { query = queryPane.getText(); …
Ritesh
  • 314
  • 7
  • 19
-1
votes
2 answers

Using a jProgressBar with SaxParser

My Problem is solved. Here is the code: SwingWorker class: package ths.turnier; import javax.swing.SwingUtilities; /** * This is the 3rd version of SwingWorker (also known as * SwingWorker 3), an abstract class that you subclass to * perform…
poldi
  • 31
  • 5
-1
votes
1 answer

How to use NetBeans's JProgressBar?

I am using Netbeans gui, the fast easy drag and drop, lets say a created a JButton, named it "Start", I added an event (ActionPerformed) for this JButton, so I get the following method private void JButtonActionPerformed(java.awt.event.ActionEvent…
Ali Bassam
  • 9,691
  • 23
  • 67
  • 117
-2
votes
2 answers

java swing progressBar

I have written code using swing libs, that when added an actionlistener, won't update a progressBar. Without a button and action listener, it works great. How to force a progressBar update as simply and cleanly as possible? Appended code is an easy…
jib fashr
  • 315
  • 2
  • 15
1 2 3
32
33