Package java.awt.event

Examples of java.awt.event.WindowEvent


            log(LogLevel.ERROR, ex);
        }
    }//GEN-LAST:event_onPopUpOpen

    private void miCloseActionPerformed(java.awt.event.ActionEvent evt) {//GEN-FIRST:event_miCloseActionPerformed
        dispatchEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING));
    }//GEN-LAST:event_miCloseActionPerformed
View Full Code Here


    public void handleEvent (Event e) {
      switch (e.type) {
        case SWT.Deiconify:
          EventQueue.invokeLater(new Runnable () {
            public void run () {
              frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_DEICONIFIED));
            }
          });
          break;
        case SWT.Iconify:
          EventQueue.invokeLater(new Runnable () {
            public void run () {
              frame.dispatchEvent (new WindowEvent (frame, WindowEvent.WINDOW_ICONIFIED));
            }
          });
          break;
      }
    }
View Full Code Here

      return _clientProperties.get(key);
   }

   public void fireWidgetClosing()
   {
      _eventCaster.fireWidgetClosing(new WidgetEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING), _widget));
   }
View Full Code Here

      _eventCaster.fireWidgetClosing(new WidgetEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSING), _widget));
   }

   public void fireWidgetClosed()
   {
      _eventCaster.fireWidgetClosed(new WidgetEvent(new WindowEvent(this, WindowEvent.WINDOW_CLOSED), _widget));
   }
View Full Code Here

    /**
     * Close the window.
     */
    private void doParentDefaultCloseAction() {
        ((Window) rootParent).dispatchEvent(new WindowEvent((Window) rootParent, WindowEvent.WINDOW_CLOSING));
    }
View Full Code Here

    }

    public void actionPerformed( ActionEvent e )
    {
      saveOnExit = true;
      WindowEvent windowEvent = new WindowEvent( frame, WindowEvent.WINDOW_CLOSING );
      frame.dispatchEvent( windowEvent );
    }
View Full Code Here

    }

    public void actionPerformed( ActionEvent e )
    {
      saveOnExit = true;
      WindowEvent windowEvent = new WindowEvent( frame, WindowEvent.WINDOW_CLOSING );
      frame.dispatchEvent( windowEvent );
    }
View Full Code Here

    }

    public void actionPerformed( ActionEvent e )
    {
      saveOnExit = false;
      WindowEvent windowEvent = new WindowEvent( frame, WindowEvent.WINDOW_CLOSING );
      frame.dispatchEvent( windowEvent );
    }
View Full Code Here

    public void actionPerformed(ActionEvent event) {
      Object src = event.getSource();
      if (src == revert) {
        getProject().doAction(LogisimFileActions.revertDefaults());
      } else if (src == close) {
        WindowEvent e = new WindowEvent(OptionsFrame.this,
            WindowEvent.WINDOW_CLOSING);
        OptionsFrame.this.processWindowEvent(e);
      }
    }
View Full Code Here

    JMenu fileMenu = new JMenu("File");

    JMenuItem exitMenuItem = new JMenuItem("Exit");
    exitMenuItem.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        GUI.this.processWindowEvent(new WindowEvent(GUI.this, WindowEvent.WINDOW_CLOSING));
      }
    });

    fileMenu.add(exitMenuItem);
View Full Code Here

TOP

Related Classes of java.awt.event.WindowEvent

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.