this(new ImageIcon(img));
setIcon(icon); //setMargin(new Insets(0,0,0,0)); setIconTextGap(0); //setBorderPainted(false); setBorder(null); setText(null); setSize(icon.getImage().getWidth(null), icon.getImage().getHeight(null));