Guest User

Untitled

a guest
Dec 10th, 2017
54
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.81 KB | None | 0 0
  1. /**
  2. *@// TODO: 22.11.2017 19:32
  3. * @Version Alpha 1.0
  4. * @End:01.12.2017
  5. * @thisProgrammIssoBigCrutch*/
  6. package rnd_game;
  7. import javax.swing.*;
  8. import java.awt.*;
  9.  
  10. public class Win {
  11. private static Image img;
  12.  
  13. public static void main(String[] args) {
  14. Dream cpn = new Dream("Guess the number");
  15. //settings WIN
  16. cpn.setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  17. cpn.setVisible(true);
  18. cpn.setSize(600, 400);
  19. cpn.setLocationRelativeTo(null);
  20. cpn.setLayout(null);
  21. cpn.setResizable(false);
  22. //icon
  23. try {
  24. img = new ImageIcon(Win.class.getResource("/rnd_game/img/Coin.png")).getImage();
  25. cpn.setIconImage(img);
  26. } catch (Exception imgERRor) {JOptionPane.showMessageDialog(null,"Icon not found");}
  27. }
  28. }
Add Comment
Please, Sign In to add comment