This week's book giveaway is in the Servlets forum.
We're giving away four copies of Murach's Java Servlets and JSP and have Joel Murach on-line!
See this thread for details.
The moose likes Beginning Java and the fly likes add a Canvas to a JPanel within a JFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Murach's Java Servlets and JSP this week in the Servlets forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "add a Canvas to a JPanel within a JFrame" Watch "add a Canvas to a JPanel within a JFrame" New topic
Author

add a Canvas to a JPanel within a JFrame

samifox
Greenhorn

Joined: Sep 03, 2001
Posts: 5
hi there!
i extends Canvas and i draw image in it like this :

th problem is when i try to put the class instance on a JFrame and user add() , the Canvas doesnt appear ,
this is how i test it :

thanks in advance
Shay



[This message has been edited by samifox (edited September 03, 2001).]
Cindy Glass
"The Hood"
Sheriff

Joined: Sep 29, 2000
Posts: 8521
Please change your name to be compliant with JavaRanch's naming policy.
Your ID should be 2 separate names with more than 1 letter each. We really want this to be a professional forum and would prefer that you use your REAL name.
Thanks,
Cindy
I am moving this thread to the AWT/Swing forum.


"JavaRanch, where the deer and the Certified play" - David O'Meara
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: add a Canvas to a JPanel within a JFrame
 
Similar Threads
How to open internet explorer with desired site address..reply urgently
Problem on extending an extended class
add a Canvas to a JPanel within a JFrame
Still not working..help please.
file chooser