pretty sure best practice is using swingworker to update the progress bar which i expected to find specifically because this was all mentione din the desription: How to use JProgressBar in Java.? Loading Data from database. Connecting to network. all of which should involve swingworker.
Sir your videos are very helpful. Thank you!!! But you make a very short video.sir please make more videos on gui using swing in more detailed. Make videos at least for 10 minutes
I have a program that has a JFrame that pops up with a progress bar to let the user know that the program is working but the JFrame is empty until the end of the process. I have not found a solution as of yet.
@@ricardocolladodev I found the problem and can help with this, I’m heading to work right now but I can give you a short answer that might get you heading in the right direction. The GUI always finishes its update at the end of running code. I found 2 ways that work for me. 1st choice research eventQueue.invokeLater for the code you want to run after the GUI finishes. 2nd place the updating running code you need in the GUI class that is called and have it do the updating. The second may just be a circumstantial solution so I’d go with the first one.
sir please make some video tutorials on inputMap class and actionMap class in java ,I'm currently doing project but i stuck in inputMap class that how to use and customize these classes ,waiting for your favorable reply and tutorials .
First it is JProgressBar(0,20); He is saying that the progress bar will be completed after 20 ticks, i.e. after every 250ms the Timer will call "this" object. So it will go to "actionPerformed" method of "this", check i, if not equal to 20, increment it. So, after 20 ticks i will be 20, and each tick took 250ms. So overall it will take 20*250ms = 5s. (I confirmed using phone's timer).
Telusko, you swapped videos 16 and 17 by mistake
pretty sure best practice is using swingworker to update the progress bar which i expected to find specifically because this was all mentione din the desription:
How to use JProgressBar in Java.?
Loading Data from database.
Connecting to network.
all of which should involve swingworker.
Sir your videos are very helpful.
Thank you!!! But you make a very short video.sir please make more videos on gui using swing in more detailed. Make videos at least for 10 minutes
in case of using variables inside anonymous class, we have to declare it inside anonymous class only,
like variable i=0.
If anyone wondering if he skipped a video then let me tell you its in the next video. He just misput the videos into next one😂
sir please give some ideas about progress bar in web application like profile strength creation using progress bar .
iam not able to find video of calling jframe from another jframe
can u please post it?
It's giving error in object of timer Timer t = new Timer (200, this);
what error ,are you getting?
share your code.
I have a program that has a JFrame that pops up with a progress bar to let the user know that the program is working but the JFrame is empty until the end of the process. I have not found a solution as of yet.
Hello, i am currently having same issue, how do you manage to solve this?
@@ricardocolladodev I found the problem and can help with this, I’m heading to work right now but I can give you a short answer that might get you heading in the right direction. The GUI always finishes its update at the end of running code. I found 2 ways that work for me. 1st choice research eventQueue.invokeLater for the code you want to run after the GUI finishes. 2nd place the updating running code you need in the GUI class that is called and have it do the updating. The second may just be a circumstantial solution so I’d go with the first one.
Sir ur screen speed and ur voice speed both exexute fast please slow
use 0.75x playbackspeed.
sir please make some video tutorials on inputMap class and actionMap class in java ,I'm currently doing project but i stuck in inputMap class that how to use and customize these classes ,waiting for your favorable reply and tutorials .
i am not able to understand how u r telling 5 tik when u r writing 20 in jProcessBar(0,20);
First it is JProgressBar(0,20); He is saying that the progress bar will be completed after 20 ticks, i.e. after every 250ms the Timer will call "this" object. So it will go to "actionPerformed" method of "this", check i, if not equal to 20, increment it. So, after 20 ticks i will be 20, and each tick took 250ms. So overall it will take 20*250ms = 5s. (I confirmed using phone's timer).
per 250 milliseconds 100%-80% ?
thank you for all informations
good one
Explanation not good
it's toooo messy, sir i think you should get familiar with the contents yourself before showing this to us