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

JProgressBar vertical align text and Windows styling

I have a couple of questions which I can't find the answer to. I've created a JProgressBar and set a custom font: JProgressbar progressBar = new JProgressBar(); progressBar.setFont(new Font(null, Font.ITALIC, 9)); On every OS, this results in the…
Cristian
  • 6,765
  • 7
  • 43
  • 64
0
votes
1 answer

ProgressBar when program is running

I'm trying to add to my program progress bar ,when it executes.Actualy I want to add something like this: public class TestProgressBar extends javax.swing.JFrame { public TestProgressBar Bar; public TestProgressBar() { …
babkamen
  • 3
  • 1
  • 2
0
votes
3 answers

JProgressBar not triggering propertyChange on setProgress

I've read many different articles about JProgressBar...including the dodgy code found over at Java; here. Most indicate you need a SwingWorker to get things happening properly, which makes perfect sense, I understand that much. I am finding that…
Trent
  • 1,595
  • 15
  • 37
0
votes
1 answer

How to show processing info. in program?

I have created a GUI having one JButton and some other components. When I click the button, some back end processing is involved which takes nearly 10-12seconds. How should I represent it graphically?
svkvvenky
  • 1,122
  • 1
  • 15
  • 21
0
votes
1 answer

Working with progressbar

Possible Duplicate: Nice looking progress bar in java I use setBackground and setForeground to set the color of a JProgressBar but they didn't work, the color remain Orange. I can't change it.
user1608338
  • 1
  • 1
  • 1
  • 2
0
votes
4 answers

updating TWO JProgressBars

So, I got this working with ONE JProgressBar. How do I update two individual progress bars? I'm executing a download in the doInBackground() worker thread/swingworker method. I want to update two bars, the first is a total, the second is a section…
Kyte
  • 834
  • 2
  • 12
  • 27
0
votes
1 answer

Adding a indeterminate JProgressBar from an action listener

I want a indeterminate progress bar to pop up as soon as the user presses the "run" button and then close when the work to be done by the application is finished. I used NetBeans to develop the GUI. How should I go about it? The gui class extends…
Sid
  • 1,239
  • 2
  • 13
  • 36
0
votes
3 answers

Long running process, show progress in UI

I want to trigger a long running background process (coded as a service) from the ui. But I also want to show some progress of that task to the user. How can I achieve this? (I want to not infringe on decoupling). Is there a best practice to solve…
matcauthon
  • 2,261
  • 1
  • 24
  • 41
0
votes
1 answer

Activate JProgressBar only during a method

I'm having troubles using JProgressBar. I have a function that can take some time, and I want a progress bar on indeterminate mode while the function is being executed. I have a button that activates this function, and I've tried to…
Bertofer
  • 770
  • 6
  • 18
0
votes
1 answer

Update Java Gui Using SwingWorker

Below is a SwingWorker instance that did not update the Java GUI as I had expected it to. The SwingWorker is implemented inside an action listener for a button. The min and max which define the loop are both a "final int" which are local to the…
-1
votes
2 answers

In this case, how should I access to the JProgressBar from another class?

I am currently practicing OOP with Java. I have created a GUI project via WindowBuilder with Eclipse IDE and below is the result. private JFrame frame; /** * Launch the application. */ public static void main(String[] args) { …
CescoDesu
  • 21
  • 3
-1
votes
1 answer

How can I set up my JProgressbar to show the progress of my program loading

When my program starts, my JProgressBar runs just like I want it and shows the progress of my program loading, but I have a restart function for the database and I have to use the dispose() to reset all the components and thus reloading all the…
-1
votes
1 answer

JProgressBar from Oracle

I've downloaded a small Java project from oracle website to create a progress bar. I understand it, but I need to apply it in a different way, the application is creating a thread in the background so the progress bar can be updated accordingly…
JAVADEV
  • 51
  • 6
-1
votes
1 answer

Why is it that JProgressBar should not be changed once added to a JPanel?

Straight and Simple: Imagine we're on a class that extends JPanel JProgressBar bar = new JProgressBar(0,0,10); add(bar); bar.setValue(5); //Works - You can visually see the change bar = new JProgressBar(0,0,10); bar.setValue(10); //Works - You can…
-1
votes
1 answer

JProgressBar show status of another class void

I have a class that performs copying from one folder list of files which is loaded first as .txt , then is copying to temporary folder. I want to show progress of copying files to folder and vice-versa This is my copy class: public class CopyService…
tehnodrom
  • 75
  • 11