I have one class in which i am calling another class's main1 method.
Thread t=new Thread(new Runnable() {
@Override
public void run() {
temp eqsj=new temp(null, null, false, false);
String[] arguments=jtextfield1.getText().toString().split(" ");
eqsj.main1(arguments);
JOptionPane.showMessageDialog(new JFrame(), "Report generated");
}
});
t.start();
That temp class implements runnable, so after main1 is called from above code, and it will execute run() method of temp class, which is running fine.
Problem is :: When run method gets completed, the application is getting terminated and not returning back where main1 is called and due to that it is not implementing the remaining lines of code which is:
JOptionPane.showMessageDialog(new JFrame(), "Report generated");