import java.awt.*; import javax.swing.*; public class LoadCard { public static void main (String[ ] args) { JFrame frame = new JFrame(); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); Container pane = frame.getContentPane(); Icon two = new ImageIcon("cards/2c.gif"); JLabel display = new JLabel(two); pane.add(display); System.out.println("h=" + two.getIconHeight() + " w=" + two.getIconWidth()); frame.setLocation(100, 100); frame.pack(); frame.show(); } }