• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

Related To jInternalFrame

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

Anybody else?
 
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • Quote
  • Report post to moderator
Thankyou all of you for your valuable suggestions!

regards
Sachindra
 
Don't get me started about those stupid light bulbs.
reply
    Bookmark Topic Watch Topic
  • New Topic