Package instantbach.gui.tab.progression

Examples of instantbach.gui.tab.progression.SymbolButton


        //for each available symbol..
        for (int i = 0; i < availableSymbols.size(); i++) {

            Symbol symbol = availableSymbols.get(i);
            SymbolButton button = new SymbolButton(symbol);
            button.addActionListener(this);
            buttonList.add(button);

            c.gridx = col;
            c.gridy = row;
            panel.add(button, c);
View Full Code Here


    /**
     * Handles when a symbol button is pressed
     * @param e ActionEvent
     */
    public void actionPerformed(ActionEvent e) {
        SymbolButton button = (SymbolButton) e.getSource();

        //add this symbol to the current progression
        progression.add(button.getSymbol());

        //update the progression label
        this.updateProgressionLabel();

    }
View Full Code Here

        SwingUtilities.invokeLater(new Runnable() {
            public void run() {
                humanButton.setEnabled(state);
                computerButton.setEnabled(state);
                for (int i = 0; i < buttonList.size(); i++) {
                    SymbolButton button = buttonList.get(i);
                    button.setEnabled(state);
                }
            }
        });

    }
View Full Code Here

TOP

Related Classes of instantbach.gui.tab.progression.SymbolButton

Copyright © 2018 www.massapicom. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.