• 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 ...
Marshals:
  • Campbell Ritchie
  • Liutauras Vilda
  • Paul Clapham
  • Bear Bibeault
  • Jeanne Boyarsky
Sheriffs:
  • Ron McLeod
  • Tim Cooke
  • Devaka Cooray
Saloon Keepers:
  • Tim Moores
  • Tim Holloway
  • Jj Roberts
  • Stephan van Hulst
  • Carey Brown
Bartenders:
  • salvin francis
  • Scott Selikoff
  • fred rosenberger

destroy memory of jfilechooser when open for second time the jframe

 
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi everybody!!!

i have one problem.

in one jframe i have insert one jfilechooser but when i open in second time jfilechooser when i want close...don't close.

when i close jframe i want destroy memory of jfilechooser...

how to do???

for to close jframe i write:

jframe.dispose();

but don't to do nothing....

help me please!!!
 
Ranch Hand
Posts: 73
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Paul,
Not clear what do you mean by ?

problemwhen i open in second time jfilechooser when i want close...don't close.



Can you post a working compiled code showing the issue so that you can get a better help.

 
paul beppe
Ranch Hand
Posts: 86
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi Alan...thank's for answar..

i have understand the problem...

i haven't write:

button = new JButton("click");

don't witre the new JButton don't delete memory of old JButton...

thank's very much!!!

:-D


 
I need a new interior decorator. This tiny ad just painted every room in my house purple.
Building a Better World in your Backyard by Paul Wheaton and Shawn Klassen-Koop
https://coderanch.com/wiki/718759/books/Building-World-Backyard-Paul-Wheaton
reply
    Bookmark Topic Watch Topic
  • New Topic