🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.api
Article #2024

Re: Thread executing

#2024
From: Ant�nio Ferreira
Date: Tue, 26 Jun 2001 17:13
26 lines
1982 bytes
I already know why it didn't work with jbuilder 4: I was creating wrongly
the threads. I was using the interface Runnable directly and using the
method run to start the thread. This is not the correct way to create the
thread. Also, I had to use the method sleep to garantee the immediate
refresh of the dialog frame. The strangest thing is that the code I use
earlier worked with jbuilder 3 (java 1.2). I think it was just a
coincidence.

"Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt> wrote in message
news:3b386b63_2@dnews...
> Hi,
>
>   I upgraded my application from jbuilder 3 (java1.2) to jbuilder 4 (java
> 1.3) and a problem arose:
> how can I garantee that the method show of a dialog is immediatly
executed.
> That is, the thread that has this instruction is executed without waiting
> for another thread to refresh the screen. For a strange reason this worked
> for jbuilder 3 (I just created the two threads one after the other and
used
> the invokeLater on the one that refreshed the screen).
>   Thanks,
>
>   Ant�nio Jos� Ferreira
>
>
Technical Details
Message-ID: <3b38c226_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews
References: <3b386b63_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII
X-Google-Thread: 1089d0,c2188e1dbe3063d8
X-Google-Attributes: gid1089d0,public
X-Google-ArrivalTime: 2001-06-26 10:11:59 PST
From: "Ant�nio Ferreira" <antonio.ferreira@artesis.co.pt>
Newsgroups: borland.public.jbuilder.java.api
References: <3b386b63_2@dnews>
Subject: Re: Thread executing
Date: Tue, 26 Jun 2001 18:13:28 +0100
Lines: 28
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 5.00.2919.6600
X-MimeOLE: Produced By Microsoft MimeOLE V5.00.2919.6600
NNTP-Posting-Host: 195.22.4.72
Message-ID: <3b38c226_2@dnews>
X-Trace: dnews 993575462 195.22.4.72 (26 Jun 2001 10:11:02 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!nntp-relay.ihug.net!ihug.co.nz!news-spur1.maxwell.syr.edu!news.maxwell.syr.edu!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!dnews