/** * <code>setImage</code> sets the background image of this dialog. * * @param image * <code>URL</code> pointing to the image file. */ public void setImage(URL image) { icon.setIcon(new ImageIcon(image)); pack(); // Resize to accomodate the new image setLocationRelativeTo(null); // put in center }
/** * <code>showDialog</code> sets this dialog as visble, and brings it to * the front. */ public void showDialog() { setLocationRelativeTo(null); setVisible(true); toFront(); }
/** * <code>setImage</code> sets the background image of this dialog. * * @param image * <code>URL</code> pointing to the image file. */ public void setImage(URL image) { icon.setIcon(new ImageIcon(image)); pack(); // Resize to accomodate the new image setLocationRelativeTo(null); // put in center }
/** * <code>setImage</code> sets the background image of this dialog. * * @param image * <code>URL</code> pointing to the image file. */ public void setImage(URL image) { icon.setIcon(new ImageIcon(image)); pack(); // Resize to accomodate the new image setLocationRelativeTo(null); // put in center }
/** * <code>showDialog</code> sets this dialog as visble, and brings it to * the front. */ public void showDialog() { setLocationRelativeTo(null); setVisible(true); toFront(); }
/** * <code>showDialog</code> sets this dialog as visble, and brings it to * the front. */ public void showDialog() { setLocationRelativeTo(null); setVisible(true); toFront(); }