Add image to AWT frame


/ Published in: Java
Save to your folder(s)

The attached article is also actually very funny.


Copy this code and paste it in your HTML
  1. new JLabel (new ImageIcon (ImagePanel.class.getResource("some_jpeg.jpg")))

URL: http://java.dzone.com/news/how-not-write-java

Report this snippet


Comments

RSS Icon Subscribe to comments

You need to login to post a comment.