import javax.swing.*; public class ImageShow { public static void main(String[] args) { JFrame window = new JFrame("Tester"); JLabel label = new JLabel(new ImageIcon("image.jpg")); window.getContentPane().add(label); window.pack(); window.setResizable(false); window.setVisible(true); } }