Examples of addWindowListener()


Examples of ae.java.awt.Window.addWindowListener()

        Window window = getComponentWindow(client);
        if (window == null) {
            return;
        }
        window.addComponentListener(this);
        window.addWindowListener(this);
        clientWindowListened = window;
    }

    private synchronized void removeClientWindowListeners() {
        clientWindowListened.removeComponentListener(this);
View Full Code Here

Examples of antlr.debug.misc.ASTFrame.addWindowListener()

            ASTFactory factory = new ASTFactory();
            AST r = factory.create(0,"AST ROOT");
            r.setFirstChild(t);
            final ASTFrame frame = new ASTFrame("Groovy AST", r);
            frame.setVisible(true);
            frame.addWindowListener(
                new WindowAdapter() {
                   public void windowClosing (WindowEvent e) {
                       frame.setVisible(false); // hide the Frame
                       frame.dispose();
                       System.exit(0);
View Full Code Here

Examples of bluffinmuffin.gui.game.JFrameTable.addWindowListener()

    {
        JFrameTable gui = null;
        gui = new JFrameTable();
        final GameTCPClient tcpGame = m_server.joinTable(p_noPort, p_tableName, gui);
       
        gui.addWindowListener(new java.awt.event.WindowAdapter()
        {
            @Override
            public void windowClosing(WindowEvent winEvt)
            {
                eventLeaveTable(tcpGame);
View Full Code Here

Examples of ch.blackspirit.graphics.RealtimeCanvas.addWindowListener()

        }
      }, AWTEvent.KEY_EVENT_MASK);

    canvas.setVSync(false);
//    canvas.addWindowListener(WindowListener.EXIT_ON_CLOSE);
    canvas.addWindowListener(new WindowListener() {
      public void windowActivated() {}
      public void windowClosing() {canvas.dispose(); System.exit(0); }
        public void windowClosed() {}
      public void windowDeactivated() {}
      public void windowDeiconified() {}
View Full Code Here

Examples of com.alee.extended.window.WebPopOver.addWindowListener()

                    public void actionPerformed ( final ActionEvent e )
                    {
                        closePopOverDialogs ();
                    }
                } ).setUndecorated ( true ), BorderLayout.EAST );
                popOver.addWindowListener ( new WindowAdapter ()
                {
                    @Override
                    public void windowClosed ( final WindowEvent e )
                    {
                        toClose.remove ( popOver );
View Full Code Here

Examples of com.alee.extended.window.WebProgressDialog.addWindowListener()

        // Base content pane
        final WebPanel contentPane = new WebPanel ();

        // Exampler loading dialog
        final WebProgressDialog progress = createProgressDialog ();
        progress.addWindowListener ( new WindowAdapter ()
        {
            @Override
            public void windowClosed ( final WindowEvent e )
            {
                // Stop loading demo on dialog close
View Full Code Here

Examples of com.extjs.gxt.ui.client.widget.Window.addWindowListener()

    window.setPlain(true);
    window.setModal(true);
    window.setBlinkModal(true);
    window.setHeading("Hello Window");
    window.setLayout(new FitLayout());
    window.addWindowListener(new WindowListener() {
      @Override
      public void windowHide(WindowEvent we) {
        Button open = we.getWindow().getData("open");
        open.focus();
      }
View Full Code Here

Examples of com.github.couchapptakeout.ui.EmbeddedBrowser.addWindowListener()



    private void showEmbedded(String applicationUrl) {
        final EmbeddedBrowser browser = new EmbeddedBrowser();
        browser.addWindowListener(new WindowAdapter() {
            @Override
            public void windowClosing(WindowEvent e) {
                int value = JOptionPane.showConfirmDialog(browser, "Are you sure you want to exit?", appName, JOptionPane.YES_NO_OPTION);
                if (value == JOptionPane.YES_OPTION) {
                    browser.dispose();
View Full Code Here

Examples of com.ibm.richtext.awtui.TextFrame.addWindowListener()

    }
   
    public static void main(String[] args) {
       
        TextFrame f = new TextFrame();
        f.addWindowListener(new WindowAdapter() {
            public void windowClosing(WindowEvent e) {
                System.exit(0);
            }
        });
        f.setSize(400, 300);
View Full Code Here

Examples of com.jbidwatcher.ui.util.JBidFrame.addWindowListener()

    contentPane.add(subPanel, BorderLayout.SOUTH);
    w.pack();
    w.setResizable(true);
    w.setDefaultCloseOperation(WindowConstants.HIDE_ON_CLOSE);

    w.addWindowListener(new WindowAdapter() {
      public void windowClosing(WindowEvent we) {
        savePosition();
        SearchManager.getInstance().saveSearches();
      }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. 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.