canvas = new DisplayCanvas(backbuffer);
I tried to get out all the important parts from my code.
I am continually drawing the backbuffer image on the canvas. My problem, is I want my "frame" to be on top of the canvas when I drag it over, but I can't seem to figure it out.
10-21-2004, 12:25 AM
Anyone have any ideas? I have tried messing with it some more, but I cant seem to get it. The 'canvas' is going to the default layer. I have tried modifying the layer of the 'frame', but it doesnt seem to make a difference. For some reason, nothing seems to be able to go over the canvas. I know that there is a way to do it though. Someone has to know something about this...Anyone? :D
10-21-2004, 01:25 AM
Ok, try re-arranging the order of your code to this:
not too sure, but it could be the ordering and default settings that java has...
10-21-2004, 02:00 PM
Thanks for the reply. I gave it a shot, but no luck :(
Upon further investigating, I think this may be a slight incompatibility problem, which stems from using Swing components with the AWT Canvas class. Apparently JPanels are supposed to replace the AWT Canvas class. When I have the time, I am going to see if i can figure that out. I suspect it just might work.
If anyone know of a really good site that explains how to use JPanels with examples that would help. I have tried looking, and havent really found anything clear enough. Or if you can confirm my suspicions, that would also be nice.
10-21-2004, 08:48 PM
i had a quick look, you are right not too many good ones but here are a few that are ok: