Esempio n. 1
0
  public boolean ertad() {
    int t = -10000;
    try {
      t = Integer.parseInt(tf.getText());
    } catch (Exception e) {
      return false;
    }

    if (t <= 100 && t >= -100) {
      root.setState(t);
      root.getvalue(); // notifyme();
      return true;
    }
    return false;
  }