Eric,
Sorry - to follow up on my previous post.
You should also be doing all of your painting code for your custom component
inside:
protected void paintComponent(Graphics g)
{
// do painting here...
super.paintComponent( g );
}
That way borders are handled correctly (though this is almost certainly
*not* the cause of your problem).
You might also want to read up on the following overridable methods:
public boolean isOpaque()
{
return false;
}
public static boolean isLightweightComponent(Component c)
{
return true;
}
Sincerely,
Daniel Selman
[EMAIL PROTECTED]
http://www.tornadolabs.com
-----Original Message-----
From: Discussion list for Java 3D API
[mailto:[EMAIL PROTECTED]]On Behalf Of Malguy, Eric G.
Sent: 08 December 1999 12:23
To: [EMAIL PROTECTED]
Subject: [JAVA3D] helppppppp
Hi all,
I need your help big time. I cannot figure out this one.
To make a long story short.
I have a map on a JPanel with items on it. You can zoom on it and I also
have all kind
of goodies. I have a scale in Kms, working well, but when it is time to
redraw the scale
is flickering all the time and does not get drawn unless you place the mouse
on it.
MpController is where the scale is turned on.
scale is where the scale is created.
MapperPanel is where the problem occur (in paint).
Any idea what could be the problem?
Thank you all for your help.
Eric Malguy
Software Engineer
Advanced Systems Group
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA3D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".