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

JFrame fix::AppletFrame::getInfoFrame (  )  [inline, private]

Initializes infoFrame

Returns:
javax.swing.JFrame

Definition at line 668 of file AppletFrame.java.

References getInfoPanel().

Referenced by actionPerformed().

                                    {
            if (infoFrame == null || !infoFrame.isVisible()) {
                  infoFrame = new JFrame();
                  infoFrame.setContentPane(getInfoPanel());
                  infoFrame.setTitle("Info");
                  infoFrame.setResizable(false);
                  infoFrame.setDefaultCloseOperation(JFrame.DISPOSE_ON_CLOSE);
                  infoFrame.setVisible(true);
                  int width = 350;
                  int height = 173;
                  int x = this.getBounds().x + this.getWidth() / 2 - width / 2;
                  int y = this.getBounds().y + this.getHeight() / 2 - height / 2;
                  infoFrame.setBounds(x, y, width, height);
                  infoFrame.setResizable(false);

            }
            return infoFrame;
      }


Generated by  Doxygen 1.6.0   Back to index