if its a JInternalFrame: setIconable(false);
if its a JFrame:
addWindowListener(new WindowAdapert()
{
public void windowIconified(WindowEvent e)
{
// reopen
}
});
unfortunately, there is no event to notify you that the frame is going to be iconified.
you should consider using an JInternalFrame (if its not the main window of your app) or a JDialog.
chantal