When you have errors, post them and someone will help you fix them.
Type: Posts; User: Norm
When you have errors, post them and someone will help you fix them.
Sorry, not everyone can do everything.
If the code is for a homework assignment, I definitely can't give any student code.
Here is a hint. If you want the image somewhere besides the upper left corner, change the x,y location where it is being drawn.
Further hints: add a Point to the MyPanel class and have the...
Look at the paintIcon method. It always puts the image at 0,0
Your code shows that you know how to add a component to a container.
Create a new component, say a label with some text and add it to the container.
Please use code tags when posting your code. See BB Code List - Java Forums
Use the # icon above the text input box