Logo Search packages:      
Sourcecode: fex version File versions  Download package

void fix::AppletFrame::initialize (  )  [inline, private]

initializes this

Definition at line 146 of file AppletFrame.java.

References getJContentPane(), getMainMenuBar(), resetAllGUIElements(), and fix::ErrorWindow::setMess().

Referenced by AppletFrame().

                                {
            this.setSize(500, 260);
            int x = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth() / 2;
            int y = (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight() / 2;
            x = x - this.getWidth() / 2;
            y = y - this.getHeight() / 2;
            this.setBounds(x, y, this.getWidth(), this.getHeight());
            this.setJMenuBar(getMainMenuBar());
            browser = new JFileChooser();
            homeDir = browser.getCurrentDirectory();
            this.setContentPane(getJContentPane());
            this.setTitle("F*IX");
            this.setVisible(true);
            this.setResizable(false);
            if (!host.startsWith("http://") && !host.startsWith("https://")) {
                  er.setMess("Server protocol has to be http or https.", null);
            }
            resetAllGUIElements();
            //this.setDefaultCloseOperation(EXIT_ON_CLOSE);
            
            this.addWindowListener(new WindowAdapter() {
              public void windowClosing(WindowEvent evt) {
                        if ((tempFile != null) && (tempFile.exists())) {
                              tempFile.delete();
                        }
              }
          });
      }


Generated by  Doxygen 1.6.0   Back to index