🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Graphic Output on Panel

#16444
From: D.
Date: Sun, 21 Feb 1999 00:00
32 lines
1649 bytes
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: <36d0218d.7517707@news.karlsruhe.netsurf.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: f74b3,c197eff496c668b,start
X-Google-Attributes: gidf74b3,public
From: (D.)
Subject: Graphic Output on Panel
Date: 1999/02/21
Message-ID: <36d0218d.7517707@news.karlsruhe.netsurf.de>
X-Deja-AN: 446723600
X-Trace: 21 Feb 1999 16:21:10 -0100, p15.karlsruhe.netsurf.de
Newsgroups: borland.public.jbuilder.java.language