Java tutorial
import java.awt.Image; import java.awt.image.BufferedImage; import javax.swing.JFileChooser; import javax.swing.JFrame; public class Main { public static void main(String[] args) { Image image = new BufferedImage(32, 32, BufferedImage.TYPE_INT_RGB); JFrame f = new JFrame(); f.setIconImage(image); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.pack(); f.setSize(600, 400); f.setVisible(true); JFileChooser chooser = new JFileChooser(); chooser.showOpenDialog(f); } }