Adding images via a browse fuction

Is it possible to add a images into a java JFrame programme when you click on a menuItem button(browse) and insert it into the programme?
[144 byte] By [TrinityTearsa] at [2007-11-26 18:03:48]
# 1

1) Display a JFileChooser

2) Get the name of the image you want to read

3) Create a JLabel and add the image as an ImageIcon to the GUI

Read the [url http://java.sun.com/docs/books/tutorial/uiswing/TOC.html]Swing Tutorial[/url]. Maybe start with the "How to Use Icons" section.

camickra at 2007-7-9 5:34:03 > top of Java-index,Desktop,Core GUI APIs...