Win a copy of Practical SVG this week in the HTML/CSS/JavaScript forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Help for JFrame

 
kirtesh jain
Ranch Hand
Posts: 44
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi all
I have Created one Frame and in which Buttons are provided which opens new Internal Frames....what i want is when i open one Internal Frame the other Internal Frame gets closed...
or

if i click one button then other button gets disabled and when i close the internal frame all disabled button gets enabled...


please help me out....
thank you...
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> what i want is when i open one Internal Frame the other Internal Frame gets closed...

instead of creating/disposing intenalFrames, have you thought about a single
internalFrame set as a cardlayout, where you show whatever panel is linked to
the button/s
 
Darryl Burke
Bartender
Posts: 5155
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Just another cross poster.
http://www.java-forums.org/awt-swing/13421-help-jframe.html
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> Just another cross poster.

thanks - added to personal ignore list
 
Campbell Ritchie
Marshal
Posts: 52623
119
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I agree with Darryl Burke; you ought at least to point out to people on both fora that you are posting twice. Please read this FAQ.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!