Canvas inside Panel in Swing

Started by bgilb, May 10, 2010, 03:02:08 AM

Previous topic - Next topic

bgilb

I'm trying to build a map editor, and was trying to find an elegant solution to intergrating the Canvas inside Swing. My crappy attempt resulted in failure. Any help on this? I couldn't really find anything in the wiki or forums.

EgonOlsen

What is the exact problem when doing this? In general, you can simply add the canvas like any other component. You just have to remember that it's a heavy weight component and doesn't mix very well with some of swing's light weight components. There should be some information about this topic in the forum too...if the search function wouldn't alyways create epic fails (at least for me), i would link to it... :(

Edit: Found something, maybe it helps: http://www.jpct.net/forum2/index.php/topic,459.0.html