How to monitor delays(background process) in Java Swing Application using jprogressbar.
I want to monitor any delays or process in my Java Swing Application.
You could try having a look at ProgressMonitor
, see How to use Progress Bars for more details.
If this doesn't meet your needs or your problem is more complicated or you want more control, then you should consider using a SwingWorker
, which has progress support via it's PropertyChangeListener
support
This is the scenario the JFRAME load first and then 10 sec delays to load the components like menus, desktoppanes and the jpanels
If the deal is in loading the UI components, then you don't have many options, as this will need to be done within the context of the Event Dispatching Thread, which would block any other UI content you wanted to display
It's possible that something like the SplashScreen
would help as it can run in a different thread. See How to Create a Splash Screen for more details