Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- public class Hi extends javax.swing.JFrame {
- int count = 0;
- JLabel backgroundImage;
- Dimension d;
- /**
- * Creates new form Hi
- */
- public Hi() {
- backgroundImage = new JLabel(new ImageIcon("racecar.png"));
- setContentPane(backgroundImage);
- initComponents();
- d = getSize();
- System.out.println("Width: " + d.width + " Height: " + d.height);
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement