Package java.awt.event

Examples of java.awt.event.WindowListener


        public UpdateCategoryDialog(ApplicationMainForm parent, String title, Category category) {
                super(parent, title, new Dimension(400, 250));
                this.mainForm = parent;
                this.category = category;
                WindowListener l = new WindowAdapter() {

                        @Override
                        public void windowClosing(WindowEvent e) {
                                dispose();
                                setVisible(false);
View Full Code Here


            // Run this in the Swing Event Thread.
            Runnable doActions = new Runnable() {
                public void run() {
                    try {
                        JFrame jFrame = new JFrame("JTextAreaExec Example");
                        WindowListener windowListener = new WindowAdapter() {
                            public void windowClosing(WindowEvent e) {
                                System.exit(0);
                            }
                        };
View Full Code Here

            // Run this in the Swing Event Thread.
            Runnable doActions = new Runnable() {
                public void run() {
                    try {
                        JFrame jFrame = new JFrame("ShellTextArea Example");
                        WindowListener windowListener = new WindowAdapter() {
                            public void windowClosing(WindowEvent e) {
                                System.exit(0);
                            }
                        };
View Full Code Here

        setVisible(true);
    }

    public WindowListener getWindowListener()
    {
        WindowListener listener = new WindowListener()
        {

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

        setVisible(true);
    }

    public WindowListener getWindowListener()
    {
        WindowListener listener = new WindowListener()
        {

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

      mc = new ModelChecker(model, model, model, model, false);
      pw.setModelChecker(mc);
      //pw.setToJMVAConversion(false);
      pw.updateProblemsShown(false);
      if (!mc.isEverythingOkNormal()) {
        WindowListener wl = pw.getWindowListeners()[0];
        pw.show();
      } else {
        pw.setVisible(false);
        launchSimulation();
      }
View Full Code Here

    jfrm.add(submit);   
    jfrm.setVisible(true);
   
    /** Intercept Window Closure -- Confirm and gracefully exit */
    jfrm.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    jfrm.addWindowListener(new WindowListener(){
      public void windowActivated(WindowEvent arg0) {}
      public void windowClosed(WindowEvent arg0) {
        System.exit(0);
      }
      public void windowClosing(WindowEvent arg0) {
View Full Code Here

    constraints.anchor = constraints.NORTH;
    jfrm.getContentPane().add(gameboardPane, constraints);

    /** Intercept Window Closure -- Confirm and gracefully exit */
    jfrm.setDefaultCloseOperation(WindowConstants.DO_NOTHING_ON_CLOSE);
    jfrm.addWindowListener(new WindowListener(){
      public void windowActivated(WindowEvent arg0) {}
      public void windowClosed(WindowEvent arg0) {
        System.exit(0);
      }
      public void windowClosing(WindowEvent arg0) {
View Full Code Here

              @Override
              public void preferencesUpdated() {
                update();
              }
            });
        dialog.addWindowListener(new WindowListener() {
          @Override
          public void windowActivated(WindowEvent e) {
          }

          @Override
View Full Code Here

    return board.highlightField(field, status);
  }
  private void initListener() {
    //WindowListener hinzufügen, um darauf reagieren zu können,
    //wenn der Nutzer das Fenster versucht zu schließen.
    this.addWindowListener(new WindowListener() {
      @Override
      public void windowActivated(WindowEvent e) {}
      @Override
      public void windowClosed(WindowEvent e) {}
      @Override
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.