• Post Reply Bookmark Topic Watch Topic
  • New Topic

destroy memory of jfilechooser when open for second time the jframe

 
paul beppe
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!!!
 
Alan Mehio
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


 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!