🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.jbuilder.java.language
Article #7190

Re: How do you make a 2 second delay?

#7190
From: Joi Ellis [TeamB]
Date: Tue, 10 Jul 2001 16:10
18 lines
1507 bytes
swett@starband.com wrote:
> In an applet I have a need for a 2 second delay once a frame is shown.
> After the delay, the frame is automatically closed and things continue.
> Everything's OK with auto closing and continuing, but I don't know how to
> build in a 2 second delay.

> While this is not a "splash" screen, you can think of it as something like
> that.

> The applet does not currently have a need for threads and hopefully adding a
> delay won't introduce threads into it.

Thread.sleep(2000) should do the trick.
-- 
Joi Ellis (TeamB)               http://www.teamb.com/
No direct email, please.
For best results, post on news server newsgroups.borland.com!
Newsgroup Info: http://www.borland.com/newsgroups/guide.html
Technical Details
Message-ID: <3b4b290f_2@dnews>
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail
References: <3b4af6ed_2@dnews>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,ee8da04c0400ff3e
X-Google-Attributes: gidf74b3,public
X-Google-ArrivalTime: 2001-07-10 09:12:44 PST
Message-ID: <3b4b290f_2@dnews>
From: "Joi Ellis [TeamB]" <joi@aravox.com>
Subject: Re: How do you make a 2 second delay?
Newsgroups: borland.public.jbuilder.java.language
References: <3b4af6ed_2@dnews>
User-Agent: tin/1.4.2-20000205 ("Possession") (UNIX) (Linux/2.2.16-3 (i686))
NNTP-Posting-Host: 209.46.41.66
Date: 10 Jul 2001 09:10:55 -0700
X-Trace: dnews 994781455 209.46.41.66 (10 Jul 2001 09:10:55 -0700)
Lines: 18
Path: arc1-ca.pugleaf.net!archiver1.google.com!newsfeed.google.com!sn-xit-02!supernews.com!newsfeed.direct.ca!look.ca!newsfeed.wirehub.nl!PeerFeed.KWeb.on.ca!dnews!not-for-mail