Need to close only the new popup window

Could anyone please help me with this.

FromMain.java, the main user interface pops up, on clickingvf2vpExebut button,vf2vpExe.java's user interface pops up. After I process thevf2vpExe.java user interface and close it even myMain.java user interface closes.

But on clicking theexitbut invf2vpExe.java, I need to close only thevf2vpExe.java user interface and notMain.java user interface also.

My code is:

Main.java

privatevoid vf2vpExebutActionPerformed(java.awt.event.ActionEvent evt)

{

try

{

vf2vpExe vf=new vf2vpExe();

vf.mainclass();

}

catch(Exception e)

{

}

}

vf2vpExe.java

privatevoid exitbutActionPerformed(java.awt.event.ActionEvent evt)

{

System.exit(0);

}

[1336 byte] By [sony_tja] at [2007-11-26 13:58:50]
# 1
Please ignore this topic. I need to post this in New to Java
sony_tja at 2007-7-8 1:39:22 > top of Java-index,Application & Integration Servers,Application Servers...