SHARE
TWEET

Untitled

a guest Jun 27th, 2019 61 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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");
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top