Author Topic: Canvas inside Panel in Swing  (Read 2162 times)

Offline bgilb

  • byte
  • *
  • Posts: 21
    • View Profile
Canvas inside Panel in Swing
« 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.

Offline EgonOlsen

  • Administrator
  • quad
  • *****
  • Posts: 12295
    • View Profile
    • http://www.jpct.net
Re: Canvas inside Panel in Swing
« Reply #1 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