here is some hints
1. Add a ActionListener
2. Get the return value of the JFilechooser (it can be OK or the Cancel button)
Sample in getting the return value:
int RT = fileChooser.showOpenDialog(this);
3. Compare the return value to your desired value
Another Sample:
if (RT == JFileChooser.APPROVE_OPTION){
//do your thing here for Yes or Ok button
} else if (RT == JFileChooser.CANCEL_OPTION){
//here is for Cancel or No button
}