Package javax.swing

Examples of javax.swing.JFrame.dispose()


      weka.gui.LogPanel lp = new weka.gui.LogPanel();
      sp.setLog(lp);
      jf.getContentPane().add(lp, BorderLayout.SOUTH);
      jf.addWindowListener(new WindowAdapter() {
  public void windowClosing(WindowEvent e) {
    jf.dispose();
    System.exit(0);
  }
      });
      jf.pack();
      jf.setSize(800, 600);
View Full Code Here


    jf.setSize(800,600);
    jf.getContentPane().setLayout(new BorderLayout());
    jf.getContentPane().add(vis, BorderLayout.CENTER);
    jf.addWindowListener(new java.awt.event.WindowAdapter() {
        public void windowClosing(java.awt.event.WindowEvent e) {
    jf.dispose();
    m_framePoppedUp = false;
        }
      });
    jf.setVisible(true);
    m_popupFrame = jf;
View Full Code Here

    frame.addWindowListener(new WindowAdapter()
    {
      public void windowClosing(WindowEvent evt)
      {
        frame.dispose();
      }
    });
    textarea.setText(getFile(file));

  }
View Full Code Here

      frame.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent evt) {
          setup.broadcast(new SocketRequest());
          frame.setVisible(false);
          frame.dispose();
          System.exit(0);
        }
      });

      // add a menu bar
View Full Code Here

        file.addSeparator();
      }
      file.add(tmp = new JMenuItem("Exit"));
      tmp.addActionListener(new ActionListener() {
        public void actionPerformed(ActionEvent evt) {
          frame.dispose();
          System.exit(0);
        }
      });
      mb.add(file);
View Full Code Here

     
      final JFrame jf = new JFrame(name);
      jf.addWindowListener(new WindowAdapter() {
        public void windowClosing(WindowEvent e) {
          m_framedOutputMap.remove(jf.getTitle());
          jf.dispose();
        }
      });
      jf.setLayout(new BorderLayout());
      jf.add(tabbedPane, BorderLayout.CENTER);
      jf.pack();
View Full Code Here

             // find next usable plot

          if (closingFrameView != null)     {   // figure frame exists
           int len1 = allPlots[figId][0].length;
           int len2 = allPlots[figId].length;
           closingFrameView.dispose();
            for (int i=0; i<len2; i++)
                for (int j=0; j<len1; j++)
                    allPlots[figId][i][j] = null;
View Full Code Here

    status.setText(READY);
  }

  private void doExit() {
    JFrame frame = (JFrame) getTopLevelAncestor();
    frame.dispose();
  }

  private void doPathChanged() {
    status.setText(READY);
  }
View Full Code Here

         if (GlobalValues.interpreterTypeForPane == GlobalValues.EJMLMat)
          scalaExec.Interpreter.GlobalValues.globalInterpreter.interpret(GlobalValues.basicImportsEJMLScala);   // interpret the basic imports
     else
          scalaExec.Interpreter.GlobalValues.globalInterpreter.interpret(GlobalValues.basicImportsScala);   // interpret the basic imports
    
         initFrame.dispose();

          GlobalValues.editorPane.setText("");   // reset the text of the Scala Interpreter Pane
              // update the variable that keeps the Scala Interpreter Pane interpreter
          GlobalValues.globalInterpreterPane.resetInterpreter(scalaExec.Interpreter.GlobalValues.globalInterpreter);  
         
View Full Code Here

         System.out.println("#ScalaSciClasses =  "+scalaSciClasses+", # numaliClasses = "+libsNumalScalaSciClasses +
                 ", # ejmlClasses = "+ libsEJMLScalaSciClasses+", # MTJColtSGTClasses ="+libsMTJScalaSciClasses+
                 ", # ApacheCommonMathsClasses ="+ libsApacheCommonsScalaSciClasses);
        
         progressFrame.dispose();
             
        
       }
        
             catch (IOException ioEx) {
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.