if (mode!=NO_SHOW) {
if (IJ.isWindows()) try {setIcon();} catch(Exception e) {}
<BUG>setBounds(loc.x, loc.y, ijWidth, ijHeight); // needed for pack to work
setLocation(loc.x, loc.y);
pack();
setResizable(!(IJ.isMacintosh() || IJ.isWindows())); // make resizable on Linux
show();</BUG>
}
if (err1!=null)
IJ.error(err1);

if (mode!=NO_SHOW) {
if (IJ.isWindows()) try {setIcon();} catch(Exception e) {}
setLocation(loc.x, loc.y);
setResizable(!IJ.isMacOSX());
pack();
setVisible(true);
}
if (err1!=null)
IJ.error(err1);
