Adding atomic items
//button panels
        JPanel moreButs = new JPanel();
        moreButs.setLayout(new GridLayout(4, 2));
        String moreButtons[] = {"C ", "CE", "M+", "M-", "MR", "MC", SQRT,
                              "%"};
        for (i = 0; i < 8; i++) {
                addButton(moreButs, moreButtons[i]);
        }
        eastPanel.add(moreButs, "West");
        centerpanel = new JPanel();
        centerpanel.setLayout(new GridLayout(4, 4));
        String buttons = "789/456x123-0.+=";
        for (i = 0; i < buttons.length(); i++)
                addButton(centerpanel, buttons.substring(i, i + 1));
        centerpanel.setFont(f);
        eastPanel.add(centerpanel, "Center");