I have created one GUI.java file
inside it i have written a code of GUI,which includes filechooser and button.
I also have created logic.java file, inside it i have write my logic for performing some operation.
On the click event of button, i want to pass a path chosen by filechooser to the logic.java file.
I also have created constructor of logic(String s) and pass that path inside it.
I ahve write
public void actionPerfomed(ActionEvent ae)
{
String ss = tf1.getText();//for taking input from filechooser
logic cc = new logic(ss);
}
but this doesn't work any more.means logic.java file can't be called.
please help me out, how can i call logic.java file with also passing argument of String got through filechooser.
Thanks