Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Canvas

 
Dean Kiely
Greenhorn
Posts: 23
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Is it possible to put a panel onto a canvas, the paint method is used to put everything i have onto the canvas but i want to put a panel onto it. How can i do this?.
 
Marilyn de Queiroz
Sheriff
Posts: 9065
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
You can put a Canvas into a Panel (which is a Container), but you can't put a Panel into a Canvas (which is a Component but not a Container).
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic