Article View: borland.public.jbuilder.java.language
Article #17763Re: Closing JOptionPane from code??
From: Michael A. Long
Date: Tue, 29 Sep 1998 00:00
Date: Tue, 29 Sep 1998 00:00
29 lines
1720 bytes
1720 bytes
I second that, only would recommend the ProgressMonitor, for a long operation, instead. Here is the URL for the Java Tutorial page on this and JProgressBar. http://java.sun.com/docs/books/tutorial/ui/swing/progressbar.html Rod Magnuson wrote in message <36106AE1.5F06838C@Symantec.com>... >Dave, > >I would not suggest using JOptionPane for this. Use a JDialog with a >JProgressbar in it instead; this way you can close it when you want. > >Rod > >Dave Lamy wrote: >> >> Everyone-- >> >> Could someone please help me? I'm trying to use a JOptionPane to display >> the progress of a fairly long import process (much like the file copy/move >> dialog in Windows Explorer).. >> >> As you probably know, JOptionPane will pause its thread until a response is >> given it. I want to emulate a click on another thread so it will disappear. >> I can capture a 'Cancel' button click fine, but how do I emulate a click in >> code when the process is finished so the darn pane will go away? >> >> Thanks a lot in advance-- >> Dave Lamy >> Synergy, Inc. >> dlamy@synergyinc.com
Technical Details
Message-ID:
<6urqk5$o8t10@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<6uo5gl$jcm4@forums.borland.com> <36106AE1.5F06838C@Symantec.com>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,676dbacbe237a240 X-Google-Attributes: gid111d45,public X-Google-Thread: f74b3,676dbacbe237a240 X-Google-Attributes: gidf74b3,public From: "Michael A. Long" <mlong@cmc.net> Subject: Re: Closing JOptionPane from code?? Date: 1998/09/29 Message-ID: <6urqk5$o8t10@forums.borland.com> X-Deja-AN: 396157968 References: <6uo5gl$jcm4@forums.borland.com> <36106AE1.5F06838C@Symantec.com> X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Organization: CSU Chico Newsgroups: borland.public.jbuilder.java.language,borland.public.jbuilder.java.swing