• 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
  • Tim Cooke
  • paul wheaton
  • Jeanne Boyarsky
  • Ron McLeod
Sheriffs:
  • Paul Clapham
  • Liutauras Vilda
  • Devaka Cooray
Saloon Keepers:
  • Tim Holloway
  • Roland Mueller
Bartenders:

Reopen JInternalFrame

 
Greenhorn
Posts: 20
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Sheriff
Posts: 7001
6
Eclipse IDE Python C++ Debian Java Linux
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Ranch Hand
Posts: 71
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Grow a forest with seedballs and this tiny ad:
Smokeless wood heat with a rocket mass heater
https://woodheat.net
reply
    Bookmark Topic Watch Topic
  • New Topic