Answers for "java swing array of buttons"

1

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());
    }

}
Posted by: Guest on May-11-2021

Code answers related to "Java"

Java Answers by Framework

Browse Popular Code Answers by Language