stevesmithx
04-01-2008, 05:49 AM
Hi all,
I have a question in Java.
I have something like this.
1st program:
Class A extends javax.swing.JFrame{
//Code here
new B().setVisible(true);
}
2nd Program:
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..
I have a question in Java.
I have something like this.
1st program:
Class A extends javax.swing.JFrame{
//Code here
new B().setVisible(true);
}
2nd Program:
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..