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

Updating a set number of progress bars in one JFrame(preferably)

Looked around and there were a few similar questions, but none seemed to show how to run more than one progress bar in a single JFrame while updating it from 3 other threads. Preferably I plan to have a progressbar class of its own, a lot of the…
Arian.No
  • 3
  • 1
  • 5
0
votes
0 answers

Display progress bar until downloading completes in background

I'm downloading a file from Google drive on the click of a button in my program. File Download works perfectly. But it kind of hangs the program, while it is downloading file. after downloading, program is normal again. So, in the duration, it…
rupinderjeet
  • 2,984
  • 30
  • 54
0
votes
1 answer

Change the jprogressbar in an other class

I´ve got a project and I want to change the value of the progressbar with a call from another class. How could I implement this? static class ButtonActionListener implements ActionListener { @Override public void actionPerformed( ActionEvent…
lofoxx
  • 1
  • 1
0
votes
1 answer

Java Slider and ProgressBar

I have two minor problems with a ProgressBar that I have connected to a Slider in a Java Frame I am working on. I am using NetBeans. I have added this code : private void jSlider1StateChanged(javax.swing.event.ChangeEvent evt) { …
YAS
  • 303
  • 4
  • 15
0
votes
1 answer

How to use jProgress bar for ProcessBuilder process?

I am developing an java application to make a usb drives bootable,by executing CMD command through ProcessBuilder. This takes few seconds, in that i want to show an jprogressbar to increase GUI, i have tried so for, i dont get, Please help me. This…
Ravi R
  • 23
  • 2
  • 7
0
votes
1 answer

Java Jprogressbar in Jtable not working properly

My Jprogressbar is working strange, i have placed the jprogress in Jtable column, now the problem which i am facing is, if we dont touch progressbar, it work perfectly, but if we click on any row, all 3 progressbar will change there status to the…
0
votes
1 answer

How to show record from database into TextArea in java line by line

i want to show record from database line by line into TextArea. i tried this: String sql = "SELECT COUNT(*) FROM tweet"; ResultSet rs=stmt.executeQuery(sql); int row = 0; while(rs.next()){ row =…
0
votes
1 answer

Adding Container Listener for ProgressBar Java

Please help. This code isn't working. The progress bar is created and 0% is showing in it that's all. I don't know much about java.i'm looking for some help. Original code: jProgressBar1.setName(""); jProgressBar1.setValue(0); …
Jithin Sebastian
  • 511
  • 1
  • 6
  • 19
0
votes
2 answers

GUI not updating with current information even though the correct Events are firing

I am having a slight problem with a GUI where the ProgressCellRenderer is not updating until I either click on it or highlight it or even resize the window. I have slimmed down the code to just use generic data and using sleeps to emulate a long…
user3045798
  • 183
  • 1
  • 3
  • 11
0
votes
1 answer

Opening JDialog with SwingWorker?

I have a project J2SE that use JPA. In some JDialogs I do returns getResultList() and populate JTable, JComboBox, JList etc. at constructor of class. So when I will create any instance for these dialogs sometimes are slow. I think use SwingWorker…
FernandoPaiva
  • 4,410
  • 13
  • 59
  • 118
0
votes
1 answer

how to change the color of "string painted" of JProgressbar?

I have a JProgressBar in my java code and I want to change the color of its "string painted" (string which shows percentage on JProgressBar), so Is there any way in java to change the color of the "string painted" of JProgressBar???
0
votes
2 answers

JProgressBar.setMaximum(int) sometimes doesn't seems to work

I have a JProgressBar that I need to set a new minimum, maximum and progress value each time a task of a queue is done, using the code…
Bruno Gasparotto
  • 671
  • 12
  • 31
0
votes
1 answer

Why does the second JFrame does not show components?

I have the first JFrame and it works fine. When I push a button it is supposed to show a JProgressBar frame , but i get empty JFrame. I open it with p = new Progress("1/3"); p.setMax(2); …
Ingvars
  • 73
  • 6
0
votes
1 answer

Using JProgressBar while converting image to byte array

The following is a simple code for converting an image to byte array (Which is already shown in this forum): File imgPath= new File(textFiled_Path.getText()); BufferedImage originalImage = ImageIO.read(imgPath); ByteArrayOutputStream baos = new…
0
votes
2 answers

Progress Bar Does Not Show Up When Calling a Method

I have some code to specifically download one thing and then more code to download an array of items specified, however for some reason the progress bar does not show up unless I call the first method first and then the second one. However, the gui…