Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

JButton

JButton selectedBtn = (JButton) e.getSource();
        for (JButton btn : numBtn) {
            if (selectedBtn == btn) {
                appendToOutput(btn.getText());
                updateOutput();
            }
        }
Source by www.section.io #
 
PREVIOUS NEXT
Tagged: #JButton
ADD COMMENT
Topic
Name
3+5 =