Package java.awt.event

Examples of java.awt.event.WindowListener


        super(serverMonitor, busId, service);
        updateTitle(null);

        removeWindowListener(defaultWindowListener);

        addWindowListener(new WindowListener() {
            public void windowOpened(WindowEvent e) {
            }

            public void windowClosing(WindowEvent e) {
            }
View Full Code Here


        Point point = mainMonitorGUI.getLocation();
        setLocation(point.x + 20, point.y + 20);
        setSize(500, 300);

        addWindowListener(new WindowListener() {
            public void windowOpened(WindowEvent e) {
            }

            public void windowClosing(WindowEvent e) {
            }
View Full Code Here

        frame.setContentPane(main.getMyContainer());
       
        // VENTANA
        frame.addWindowListener(
           
            new WindowListener(){

          public void windowActivated(WindowEvent arg0) {
          }

          public void windowClosed(WindowEvent arg0) {
View Full Code Here

    public TriggersDialog(final String title, final InteractiveClient client) {
        super(title);
        this.client = client;
        this.setIconImage(InteractiveClient.getExistIcon(getClass()).getImage());   
        //capture the frame's close event
        final WindowListener windowListener = new WindowAdapter() {
            @Override
            public void windowClosing(final WindowEvent e) {
                saveChanges();
         
                TriggersDialog.this.setVisible(false);
View Full Code Here

  {
    super(title);
    this.client = client;
        this.setIconImage(InteractiveClient.getExistIcon(getClass()).getImage());   
    //capture the frame's close event
    final WindowListener windowListener = new WindowAdapter()
    {
      public void windowClosing (WindowEvent e)
      {
                saveChanges(true);
       
View Full Code Here

           
        });
       
        JFrame f = new JFrame();
        f.add( p );
        f.addWindowListener( new WindowListener() {
            public void windowOpened(WindowEvent windowEvent) {
            }

            public void windowClosing(WindowEvent windowEvent) {
                System.exit( 0 );
View Full Code Here

      }
  } else {
      if (frame == null) {
    frame = new JFrame(getTitle(), gc);

    WindowListener l = new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
      if (destroyOnExit) {
          destroy();
          return;
      }
View Full Code Here

                }
            }
        });

        // set the window listener
        dialog.addWindowListener(new WindowListener() {
            public void windowClosing(WindowEvent e) {
                close();
            }

            public void windowActivated(WindowEvent e) {
View Full Code Here

  private void initGUI() {
    try {
      {
        setTitle("Configure Map");
        setResizable(false);
        this.addWindowListener(new WindowListener() {
          public void windowOpened(WindowEvent e) {
            System.out.println("window opened");
          }

          public void windowClosing(WindowEvent e) {
View Full Code Here

        getContentPane().add(nonStatusPane, BorderLayout.CENTER);
       
        Component[] cpss = {viewButton, expandButton};
        mainTree.addTreeSelectionListener(new SelectionManager(cpss));
       
        addWindowListener(new WindowListener() {
            public void windowActivated(WindowEvent e) {}
            public void windowClosed(WindowEvent e) {
                setVisible(false);
                if(exit) {
                    System.exit(0);
View Full Code Here

TOP

Related Classes of java.awt.event.WindowListener

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.