Package javax.swing.event

Examples of javax.swing.event.InternalFrameAdapter


  setLocation(50, 50);
  setVisible(true);
  mplayer = player;
  mplayer.addControllerListener((ControllerListener) this);
  mplayer.realize();
  addInternalFrameListener( new InternalFrameAdapter() {
      public void internalFrameClosing(InternalFrameEvent ife) {
    mplayer.close();
      }
  } );
       
View Full Code Here



  void buttonSparePartsCat_actionPerformed(ActionEvent e) {
    if (frame==null) {
      frame = new SparePartsCatalogueFrame(true);
      frame.addInternalFrameListener(new InternalFrameAdapter() {

        public void internalFrameClosed(InternalFrameEvent e) {
          frame = null;
        }
View Full Code Here

      getContentPane().add("Center", c);
      pack();
      d.add(this, JDesktopPane.MODAL_LAYER);
      d.moveToFront(this);
      setVisible(true);
      addInternalFrameListener(new InternalFrameAdapter() {
        public void internalFrameClosing(InternalFrameEvent e) {
          setVisible(false);
          tb.dock();
          dispose();
        }
View Full Code Here

  private String[] imageFilenames = { "bronze_bubbles.jpg", "smoky_dreams.jpg", "watchers2.jpg", "woven.jpg" };
  private JButton enterBtn;

  public WelcomeInternalFrame() {
    addInternalFrameListener(new InternalFrameAdapter() {
      @Override
      public void internalFrameActivated(InternalFrameEvent e) {
        enterBtn.requestFocus();
      }
    });
View Full Code Here

        int x = (int) (Math.random() * screenDimension.width) - internalFrame2.getWidth();
        x = Math.max(x,internalFrame1.getWidth());
        int y = (int) (Math.random() * screenDimension.height- internalFrame2.getHeight();
        y = Math.max(y,internalFrame1.getHeight());
        internalFrame2.setLocation(x,y);
        internalFrame2.addInternalFrameListener(new InternalFrameAdapter() {
          public void internalFrameClosed(InternalFrameEvent e) {
            removeInternalFrame(internalFrame2);
          }
        });
        openInternalFrame(internalFrame2);
View Full Code Here

    addInternalFrameListener(
      new InternalFrameOpenedAdapter(
        this,
        lastNameField));
    addInternalFrameListener(new InternalFrameAdapter() {
      public void internalFrameActivated(InternalFrameEvent e) {
                            formInternalFrameActivated();
      }

                        public void internalFrameOpened(javax.swing.event.InternalFrameEvent evt) {
View Full Code Here

            final FPSAnimator animator = new GfrFPSAnimatorPlgViewerVolShps3dAni(canvas);
            // Create the top-level container
            ifr.getContentPane().add(canvas);
           
            ifr.addInternalFrameListener(new InternalFrameAdapter()
            {
               @Override
               public void internalFrameClosing(InternalFrameEvent e)
               {
                  // Use a dedicate thread to run the stop() to ensure that the
View Full Code Here

        initInternalFrameListeners();
    }

    protected void initInternalFrameListeners() {
        internalFrame.addInternalFrameListener(new InternalFrameAdapter() {
            public void internalFrameClosed(InternalFrameEvent e) {
                contentManager.removeContent(content);
            }
        });
View Full Code Here

                contentY = contentX = 10;
            }

            internalFrame.setBounds(contentX, contentY, 320, 200);

            internalFrame.addInternalFrameListener(new InternalFrameAdapter() {
                public void internalFrameClosed(InternalFrameEvent e) {
                    try {
                        Content content = contentManager.getContentByComponent(e.getInternalFrame().getContentPane().getComponent(0));
                        fireContentUIRemoving(getContentUI(content));
                        contentManager.removeContent(content);
View Full Code Here

            contentY = contentX = 10;
        }

        internalFrame.setBounds(contentX, contentY, 320, 200);

        internalFrame.addInternalFrameListener(new InternalFrameAdapter() {
            public void internalFrameClosed(InternalFrameEvent e) {
                contentManager.removeContent(
                        contentManager.getContent(e.getInternalFrame().getContentPane().getComponent(0))
                );
            }
View Full Code Here

TOP

Related Classes of javax.swing.event.InternalFrameAdapter

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.