Just subclass JPanel (or JComponent).
Mixing Swing and AWT components will cause lots of headaches.
J
Thanks for your message at 04:37 PM 7/20/99 -0300, Alexandre Sieira Vilar:
> I have written a custom component that inherits from java.awt.Canvas,
>which I use to render vector graphic files on. This component, called
>TWFCanvas, is currently part of an AWT-based applet.
> Since I have to use Java 2D anyway, I am forced to work with JDK 1.2,
>and I figured it made sense to use Swing instead of AWT. I could port
>the rest of the applet to start using swing for its simple interface,
>but still I would have to use the canvas. As I was unable to find any
>kind of 'JCanvas' class to work with, I guess I'll have to stick to
>java.awt.Canvas for all the Java 2D work.
> Will this mixing of swing and AWT components create any kind of
>problems for me?
John Zukowski Focus on Java Guide / http://java.about.com
http://www.magelang.com | [EMAIL PROTECTED] - Got Java?
Author Java AWT Reference / Mastering Java 2 / ...
Next Book: John Zukowski's Definitive Guide to Swing for Java 2
The limits of my language are the limits of my world. - Wittgenstein
===========================================================================
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".