Swing already uses an accelerated back buffer for its drawing. Internally this is either a VolatileImage (from JDK1.4+) or a BufferStrategy (from JDK1.6+). The equivalent of Canvas in Swing is just a sub-classed JComponent or JPanel, since all Swing components are lightweight. There's very little use for an actual Canvas object now. A Window object (e.g. window/frame/dialog) can also be used to create a BufferStrategy which would save you the trouble of ever using Canvas. Putting a Canvas into a JFrame is a bad idea due to the rather erratic behaviour that can result from using heavyweight components inside lightweight ones. [Message sent by forum member 'fred34' (fred34)]
http://forums.java.net/jive/thread.jspa?messageID=293010 =========================================================================== 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".
