Defined the JButton array cannot use the JButton method?

JButton[] a = new JButton[4]; This just creates an array object, but each array element is not initialized, so you need to use a loop to initialize each.

Guess you like

Origin blog.csdn.net/qq_44688861/article/details/105962125