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

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

This method initializes this

Definition at line 81 of file ErrorWindow.java.

References getJContentPane().

Referenced by ErrorWindow().

                                {
            messLabel = new JLabel(mess);
            FontMetrics fm = getFontMetrics(messLabel.getFont());
            int width = fm.stringWidth(mess) + 40;
            int height = 100;
            int x = (int) Toolkit.getDefaultToolkit().getScreenSize().getWidth()
                        / 2 - width / 2;
            int y = (int) Toolkit.getDefaultToolkit().getScreenSize().getHeight()
                        / 2 - height / 2;
            this.setBounds(x, y, width, height);
            this.setContentPane(getJContentPane());
            this.setFocusable(true);
            this.setTitle("Error");
      }


Generated by  Doxygen 1.6.0   Back to index