Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- ImageIcon imageIcon = new ImageIcon("images\5-5.png");
- Image image = imageIcon.getImage();
- Image newimg = image.getScaledInstance(60, 120,java.awt.Image.SCALE_SMOOTH);
- imageIcon = new ImageIcon(newimg);
- JLabel img = new JLabel(imageIcon);
- img.setBounds(100, 100, 60, 120);
- getContentPane().add(img);
Add Comment
Please, Sign In to add comment