File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Adding an Image to JPanel using NetBeans IDE

Arian Gerryts
Posts: 11
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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).
I agree. Here's the link:
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic