예제 #1
0
  /*
   * FrameSize Control
   */
  public void validate() {
    Rectangle rect = getBounds();

    super.validate();

    int width = ViewSettings.getTokuteiLoginFrameWidth();
    int height = ViewSettings.getTokuteiLoginFrameHeight();

    if (width > rect.width || height > rect.height) {
      setBounds(rect.x, rect.y, width, height);
    }
  }
예제 #2
0
 /**
  * This method initializes this
  *
  * @return void
  */
 private void initialize() {
   // edit s.inoue 2009/12/04
   //		this.setTitle(ViewSettings.getTokuteFrameTitleWithKikanInfomation());
   //		Dimension size = ViewSettings.getTokuteiLoginFrameSize();
   //		this.setSize(size);
   //		this.setMinimumSize(size);
   //		this.setPreferredSize(size);
   //		this.setLocationRelativeTo( null );
   //		this.setVisible(true);
   //		this.setContentPane(getJPanel_Content());
   this.setContentPane(getJPanel_Content());
   this.setTitle(ViewSettings.getTokuteFrameTitleWithKikanInfomation());
   this.setSize(ViewSettings.getAdminLoginFrameSize());
   this.setLocationRelativeTo(null);
   this.setVisible(true);
 }