Setting the close button operation for the frame in Java
class that
uses the windowClosing() method for receiving the
WindowEvent.... This
is an abstract class used for receiving window events.
windowClosing() :
This is the windowClosing() method of the WindowAdapter
class invoked when
square - Java Beginners
();
sqFrame.addWindowListener(new WindowAdapter(){
public void windowClosing
JFrame Close Box
java.awt.event.WindowAdapter() {
public void windowClosing(WindowEvent winEvt... windowClosing(java.awt.event.WindowEvent e) {
if (openWindows == 1... windowClosing(WindowEvent e)
void windowDeactivated(WindowEvent e)
void
mouseListeners
mouseListeners i am writing mouselestener program like thise
import java.awt.*;
import java.awt.event.*;
class WindowClosing3 extends WindowAdapter
{
public void windowClosing(WindowEvent we