File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
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
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: 9059
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:
subject: Canvas
It's not a secret anymore!