Canvas vs. JComponent for drawing
I'm reasonably proficient in Swing but as I've began programming in java2D,
I'm puzzled by all the usages of java.awt.Canvas I've seen as the GUI component
in which the custom graphics are drawn in. So far, I've used JComponent
subclasses for this purpose. Is there a reason I should use Canvas instead? I
presume it is heavyweight, whereas JComponent is lightweight, which I thought
was the preferred way of implementing GUI and graphics in java.
thanks in advance,
To unsubscribe, send email to email@example.com and include in the body
of the message "signoff JAVA2D-INTEREST". For general help, send email to
firstname.lastname@example.org and include in the body of the message "help".