ok, how exactly would i make a popup window (JOptionPane) that contains a custom image, and only a ok box?
if i make the image the icon, it is shrunken way down, and placed in the side of the box, i want the image to be compleatly centered in the window, and below it only have the ok box, which would get rid of the window
05-11-2005, 12:21 PM
make your own pop-up box and just let it extend JDialog. That way, you can make it modal if needed, but you have maximum control over how it will end up.
05-11-2005, 03:51 PM
ok well actoually i used JOptionPane.showMessageDialog(null,"","",0,new ImageIcon(image));
this correctly creates the window with the image in it, with an ok button
but the problem is
that it calls paint after it executes
setIgnoreRepaint(false) does not stop this from happening, could anybody explain how 2 stop the JOptionPane from calling repaint after it is closed?