Article View: borland.public.jbuilder.java.swing
Article #8960Dialog
From: Joachim Intreร
Date: Fri, 16 Jun 2000 00:00
Date: Fri, 16 Jun 2000 00:00
65 lines
2473 bytes
2473 bytes
--------------35574B0B9266552967477CD4
Content-Type: text/plain; charset=us-ascii
Content-Transfer-Encoding: 7bit
Hi,
a have create a method that is run for a long time. I will show a wait
dialog in this time.
The dialog starts, but it isn't show properly on the screen.
If the method ends after a long time, the dialog is shown properly.
What can I do?
public class MainFrame extends JFrame {
DlgWarten dlgWarten = new DlgWarten (this, "Bitte warten Sie!", false);
...
//die Berechnung starten
void CalculationStart() {
dlgWarten.show();
dlgWarten.repaint();
dlgWarten.validate();
this.getContentPane().repaint();
this.getContentPane().validate();
... // action
this.getContentPane().repaint();
this.getContentPane().validate();
Regards,
--------------35574B0B9266552967477CD4
Content-Type: text/html; charset=us-ascii
Content-Transfer-Encoding: 7bit
<!doctype html public "-//w3c//dtd html 4.0 transitional//en">
<html>
Hi,
<p>a have create a method that is run for a long time. I will show a wait
dialog in this time.
<br>The dialog starts, but it isn't show properly on the screen.
<br>If the method ends after a long time, the dialog is shown properly.
<p>What can I do?
<p>public class MainFrame extends JFrame {
<br> DlgWarten dlgWarten = new DlgWarten (this, "Bitte warten Sie!",
false);
<br> ...
<p><i>//die Berechnung starten</i>
<br> void CalculationStart() {
<br> dlgWarten.show();
<br> dlgWarten.repaint();
<br> dlgWarten.validate();
<br> this.getContentPane().repaint();
<br> this.getContentPane().validate();
<p> ... // action
<p> this.getContentPane().repaint();
<br> this.getContentPane().validate();
<br>
<p>Regards,</html>
--------------35574B0B9266552967477CD4--
Technical Details
Message-ID:
<3949C610.929710FB@atb-potsdam.de>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailShow Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,4a18f65523d8ed78,start X-Google-Attributes: gid111d45,public From: Joachim Intreร <jIntress@atb-potsdam.de> Subject: Dialog Date: 2000/06/16 Message-ID: <3949C610.929710FB@atb-potsdam.de> X-Deja-AN: 635210171 X-Accept-Language: de-DE,en Content-Type: multipart/alternative; boundary="------------35574B0B9266552967477CD4" Organization: ATB Mime-Version: 1.0 Newsgroups: borland.public.jbuilder.java.swing