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 Android Security Essentials Live Lessons this week in the Android 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: 9044
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
I agree. Here's the link: http://aspose.com/file-tools
subject: Canvas
Similar Threads
image in panel
Controlling Window Focus
Graphics2D on JPanel
Panel in ScrollPane