?
Solved

Progress Monitor/Bar for recording the length of a method

Posted on 2003-03-17
2
Medium Priority
?
203 Views
Last Modified: 2012-05-04
I want to add a progress monitor/bar in order to show the progress of a method. The method connects to a database and queries it, then sends the results to a txt file. I want a progress bar showing how far it is in processing its job.

How would I add progress monitor to such a method? I'm really confused.
0
Comment
Question by:enchance
2 Comments
 
LVL 2

Expert Comment

by:glottis
ID: 8157445
create a class abc and extend JFrame and a JProgressBar to it.
create another class xyz and add a method init to it.

after showing the class abc create a new instance of xyz andd pass JProgressBar to it. then call this class init method.

in you init method you can connect to the database, after connecting increment the progress (see JProgressBar.setValue()) then query database and again increment as so on.
0
 

Accepted Solution

by:
java_gurl earned 200 total points
ID: 8157839
thanks glottis!
0

Featured Post

Get expert help—faster!

Need expert help—fast? Use the Help Bell for personalized assistance getting answers to your important questions.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

For beginner Java programmers or at least those new to the Eclipse IDE, the following tutorial will show some (four) ways in which you can import your Java projects to your Eclipse workbench. Introduction While learning Java can be done with…
This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
This tutorial will introduce the viewer to VisualVM for the Java platform application. This video explains an example program and covers the Overview, Monitor, and Heap Dump tabs.
How to fix incompatible JVM issue while installing Eclipse While installing Eclipse in windows, got one error like above and unable to proceed with the installation. This video describes how to successfully install Eclipse. How to solve incompa…
Suggested Courses
Course of the Month8 days, 13 hours left to enroll

621 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question