You are not logged in.

#1 2005-08-22 23:08:39

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Java canvas for graphics

I wanted to program a basic game, so I wrote the game into a class that extended canvas and put rendering into paint(). The game renders and plays just fine, but I have it inserted as part of a gridbaglayout in a swing jframe. The menus paint underneath the canvas, instead of over. That's a problem!

Is there a fix to this? Or perhaps an alternative solution to using a canvas?

Offline

#2 2005-08-23 01:50:03

kleptophobiac
Member
From: Sunnyvale, CA
Registered: 2004-04-25
Posts: 481

Re: Java canvas for graphics

Meh, I turned it into a jcomponent and all is well.

Offline

Board footer

Powered by FluxBB