๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.swing
Article #8956

dialog

#8956
From: Joachim IntreรŸ
Date: Thu, 15 Jun 2000 00:00
34 lines
1206 bytes
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,

Joachim
Technical Details
Message-ID: <3948A0AE.11376E5B@atb-potsdam.de>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 111d45,c9bbf77e2343ca81,start
X-Google-Attributes: gid111d45,public
From: Joachim IntreรŸ <jIntress@atb-potsdam.de>
Subject: dialog
Date: 2000/06/15
Message-ID: <3948A0AE.11376E5B@atb-potsdam.de>
X-Deja-AN: 634814796
Content-Transfer-Encoding: 7bit
Organization: ATB
X-Accept-Language: de-DE,en
Content-Type: text/plain; charset=us-ascii
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.swing