🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Graphics on component: HELP!!!!! :-|

#16386
From: D.
Date: Thu, 25 Feb 1999 00:00
38 lines
1686 bytes
Hi,

Before I become insane too, let's post a lost SOS message:

I bought "..JBuilder in 21 days...". One chapter was about graphics
and animations. Good. Not so good, that the examples didn't take any
notice of JBuilder. They were just "pure JAVA" examples which didn't
consider that you want your graphics/animations only to take place in
a special area of your applet.

Let us click onto the design tab of JBuilder and create two
bevelPanels named bevelPanelGraphic and bevelPanelControl.
Now I want some animation to take place on bevelPanelGraphics.
Therefore I implemented my class Runnable and added a run and a stop
method. So far it works.

Now I do NOT understand why the following code doesn't cause any
animation - in this case just a static line - to appear on the
bevelPanel AND still let's the bevelPanelControl visible without being
updated all the time.

Graphics onScreenGraphics;

public void init() {
	onScreenGraphics = bevelPanelGraphics.getGraphics();
}

public void run() {
	while (true) {
		onScreenGraphics.drawLine(0,0,100,100);
		bevelPanelGraphic.paint(onScreenGraphics);		
	}
}

I would really be glad is someone could tell me what I have to do to
get it working ! So PLEASE PLEASE PLEASE post a followup message,

D. ;-(
Technical Details
Message-ID: <36d56037.72135@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,bc624d1a52e8a759,start
X-Google-Attributes: gidf74b3,public
From: (D.)
Subject: Graphics on component: HELP!!!!! :-|
Date: 1999/02/25
Message-ID: <36d56037.72135@news.karlsruhe.netsurf.de>
X-Deja-AN: 448328800
X-Trace: 25 Feb 1999 15:50:49 -0100, p10.karlsruhe.netsurf.de
Newsgroups: borland.public.jbuilder.java.language