www.jpct.net

jPCT - a 3d engine for Java => Support => Topic started by: bgilb on May 10, 2010, 03:02:08 am

Title: Canvas inside Panel in Swing
Post by: bgilb on May 10, 2010, 03:02:08 am
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.
Title: Re: Canvas inside Panel in Swing
Post by: EgonOlsen on May 10, 2010, 01:36:51 pm
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 (http://www.jpct.net/forum2/index.php/topic,459.0.html)