this(new ImageIcon(img).getImage());
this.img = img; Dimension size = new Dimension(img.getWidth(null),img.getHeight(null)); setPreferredSize(size); setMinimumSize(size); setMaximumSize(size); setSize(size); setLayout(null);
g.drawImage(img,0,0,null);