Salvar como

Galera,
alguém sabe como posso fazer para cria um Jbutton salvar como, tipo como se vc estivesse no windons para salvar algum arquivo e indica o diretório onde deseja salvar.

att,
marcelouni

Use um JFileChooser:

http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JFileChooser.html

http://java.sun.com/docs/books/tutorial/uiswing/components/filechooser.html

Valeu!!!