I wanted to pass the exact instance that was created in the main method to the new Executor which has a MPGui as a parameter. Is this possible?
public class MPGui {
public MPGui() {
//initialize GUI
}
public class ExecuteListener implements ActionListener {
public void actionPerformed(ActionEvent e) {
Executor execu = new Executor(MLA, /*the MPGUI() instance */);
execu.execute();
}
}
public static void main(String[] args) {
MPGui a = new MPGui();
}
}