@Override
    public void actionPerformed(ActionEvent event) {
        String before = gui.getOutput().getText();
        if (before.equals("0") && !leaveZero) before = "";
        gui.getOutput().setText(before + text);
    }