Fix minor deprecation-issues

This commit is contained in:
DaCool
2021-11-19 16:05:55 +00:00
committed by Sheepit Renderfarm
parent c38585a5b9
commit d41d77cda7
3 changed files with 3 additions and 3 deletions

View File

@@ -417,7 +417,7 @@ public class Settings implements Activity {
}
Hashtable<Integer, JLabel> labelTable = new Hashtable<Integer, JLabel>();
for (int g = 0; g < all_ram; g += step) {
labelTable.put(new Integer(g), new JLabel("" + (g / 1000000)));
labelTable.put(g, new JLabel("" + (g / 1000000)));
}
ram.setMajorTickSpacing(step);
ram.setLabelTable(labelTable);