A friendly place for programming greenhorns!
Big Moose Saloon
Register / Login
Win a copy of
Introducing JavaFX 8 Programming
this week in the
Programmer Certification (SCJP/OCPJP)
can you add components to canvas ?
Joined: Nov 02, 2000
Dec 27, 2000 02:53:00
Joined: Nov 30, 2000
Dec 27, 2000 07:57:00
As Canvas being a direct Component you can only add(popupMenu) to it and no other componet adding interface is provided either thro' Canvas class or Component class. Adding component is possible only via Containers....
Check JDK help..
I agree. Here's the link:
subject: can you add components to canvas ?
drawing lines between two internal frames on a desktop pane
About Canvas and Swing
Make Line Graph scrollable in a JScrollPane?
why JMenuItem is hidden by AWT component?
All times are in JavaRanch time: GMT-6 in summer, GMT-7 in winter
| Powered by
Copyright © 1998-2015