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