@@ -0,0 +1,665 @@
+package test;%0A%0Aimport javax.swing.JButton;%0Aimport javax.swing.JFileChooser;%0Aimport javax.swing.JFrame;%0Aimport javax.swing.JPanel;%0A%0Apublic class MyFileChoser extends JFrame%0A%7B%0A%09%0A%09private String file;%0A%09public MyFileChoser() %7B%0A%09%09%0A%09%09JPanel panel =new JPanel();%0A%09%09JFileChooser fileChooser=new JFileChooser();%0A//%09%09fileChooser.%0A%09%09int returnVal = fileChooser.showSaveDialog(this);%0A%09%09%0A%09    if(returnVal == JFileChooser.APPROVE_OPTION) %7B%0A%09       this.file= fileChooser.getSelectedFile().getAbsolutePath();%0A%09    %7D%0A%09    %0A%09%09panel.add(fileChooser);%0A%09%09add(panel);%09%0A%09%09%0A%09%7D%0A%09%0A%09%0A%09public String getFile() %7B%0A%09%09return file;%0A%09%7D%0A%09public void setFile(String file) %7B%0A%09%09this.file = file;%0A%09%7D%0A%7D%0A

Create MyFileChoser.java