Hey Lads,
I Have a problem involving my save method ,
basically i want it to actually save a file which is of type JTable
UnFortunetly its not , a Push in the right direction would be great.
save.addMouseListener(new MouseAdapter(){
public void mouseClicked(MouseEvent e){
JFileChooser fc = new JFileChooser();
int returnVal = fc.showSaveDialog(Gav. this);
if (returnVal == JFileChooser.APPROVE_OPTION) {
File file = fc.getSelectedFile();
try {
FileWriter fw = new FileWriter(file);
} catch (IOException e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
}
});