Guest_imported
New member
- Jan 1, 1970
- 0
JButton[][] button1;
ImageIcon imgIcon;
imgIcon = new ImageIcon("none.gif"
button1 = new JButton[2][2];
for (int i = 0; i<1; i++){
for (int j = 0; j<1; j++){
buttonPlace[j].setIcon(imgIcon);
}
}
how can i solve null poiner error?
why i can't create array Jbutton?
ImageIcon imgIcon;
imgIcon = new ImageIcon("none.gif"
button1 = new JButton[2][2];
for (int i = 0; i<1; i++){
for (int j = 0; j<1; j++){
buttonPlace[j].setIcon(imgIcon);
}
}
how can i solve null poiner error?
why i can't create array Jbutton?