This week's book giveaway is in the Agile forum.
We're giving away four copies of Head First Agile and have Andrew Stellman & Jennifer Greene on-line!
See this thread for details.
Win a copy of Head First Agile this week in the Agile forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

Reopen JInternalFrame  RSS feed

 
Lee Feder
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,
I'm posting this because I spent ages trying to reopen a JInternalFrame that had been closed.
To save memory and keep performance up, I decided to create a single instance of a JInternalFrame and just redisplay it as necessary. However, after it had been displayed and closed, the InternalFrameListener wouldn't process the InternalFrameClosing event.
The solution:

I hope this helps people with the same problem.
If you know a better solution, let me know.
Take it easy,
Lee
 
Frank Carver
Sheriff
Posts: 6920
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Wierd!, I was banging my head agains this very problem less than an hour ago. Thanks for the tip, it shows java Ranch really works
 
NILESH PATEL
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Dear Lee,
Is it possible for you to attach full code of handling internal frame, because it looks like it may solve my problem. My problem is, I have a parent frame. inside that there is a JSplitpane, with two vertical sections. Left side there is a treenode and right side with JInternalFrame. Similar to file manager in windows. When I click on one treenode it is supposed to display html file in JInternalFrame. That is fine but when I click on another node JInternalFrame remains the same and does not update. I hope this makes sense.
Thanks in advance
Nilesh
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!