if (thd.getDesc().indexOf("blocked") < 0) { toHit1 = thd.getValue() + " = ";
if (thd.getValue() != ToHitData.IMPOSSIBLE) { toHit1 = thd.getValue() + " = ";
   public void setText() {      int h1 = 1, h2 = 1;      try {         h1 = Integer.parseInt( height1.getText() );      } catch (NumberFormatException e) {      }      try {         h2 = Integer.parseInt( height2.getText() );      } catch (NumberFormatException e) {      }      String toHit1 = "", toHit2 = "";      ToHitData thd;      if (flip) {         thd = LosEffects.calculateLos(client.game, buildAttackInfo(start, end, h1, h2)).losModifiers(client.game);      } else {		 thd = LosEffects.calculateLos(client.game, buildAttackInfo(end, start, h2, h1)).losModifiers(client.game);      }      if (thd.getDesc().indexOf("blocked") < 0) {         toHit1 = thd.getValue() + " = ";      }      toHit1 += thd.getDesc();	  if (flip) {		 thd = LosEffects.calculateLos(client.game, buildAttackInfo(end, start, h2, h1)).losModifiers(client.game);	  } else {		 thd = LosEffects.calculateLos(client.game, buildAttackInfo(start, end, h1, h2)).losModifiers(client.game);	  }      if (thd.getDesc().indexOf("blocked") < 0) {         toHit2 = thd.getValue() + " = ";      }      toHit2 += thd.getDesc();        tf_start.setText(start.toString());      tf_end.setText(end.toString());      tf_distance.setText("" + distance);      tf_los1.setText(toHit1 );      //      tf_los1.setCaretPosition(0);      tf_los2.setText(toHit2 );      //      tf_los2.setCaretPosition(0);   }