Talk About Network

Google


Register and Login
Nick
Password
Register create new account Sign up is FREE and you can post replies, new topics, bookmark posts and more!
Recover lost password


Programming > Java GUI > Swingworker-Que...
Latest [ Topics | Posts ] Archive Post A New Topic Post a Reply
<< Topic < Post Post 1 of 2 Topic 9687 of 9780
Post > Topic >>

Swingworker-Question.

by Christian-Josef Schrattenthaler <christian-josef@[EMAIL PROTECTED] May 4, 2008 at 10:40 PM

Hi!

I have a class, that displays a JDialog. After a click on the
ok-button, a Re****t over JasperRe****ts should be created and shown on
the screen.

Now I want to make an information window for the user, because the
generation of a re****t could take some minutes (big database).

I tried the SwingWorker, and an intermediated JProgressBar. Also the
ok-button of the main dialog will be disabled and enabled.

This system works fine!

But now I have the problem, that I also have to make a cancel-button
in the information window. I tried some examples I found over Google,
but I dind't find a working solution for my application.

How would the professional Java programmers solve this, if a ok-button
from a JDialog starts a method to create a JasperRe****ts re****t, and
while creating the re****t the user should get an information dialog
with a JProgressBar and a cancel-button and the ok-button must be
disabled/enabled?

Greetings,
Christian.
 




 2 Posts in Topic:
Swingworker-Question.
Christian-Josef Schratten  2008-05-04 22:40:05 
Re: Swingworker-Question.
Karsten Lentzsch <kars  2008-05-09 21:07:02 

Post A Reply:
  Go here to Signup

AddThis Feed Button


About - Advertising - Contact - Frequently Asked Questions - Privacy Policy - Terms of Use - Signup

Contact
tan12V112 Sat Jul 5 15:29:00 CDT 2008.