Is there a simple way to format variables on a GUI with spaces (or commas) between so its easier to read.
Example:
int x = 12000000;
JLabel.setText(x);
which outputs 1200000
, however I am trying to achieve on of the following.
1 200 000
1,200,000