Re: [JAVA2D] Canvas level BufferStrategy

2008-08-12 Thread java2d
Thanks for your reply Dmitri. Changing the JFrame to the AWT Frame got my program to work. Should'nt it have worked with JFrame as well? Does this means that I can't make use of a BufferStratergy backed animation area in a Swing application. There is no Canvas equivalent in Swing.

[JAVA2D] Canvas level BufferStrategy

2008-08-11 Thread java2d
Hello I’m new to graphics and am in the process of bringing myself up to speed on java 2d.I am now looking at how to use the BufferStratergy to manage the offscreen buffer. I’ve written a test program but nothing appears in my canvas/frame. Any idea what I’m doing wrong? I’m sure it

Re: [JAVA2D] Canvas level BufferStrategy

2008-08-11 Thread Dmitri Trembovetski
You don't want to use Swing components and Canvas together. Use Frame instead of JFrame. Thanks, Dmitri [EMAIL PROTECTED] wrote: Hello I’m new to graphics and am in the process of bringing myself up to speed on java 2d.I am now looking at how to use the BufferStratergy to