File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Beginning Java and the fly likes Adding an Image to JPanel using NetBeans IDE Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Android Security Essentials Live Lessons this week in the Android forum!
JavaRanch » Java Forums » Java » Beginning Java
Bookmark "Adding an Image to JPanel using NetBeans IDE" Watch "Adding an Image to JPanel using NetBeans IDE" New topic
Author

Adding an Image to JPanel using NetBeans IDE

Arian Gerryts
Greenhorn

Joined: Mar 22, 2012
Posts: 11
I am trying to add an image to a panel using Netbeans. I dragged a Panel from the palette on to the frame and sized it according to what I want the image size to be. In the constructor I then added the image to the panel(I named it panelImage) like this.



The image however does not display. What is the best way to have the an image displayed as the size of the Panel using Matisse layout manager(i.o.w. dragging and dropping the panel).
 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Adding an Image to JPanel using NetBeans IDE
 
Similar Threads
background image
How to change image on label without using seticon method
Adding an image to a frame
Image is not been added to a label
Icons