if (minValue != null && money.compareTo(minValue) < 0) { errorMessage = MessageFormat.format(SwingSwingBundle.getString("MONEY VALUE MUST BE_>= {0}"), minValue); else if (maxValue != null && money.compareTo(maxValue) > 0) { errorMessage = MessageFormat.format(SwingSwingBundle.getString("MONEY VALUE MUST BE <= {0}"), maxValue);