Author Topic: Canvas inside Panel in Swing  (Read 1506 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: 12066
    • View Profile
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:,459.0.html