}
}else{
for (int i = 0; i < 24; i++){
- JButton button = (JButton) upperCaseButtons.get(i);
+ JButton button = upperCaseButtons.get(i);
newColours[i] = button.getBackground();
}
}
}
}else{
for (int i = 0; i < 23; i++){
- JButton button = (JButton) lowerCaseButtons.get(i);
+ JButton button = lowerCaseButtons.get(i);
newColours[i] = button.getBackground();
}
}