Пример #1
0
  /**
   * Entering in ssl module
   *
   * @param e Event
   */
  public void SSL_mouseReleased(MouseEvent e) {

    buttonPressed = 0;
    Experiments frame = new Experiments(parent, Experiments.SSL);
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }
    frame.setLocation(
        (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    this.setVisible(false);

    frame.activateUpperMenu_principals();
  }
Пример #2
0
  /**
   * Entering in LQD module
   *
   * @param e Event
   */
  public void lqd_mouseReleased(MouseEvent e) {

    buttonPressed = 0;

    Experiments frame = new Experiments(parent, Experiments.LQD);

    // LUEGO SERA LA MIA
    // frame.objType = Experiments.INVESTIGATIONLQD;
    Dimension screenSize = Toolkit.getDefaultToolkit().getScreenSize();
    Dimension frameSize = frame.getSize();
    if (frameSize.height > screenSize.height) {
      frameSize.height = screenSize.height;
    }
    if (frameSize.width > screenSize.width) {
      frameSize.width = screenSize.width;
    }
    frame.setLocation(
        (screenSize.width - frameSize.width) / 2, (screenSize.height - frameSize.height) / 2);
    this.setVisible(false);
  }