Home | Contact Us | FAQ | Search & Site Map | Link to Us
Sign In | Join | Other 45 Sites in Network
HomeAnnouncementsWhite Papers
Discussion GroupsFirst AidDatabasesJavaBeansGUIJava 3DVirtual MachineCORBASecurityToolsGeneral
Java DirectoryOpen Source ProjectsSample Book ChaptersUser GroupsWeb Resources
Related Topics
Databases.NETMore Topics ...

Java Forum / GUI / May 2008

Tip: Looking for answers? Try searching our database.

Swingworker-Question.

Thread view: 
Christian-Josef Schrattenthaler - 04 May 2008 21:40 GMT
Hi!

I have a class, that displays a JDialog. After a click on the
ok-button, a Report over JasperReports should be created and shown on
the screen.

Now I want to make an information window for the user, because the
generation of a report 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 JasperReports report, and
while creating the report the user should get an information dialog
with a JProgressBar and a cancel-button and the ok-button must be
disabled/enabled?

Greetings,
Christian.
Karsten Lentzsch - 09 May 2008 20:07 GMT
Christian,

The MS Vista User Experience Guide provides good information
how to handle such situations. It is the best guide for multi-
platform application I'm aware of.

For the technical solution, see the Task that has been introduced
by the JSR 296 "Swing Application Framework" draft.

-Karsten Lentzsch


Free Magazines

Get these publications absolutely FREE for up to 12 months. There are no hidden fees and no obligation. Simply choose a title, complete the application form and submit it. Read more ...

Oracle MagazineNetwork ComputingComputer WorldBio-IT WorldeWeekInformation WeekInfosecurity
 
Sign In
Join
My Latest Posts
My Monitored Threads
My Blog
My Photo Gallery
My Profile
My Homepage

Start New Thread
Enable EMail Alerts
Rate this Thread



©2008 Advenet LLC   Privacy Policy - Terms of Use
This website includes both content owned or controlled by Advenet as well as content owned or controlled by third parties.