function call
hi guys i hav made this code
publicclass fileopen2implements ActionListener
{
publicvoid actionPerformed(ActionEvent e)
{
System.out.println("m in actionlistener");
JFileChooser c =new JFileChooser();
int rVal3 = c.showOpenDialog(fileviewerframe.this);
if(rVal3==JFileChooser.APPROVE_OPTION)
{
encryptedfilename=c.getSelectedFile().getPath();
System.out.println("now i am choosing file");
keyfile kf=new keyfile();
System.out.println("i hav pased call 2 keyfile");
}
}
private String encryptedfilename;
}
}
publicclass keyfile
{
publicvoid keyfile(){
System.out.println("m in keyfile");
}
what i intend to do is when a person chooses a file a new file dialog appears so that he cooses another file ie the key file
but the function is just not called
can anyone suggest why and how can i do such thing possible

