dialog.hide();
dialog.setVisible(false);
                public void actionPerformed( ActionEvent event ) {                    Dimension size = imgButton.getPreferredSize();                    camo.setBackground( imgButton.getBackground() );                    camo.setLabel( imgButton.getLabel() );                    camo.setImage( imgButton.getImage()                                   .getScaledInstance(size.width,                                                      size.height,                                                      Image.SCALE_FAST) );                    dialog.hide();                }