๐Ÿš€ go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Dialog

#8960
From: Joachim IntreรŸ
Date: Fri, 16 Jun 2000 00:00
65 lines
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>&nbsp;DlgWarten dlgWarten = new DlgWarten (this, "Bitte warten Sie!",
false);
<br>&nbsp;...
<p><i>//die Berechnung starten</i>
<br>&nbsp; void CalculationStart() {
<br>&nbsp;&nbsp;&nbsp; dlgWarten.show();
<br>&nbsp;&nbsp;&nbsp; dlgWarten.repaint();
<br>&nbsp;&nbsp;&nbsp; dlgWarten.validate();
<br>&nbsp;&nbsp;&nbsp; this.getContentPane().repaint();
<br>&nbsp;&nbsp;&nbsp; this.getContentPane().validate();
<p>&nbsp;&nbsp;&nbsp; ...&nbsp; // action
<p>&nbsp;&nbsp;&nbsp; this.getContentPane().repaint();
<br>&nbsp;&nbsp;&nbsp; this.getContentPane().validate();
<br>&nbsp;
<p>Regards,</html>

--------------35574B0B9266552967477CD4--
Technical Details
Message-ID: <3949C610.929710FB@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,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