🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: how to use timer

#16926
From: Ofir Amitai
Date: Tue, 05 Jan 1999 00:00
40 lines
1739 bytes
Hi

Thanks for your help. could u please give me more detailed example ?

Regrads
Ofir Amitai


Chris Hill wrote:

> Borland has provided some Timer functionality with the
> borland.jbcl.util.Timer class and the borland.jbcl.util.TimerClient
> interface.
>
> Implement TimerClient in one of your classes (if you implement it in a
> frame, it will be similar to C++ Builder where you implement the timer
> event handler in your form's code).
>
> Next create a Timer instance and call the startTimer function.  Later
> you can call the stopTimer if you wish.
>
> If you have a problem using Borland classes, you could use
> javax.swing.Timer from JDK 1.2 or create your own class using Threads.
> The basic idea is to spawn a new thread which sleeps for the period of
> the timer then fires and event.
>
> On Mon, 04 Jan 1999 13:03:37 +0200, Ofir Amitai
> <amitay@econ.haifa.ac.il> wrote:
>
> >Hi
> >
> >I need to use timer to execute a command in equal intervals
> >in CBuilder I use the Timer component, what do I do in JBuilder ?
> >
> >Regrads
> >Ofir Amitai
> >
>
> Chris Hill
> Chris244@aol.com
Technical Details
Message-ID: <3691CF9A.EA310FE3@econ.haifa.ac.il>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <3690A008.C802EE4D@econ.haifa.ac.il> <3690c60f.318105441@forums.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,2f6728999b8f4dca
X-Google-Attributes: gidf74b3,public
From: Ofir Amitai <amitay@econ.haifa.ac.il>
Subject: Re: how to use timer
Date: 1999/01/05
Message-ID: <3691CF9A.EA310FE3@econ.haifa.ac.il>
X-Deja-AN: 428946165
Content-Transfer-Encoding: 7bit
References: <3690A008.C802EE4D@econ.haifa.ac.il> <3690c60f.318105441@forums.borland.com>
X-Accept-Language: en
Content-Type: text/plain; charset=us-ascii
Organization: Another Netscape Collabra Server User
Mime-Version: 1.0
Newsgroups: borland.public.jbuilder.java.language