0
    private JLabel score;
 
    private final static NumberFormat FORMAT = NumberFormat.getInstance();
 
    static { 
		FORMAT.setMaximumFractionDigits(4);
		FORMAT.setMinimumFractionDigits(0);
		FORMAT.setMaximumIntegerDigits(100);
		FORMAT.setMinimumIntegerDigits(1);
    } 
 
    public static Display showDisplay(Memory m) {
		return showDisplay(Map.defaultMap(m));
    } 
 
    public static Display showDisplay(Map map) {
		final JFrame frame = new JFrame();
		Display result = new Display(map);
		frame.setContentPane(result);
		frame.pack();
Contextual code suggestions in your IDE  Get Codota for Java