Win a copy of Clojure in Action this week in the Clojure forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Related To jInternalFrame

 
Sachindra Pratap
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
What code are you using to close the internal frame?
 
Sachindra Pratap
Ranch Hand
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
jInternalFrame16.setClosed(true);
 
Campbell Ritchie
Sheriff
Pie
Posts: 47293
52
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Don't know. That bit ought to work, unless you have a veto on it.

Anybody else?
 
Michael Dunn
Ranch Hand
Posts: 4632
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> 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
Posts: 42
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thankyou all of you for your valuable suggestions!

regards
Sachindra
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic