private void checkBounds(int selectedIndex){
  if (selectedIndex == 0) {
    decayAmount.setEnabled(false);
    decayFraction.setEnabled(true);
  }
 else {
    decayAmount.setEnabled(true);
    decayFraction.setEnabled(false);
  }
}

private void checkBounds ( int selectedIndex ) { if ( selectedIndex == 0 ) { decayAmount . setEnabled ( false ) ; decayFraction . setEnabled ( true ) ; } else { decayAmount . setEnabled ( true ) ; decayFraction . setEnabled ( false ) ; } }
checks the relative absolute bounds .
