File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Related To jInternalFrame Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Related To jInternalFrame" Watch "Related To jInternalFrame" New topic
Author

Related To jInternalFrame

Sachindra Pratap
Ranch Hand

Joined: Jun 03, 2008
Posts: 42
hi,
Query:
In my application i am using , jInternalFrame.
On click of a button jInternalFrame get open.
And click of other button jInternalFrame close.
by use this statement
i.e jInternalFrame16.setClosed(true);
jInternalFrame16 gets closed first time.

if repeatadly tried , means on click of button jInternalFrame16 gets open,
and of click of other button it need to be closed.
throught above mention statement.

The frame status returned is true means closed ,but
jInternalFrame does not close.

So please suggest, what could be the problem?

regards,
Sachindra
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36486
    
  16
What code are you using to close the internal frame?
Sachindra Pratap
Ranch Hand

Joined: Jun 03, 2008
Posts: 42
jInternalFrame16.setClosed(true);
Campbell Ritchie
Sheriff

Joined: Oct 13, 2005
Posts: 36486
    
  16
Don't know. That bit ought to work, unless you have a veto on it.

Anybody else?
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> So please suggest, what could be the problem?

you are doing the opening/closing incorrectly

to close
jInternalFrame16.setClosed(true);//in a try/catch

to open (so that it can be closed again)
jInternalFrame16.setClosed(false);//in a try/catch
jInternalFrame16.setVisible(true);
desktop.add(jInternalFrame16);
Sachindra Pratap
Ranch Hand

Joined: Jun 03, 2008
Posts: 42
Thankyou all of you for your valuable suggestions!

regards
Sachindra
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: Related To jInternalFrame
 
Similar Threads
about frame
Not able to minimize JInternalFrame
Help for JFrame
jInternalFrame does not close
Swing JFrame