Package java.awt.event

Examples of java.awt.event.WindowAdapter


                frame.getContentPane().add(vis, BorderLayout.CENTER);
            }

            if( i == master ) {
                frame.setTitle("Master Player");
          frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
      System.exit(0);
        }
    });
View Full Code Here


        frame = new JFrame( locator.toString() );

        //  Allow window to close
        frame.addWindowListener(
            new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    System.exit(0);
                }
            }
        );
View Full Code Here

  try {
      UIManager.setLookAndFeel("javax.swing.plaf.metal.MetalLookAndFeel");
  } catch (Exception e) {
      System.err.println("Could not initialize java.awt Metal lnf");
  }
  addWindowListener( new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
    System.exit(0);
      }
  } );
View Full Code Here

  // Start the processor.
  p.start();

  setVisible(true);

  addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
    p.close();
    System.exit(0);
      }
  });
View Full Code Here

    public static void main(String [] args) {
  JFrame f = new JFrame("MiniME - Mini Media Editor");
  f.getContentPane().add(new MiniME(args));
  f.setSize(800, 420);
  f.addWindowListener( new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
    System.exit(0);
      }
  } );
  f.setVisible(true);
View Full Code Here

  mixer.addContainerListener(
    new SimpleMixerListener(f));
  f.setJMenuBar(mixer.getMenuBar());
  f.getContentPane().add(mixer);
  f.setResizable(false);
  f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent e) {
        System.exit(0);
       }
  });
  f.pack();
View Full Code Here

        String media = args[0];

  JFrame f = new JFrame(media);

  f.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent event) {
     System.exit(0);
      }
  });
View Full Code Here

        addListeners();
        pack();
        setLocationRelativeTo(null);

        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                okHandler();
            }
        });
View Full Code Here

                    }
                }
            });

        addWindowListener(
            new WindowAdapter() {
                public void windowClosing(WindowEvent e) {
                    cancelButtonHandler();
                }
            });
    }
View Full Code Here

    /**
     * Sets up the components for this container
     */
    private void initComponents() {
        addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                ExitingEvent event = new ExitingEvent(buddyList);
                PluginChain.fireEvent(event);
                if (event.getExit()) {
                    buddyList.signOff();
View Full Code Here

TOP

Related Classes of java.awt.event.WindowAdapter

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.