Will new instance of JVM or reflection help in this case
I had a problem that I posted before but got no clear solution How to prevent JFrame from closing . So I am posting a SSCCE may be this might help in better understanding the problem being faced package myApp; import java.lang.reflect.InvocationTargetException; import java.lang.reflect.Method; import javax.swing.JFrame; import App2.Applic2; public class MYApp { @SuppressWarnings({ "unchecked", "rawtypes" }) public static void main(String arg[]){ JFrame f = new JFrame(); f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); f.setTitle("Application frame 1"); f.setSize(200,200); f.setVisible(true);