On Sat, Sep 29, 2001 at 06:10:15PM -0500, Matt Fair wrote: > Hello, Hi
I think you have posted this to the wrong place. This mailinglist is for discussing general java issues. If this is a bug I suggest that you file it to the correct package. If any of us should be able to answer questions like this you have to provide us with: * What software you are using (all important ones). * What libraries and similar things. * What version. * What you want to accomplish. * What is wrong. But probably you have just posted to the wrong place. :) Regards, // Ola > I don't think the setDefaultCloseOperation works correctly. > What I want to do is when I click on the 'X' in the right corner of the > window, that it just hides. I have tried HIDE_ON_CLOSE and that doesn't > work, and I have also written my own close operations by setting > DO_NOTHING_ON_CLOSE. I just want to set JInteranalFrame > setVisible(false) so when I call setVisible(true) on it that it shows up > again. > > You can see my code below. > Any sugestions? > Thanks in advanced, > Matt > > public class ApplicationWindow extends JInternalFrame implements Plugin { > public ApplicationWindow() { > setDefaultCloseOperation(DO_NOTHING_ON_CLOSE); > addInternalFrameListener(new InternalFrameAdapter() { > public void internalFrameClosing(InternalFrameEvent e) { > System.out.println("hiding ...."); > JInternalFrame frame = (JInternalFrame)e.getSource(); > frame.setVisible(false); > System.out.println("done"); > }}); > setFrameIcon (new ImageIcon (ClientData.instance().getImage > ("computer-small.png"))); > setIconifiable (true); > setClosable (true); > setResizable (true); > setVisible(false); //don't show starting off > setTitle("Applications"); > } > } > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > -- --------------------- Ola Lundqvist --------------------------- / [EMAIL PROTECTED] Björnkärrsgatan 5 A.11 \ | [EMAIL PROTECTED] 584 36 LINKÖPING | | +46 (0)13-17 69 83 +46 (0)70-332 1551 | | http://www.opal.dhs.org UIN/icq: 4912500 | \ gpg/f.p.: 7090 A92B 18FE 7994 0C36 4FE4 18A1 B1CF 0FE5 3DD9 / ---------------------------------------------------------------