Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /**
- *@// TODO: 22.11.2017 19:32
- * @Version Alpha 1.0
- * @End:01.12.2017
- * @thisProgrammIssoBigCrutch*/
- package rnd_game;
- import javax.swing.*;
- import java.awt.*;
- public class Win {
- private static Image img;
- public static void main(String[] args) {
- Dream cpn = new Dream("Guess the number");
- //settings WIN
- cpn.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
- cpn.setVisible(true);
- cpn.setSize(600, 400);
- cpn.setLocationRelativeTo(null);
- cpn.setLayout(null);
- cpn.setResizable(false);
- //icon
- try {
- img = new ImageIcon(Win.class.getResource("/rnd_game/img/Coin.png")).getImage();
- cpn.setIconImage(img);
- } catch (Exception imgERRor) {JOptionPane.showMessageDialog(null,"Icon not found");}
- }
- }
Add Comment
Please, Sign In to add comment