🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Graphic Output on Panel

#16446
From: Dillan Fernando
Date: Sun, 21 Feb 1999 00:00
43 lines
2006 bytes
Hi!

If you implement runnable, you have to implement the method "run()"

Refer jbuilder Help.

Regards

Dillan Fernando

D. wrote in message <36d0218d.7517707@news.karlsruhe.netsurf.de>...
>Hello please excuse me this beginner question,
>but I couldn't find an answer yet:
>
>If you want to create an animation applet with JDK you simply create a
>Runnable class, put a loop with a repaint() in the run() method and
>put the drawing stuff with or without buffering in the paint() method.
>I think, that I have understood this.
>
>BUT, what do I have to do to make an animation on a panel created with
>JBuilder ?
>
>If I choose "new - applet" I get the sceleton code, but inserting
>"implements Runnable" results with a compiler error "needs to be
>abstract". As I do not understand this, I leave that autogenerated
>class the way it is and add a new one to the project wich implements
>Runnable and therefore uses Threads. But what do I have to write
>there, if I want the animation to take place on a panel of the
>automatic generated class ?
>Let us assume, that there's a bevelPanel1 in the automatic generated
>class (designed with the desgin tab) and that I want to draw the
>actual time updated every second on that bevelPanel1. What do I have
>to do in the Runnable class ?!?!?!
>
>public class AnimationClass extends java.applet.Runnable implements
>Runnable {
>...
>}
>
>Is "extends java.applet.Runnable" already wrong ?!?!
>
>Pleas help,
>D.
Technical Details
Message-ID: <7aqiq5$obf4@forums.borland.com>
Path: arc1-ca.pugleaf.net!unknown!not-for-mail
References: <36d0218d.7517707@news.karlsruhe.netsurf.de>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: f74b3,c197eff496c668b
X-Google-Attributes: gidf74b3,public
From: "Dillan Fernando" <dillan@geocities.com>
Subject: Re: Graphic Output on Panel
Date: 1999/02/21
Message-ID: <7aqiq5$obf4@forums.borland.com>
X-Deja-AN: 446928239
References: <36d0218d.7517707@news.karlsruhe.netsurf.de>
X-Mimeole: Produced By Microsoft MimeOLE V4.72.3110.3
Organization: Another Netscape Collabra Server User
Newsgroups: borland.public.jbuilder.java.language