How to activate progressbar in Java Desktop Application Project
Daniel_R <[email protected]> Wed, 12 Dec 2007 21:02:46 -0800 (PST)
| Newsgroups | gmane.comp.java.netbeans.user-interface |
|---|---|
| Message-ID | <[email protected]> |
Hi,
I have started a new project by using the "Java Desktop Application" , it
comes with a progressBar.
What I'm trying to do is to activate it when clicking on some jMenuItem and
keep it working till the end of the method that im calling by clicking the
jMenuItem
the code of the jMenuItem looks like this:
private void
jMenuItemLoadExelConvTableActionPerformed(java.awt.event.ActionEvent evt) {
busyIconTimer.start();
Mtl_IIL04_TransDummysApp.getApplication().LoadConvTable();
busyIconTimer.stop();
}
the LoadConvTable method reads data from file (using FileReader and
BufferedReader) and write the data into hash table...
The entire process of reading from file and writing into hash table takes
more than a minute... and at this time the progressBar is stuck... and looks
like it freeze.
How can i make the progreaaBar work while the method of reading/writing is
being proceeded???
Thanks ahead!
Daniel.
--
View this message in context: http://www.nabble.com/How-to-activate-progressbar-in-Java-Desktop-Application-Project-tp14310046p14310046.html
Sent from the Netbeans - UI mailing list archive at Nabble.com.