• 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 all forums
this forum made possible by our volunteer staff, including ...
  • Campbell Ritchie
  • Ron McLeod
  • Paul Clapham
  • Bear Bibeault
  • Junilu Lacar
  • Jeanne Boyarsky
  • Tim Cooke
  • Henry Wong
Saloon Keepers:
  • Tim Moores
  • Stephan van Hulst
  • Tim Holloway
  • salvin francis
  • Frits Walraven
  • Scott Selikoff
  • Piet Souris
  • Carey Brown

Reopen JInternalFrame

Posts: 20
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
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,
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
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
I am mighty! And this is a mighty small ad:
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
    Bookmark Topic Watch Topic
  • New Topic