Java 如何用图像洗牌JButton?
此处出现错误:Java 如何用图像洗牌JButton?,java,arrays,jbutton,shuffle,Java,Arrays,Jbutton,Shuffle,此处出现错误: for(int h = 0; h <= picture; h++) { list.add(picture[h]); picture.addActionListener(this); } Collections.shuffle(list); for(int h=0;h您没有给出错误,但可能是由于 for(int h=0;h<=picture;h++) //this line. picture is array for(int h=0;hw错
for(int h = 0; h <= picture; h++)
{
list.add(picture[h]);
picture.addActionListener(this);
}
Collections.shuffle(list);
for(int h=0;h您没有给出错误,但可能是由于
for(int h=0;h<=picture;h++) //this line. picture is array
for(int h=0;hw错误是什么?请将其减少为一个。
for(int h=0;h<=picture;h++) //this line. picture is array
for(int h=0;h<picture.length;h++)
{
//..rest of code