You know how, in VB, you can cancel the closing of a window by using the Form_Unload event and setting Cancel = True. How could I accomplish the same thing using a JFrame?
Thanks
:)
Printable View
You know how, in VB, you can cancel the closing of a window by using the Form_Unload event and setting Cancel = True. How could I accomplish the same thing using a JFrame?
Thanks
:)
This will stop the window closing. Use it when you've extended a JFrame.
If you haven't extended a JFrame useCode:addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
}
});
Code:frameName.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
}
});