Advertisement
Guest User

Untitled

a guest
Jun 27th, 2019
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.55 KB | None | 0 0
  1. public class Iconworld extends JFrame {
  2. private Iconworld() {
  3. pack();
  4. setTitle("массивы ё");
  5. setSize(300,300);
  6. setDefaultCloseOperation(WindowConstants.EXIT_ON_CLOSE);
  7. setResizable(false);
  8. setLocationRelativeTo(this);
  9. setVisible(true);
  10. ImageIcon icon = new ImageIcon(getClass().getResource("0.png"));
  11. //ImageIcon icon = new ImageIcon("res/0.png");
  12. setIconImage(icon.getImage());
  13. }
  14.  
  15. public static void main(String[] args) {
  16. new Iconworld();
  17. }
  18. }
  19.  
  20. ImageIcon icon = new ImageIcon("res/0.png");
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement