skillcalculator: Add comma separators to experience fields

This commit is contained in:
RobertCurll
2020-05-13 21:14:50 -07:00
committed by Jordan Atwood
parent 473d7f45c3
commit bb6c2d6381

View File

@@ -367,10 +367,12 @@ class SkillCalculator extends JPanel
targetXP = Experience.getXpForLevel(targetLevel);
}
final String cXP = String.format("%,d", currentXP);
final String tXP = String.format("%,d", targetXP);
uiInput.setCurrentLevelInput(currentLevel);
uiInput.setCurrentXPInput(currentXP);
uiInput.setCurrentXPInput(cXP);
uiInput.setTargetLevelInput(targetLevel);
uiInput.setTargetXPInput(targetXP);
uiInput.setTargetXPInput(tXP);
calculate();
}