Hi all,
I have a question in Java.
I have something like this.
1st program:
Code:
Class A extends javax.swing.JFrame{
//Code here
new B().setVisible(true);
}
2nd Program:
Code:
Class B extends javax.swing.JFrame{
//Code here

}
The problem is when I run the 1st program and close the Window of second program(which is called as new B() in pgm 1) , both windows close .
However I want the 1st window to remain there.
How can i do this?
please help..