• Post Reply Bookmark Topic Watch Topic
  • New Topic

Closing of JInternal Frames  RSS feed

 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi all,
My query is as follows:
I have Jinternal frame opening on the click of the open menuitem.
i can open as many i want after cliking on open.
now i want to close the internal frame which is on top or active.
i dont know which one is on top. so how can i close it
Please let me know if there is an function which can do this
Thanx in advance..
Chhaya
 
Manfred Leonhardt
Ranch Hand
Posts: 1492
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi Chhaya,
Use the isSelected() method of the JInternalFrame to see if it is the active one (currently selected) which should map directly to the one in front (I hope...).
Regards,
Manfred.
 
Chhaya Dhanani
Ranch Hand
Posts: 70
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,
Thanks Manfred,
I used the isSelected ()method. it works fine
Thanks once again
Chhaya
 
Consider Paul's rocket mass heater.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!