Use var-args, autoboxing.

This commit is contained in:
Ray Greenwell
2012-03-07 22:21:06 +00:00
parent 66f4c878e2
commit 7456d77bbe
@@ -109,8 +109,7 @@ public class StatusPanel extends JComponent
remstr += seconds; remstr += seconds;
} }
msg = get(msg); msg = get(msg);
String label = MessageFormat.format(msg, new Object[] { String label = MessageFormat.format(msg, percent, remstr);
new Integer(percent), remstr });
_newplab = new Label(label, _ifc.progressText, FONT); _newplab = new Label(label, _ifc.progressText, FONT);
if (_ifc.textShadow != null) { if (_ifc.textShadow != null) {
_newplab.setAlternateColor(_ifc.textShadow); _newplab.setAlternateColor(_ifc.textShadow);