File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
The moose likes Swing / AWT / SWT and the fly likes paint with canvas Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of REST with Spring (video course) this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "paint with canvas" Watch "paint with canvas" New topic

paint with canvas

jim mark

Joined: May 19, 2003
Posts: 1
I have made a canvas in one one class. when I click a button a shape is created.But the shape is behind the canvas so it isn't visible.
Nathan Pruett

Joined: Oct 18, 2000
Posts: 4121

I really don't understand what you're doing... is the canvas painting the shape? Is the shape on another component? I need more description (and possibly code) before I can help you out...

Write once, run anywhere, because there's nowhere to hide! - /. A.C.
I agree. Here's the link:
subject: paint with canvas
It's not a secret anymore!