Package javax.swing.event

Examples of javax.swing.event.InternalFrameListener


     *     void addInternalFrameListener(InternalFrameListener)
     *     removeInternalFrameListener(InternalFrameListener)
     *     InternalFrameListener[] getInternalFrameListeners()
     */
    public void testAddRemoveGetInternalFrameListener() {
        InternalFrameListener l = new MyInternalFrameListener();
        frame.addInternalFrameListener(l);
        InternalFrameListener[] listeners = frame.getInternalFrameListeners();
        assertTrue("listener was added", contains(listeners, l));
        frame.removeInternalFrameListener(l);
        listeners = frame.getInternalFrameListeners();
View Full Code Here


        JInternalFrame internalFrame = pane.createInternalFrame( contentPane,
                                                                 "xxx title" );
        internalFrame.setVisible( true );
        pane.show();
        internalFrame.addInternalFrameListener( new InternalFrameListener() {

            public void internalFrameOpened(InternalFrameEvent e) {
            }

            public void internalFrameIconified(InternalFrameEvent e) {
View Full Code Here

        JInternalFrame internalFrame = pane.createInternalFrame( contentPane,
                                                                 "xxx title" );
        internalFrame.setVisible( true );
        pane.show();
        internalFrame.addInternalFrameListener( new InternalFrameListener() {

            public void internalFrameOpened(InternalFrameEvent e) {
            }

            public void internalFrameIconified(InternalFrameEvent e) {
View Full Code Here

        JInternalFrame internalFrame = pane.createInternalFrame( contentPane,
                                                                 "xxx title" );
        internalFrame.setVisible( true );
        pane.show();
        internalFrame.addInternalFrameListener( new InternalFrameListener() {

            public void internalFrameOpened(InternalFrameEvent e) {
            }

            public void internalFrameIconified(InternalFrameEvent e) {
View Full Code Here

                    } catch (PropertyVetoException ex) {
                        log.warn("", ex);
                    }
                }
            });
            this.frame.addInternalFrameListener(new InternalFrameListener() {
                public void internalFrameActivated(InternalFrameEvent event) {
                    FrameWrapper.this.setBackground(Color.WHITE);
                }

                public void internalFrameClosed(InternalFrameEvent event) {
View Full Code Here

            if (listeners[i] == InternalFrameListener.class) {
                if (e == null) {
                    e = new InternalFrameEvent(this, id);
                }

                InternalFrameListener l = (InternalFrameListener)listeners[i + 1];
                switch (id) {
                case InternalFrameEvent.INTERNAL_FRAME_ACTIVATED:
                    l.internalFrameActivated(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_DEACTIVATED:
                    l.internalFrameDeactivated(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_ICONIFIED:
                    l.internalFrameIconified(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_DEICONIFIED:
                    l.internalFrameDeiconified(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_CLOSING:
                    l.internalFrameClosing(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_OPENED:
                    l.internalFrameOpened(e);
                    break;

                case InternalFrameEvent.INTERNAL_FRAME_CLOSED:
                    l.internalFrameClosed(e);
                    break;
                }
            }
        }
    }
View Full Code Here

    final VisPlugin thisPlugin = this;

    // Close via gui
    setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
    // Detect frame events
    addInternalFrameListener(new InternalFrameListener() {
      public void internalFrameClosing(InternalFrameEvent e) {
        gui.removePlugin(thisPlugin, true);
      }
      public void internalFrameClosed(InternalFrameEvent e) {
        // NOP
View Full Code Here

     *     void addInternalFrameListener(InternalFrameListener)
     *     removeInternalFrameListener(InternalFrameListener)
     *     InternalFrameListener[] getInternalFrameListeners()
     */
    public void testAddRemoveGetInternalFrameListener() {
        InternalFrameListener l = new MyInternalFrameListener();
        frame.addInternalFrameListener(l);
        InternalFrameListener[] listeners = frame.getInternalFrameListeners();
        assertTrue("listener was added", contains(listeners, l));
        frame.removeInternalFrameListener(l);
        listeners = frame.getInternalFrameListeners();
View Full Code Here

public class GamePane extends MagePane {

    /** Creates new form GamePane */
    public GamePane() {
        initComponents();
    addInternalFrameListener(new InternalFrameListener()
    {

      @Override
      public void internalFrameOpened(InternalFrameEvent e) {  }

View Full Code Here

    getContentPane().add(jsp);
    setLocation(60, 60);
    setSize(300, 200);
    aDeskTop.add(this);
   
    ifListener = new InternalFrameListener() {
      public void internalFrameActivated(InternalFrameEvent zevt) {
        moveToFront();
      }
     
      public void internalFrameOpened(InternalFrameEvent zevt) {
View Full Code Here

TOP

Related Classes of javax.swing.event.InternalFrameListener

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.