Stupid question...How to close a Jframe?

I create an application that read an Xml file and print it in a JFrame.

The Xml files have an auto-updating process, and I want the Jframe to be updated too.

In my programm I create an another JFrame.

I know it's a little bit stupid, but i'm a beginner.

I just want to know 2 things:

1-how to destroy a Jframe ( It's very important for me)

2-It is possible to update the JFrame?

If you have exemple it's would be so great !

but just the way to do the things will be cool too

Thanks a lot and more ! and please excuse my poor english

you can mail me tojavanico@voila.fr

[647 byte] By [Javanico] at [2007-9-26 3:48:39]
# 1
To destroy the frame: (jf = JFrame-object)jf = null; orjf.dispose(); to update the frame:jf.repaint(); all methods can be found in documentation under javax.swing.JFrame
NLSurfMan at 2007-6-29 12:32:23 > top of Java-index,Security,Cryptography...
# 2
thanks a lot NLSurfman =null; isn't work but dispose();very well !!
Javanico at 2007-6-29 12:32:23 > top of Java-index,Security,Cryptography...
# 3
JFrame jfjf.setDefaultCloseOperation(3) // exits from the prog.jf.setDefaultCloseOperation(2) // hide the framejf.setDefaultCloseOperation(1) // nothing will happen
ramkrishr at 2007-6-29 12:32:23 > top of Java-index,Security,Cryptography...