John Zukowski wrote:
> Just subclass JPanel (or JComponent).
>
> Mixing Swing and AWT components will cause lots of headaches.
JPanel is a container, right? That is not exactly what I wanted, since
I want to make the component available for other to use. Someone might
try adding other components into my subclass of JPanel.
I guess JComponent will be the best choice, thanks for the help.
--
---------------------------------------------------------------
Alexandre Sieira Vilar - http://www.tecgraf.puc-rio.br/~asv
Computer Engineering Student at PUC-Rio - GNU and Linux rock!
3rd kyu Aikikkai Aikidoka (as of November 28, 1998)
---------------------------------------------------------------
"The real Art of Peace is not to sacrifice a single one of
your warriors to defeat an enemy. Vanquish your foes by
always keeping yourself in a safe and unassailable position;
then no one will suffer any losses. The Way of a Warrior,
the Art of Politics, is to stop trouble before it starts.
It consists in defeating your adversaries spiritually by
making them realize the folly of their actions. The Way of
a Warrior is to establish harmony."
Morihei Ueshiba
===========================================================================
To unsubscribe, send email to [EMAIL PROTECTED] and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
[EMAIL PROTECTED] and include in the body of the message "help".