Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR JAVA

java swing array of buttons

import javax.swing.*;
//do it
public class test {

    public static void main(String[] args) {
        JButton[] buttons = new JButton[10];

        buttons[0] = new JButton("0");

        System.out.println(buttons[0].getText());
    }

}
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #java #swing #array #buttons
ADD COMMENT
Topic
Name
2+7 =