learn java
The moose likes Applets and the fly likes Canvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of The Software Craftsman this week in the Agile forum!
JavaRanch » Java Forums » Java » Applets
Bookmark "Canvas" Watch "Canvas" New topic


Dean Kiely

Joined: Feb 27, 2004
Posts: 23
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

Joined: Jul 22, 2000
Posts: 9056
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).

"Yesterday is history, tomorrow is a mystery, and today is a gift; that's why they call it the present." Eleanor Roosevelt
Have you tried LearnNowOnline? http://www.learnnowonline.com/
subject: Canvas