Hello Everyone, I have an applicaiton, in which Main Frame JFrame contain some JInternalFrame which is added into JDesktopPane. My question is that if i click on Internal Frame icon, so it is not closing the Frame but it maximize the size of the Frame. Can anyone please help me, might this is a very baisc question but i am stuck in that.
Use a constructor that have the maximizable parameter, and of course you should pass true to it. Or call setMaximizable. If that doesn't work, try a different look and feel -- according to the documentation, not all look and feels support maximizing.
There is no emoticon for what I am feeling!
Joined: Apr 18, 2005
Thanks for your reply, I am using the following constructor JInternalFrame(String title, boolean resizable, boolean closable, boolean maximizable, boolean iconifiable)
But the thing is that i want for example when you double click on any of your window's icon(Top Left Corner) so it close down that window. thay functionality i am looking that if someone double click on icon of my JInternalFrame it suppose to close that window.
thanks for your reply. [ March 01, 2006: Message edited by: ghazanfar khan ]
This adds an action listener to the system menu and calls the default close action on the frame.
You will then need to use this TitlePane by writing your own JInternalFrameUI like so...
I don't know how you set up your L&F but you can either assign the UI directly to all JInternalFrames via the UIManager or assign it explicitly to each JInternalFrame like so... JInternalFrame jif = new JInternalFrame(); jif.setUI(MyInternalFrameUI.createUI(jif));
Hope that helps. locky
subject: JInternalFrame double click Not closing theJInternalFrame