Ok this is an inner class in my BeatBox class.
public class MyLoadListener implements ActionListener {
public void actionPerformed(ActionEvent a) {
JFileChooser fileOpen = new JFileChooser();
fileOpen.showOpenDialog(theFrame);
File myFile = fileOpen.getSelectedFile();
try {
FileInputStream fileReader = new FileInputStream(myFile);
ObjectInputStream os = new ObjectInputStream(fileReader);
checkboxState = (boolean[]) is.readObject();
} catch(Exception ex) {
ex.printStackTrace();
}
for (int i = 0; i < 256; i++) {
JCheckBox check = (JCheckBox) checkBoxList.get(i);
if(checkboxState[i]) {
check.setSelected(true);
} else {
check.setSelected(false);
}
} // end of for loop
sequencer.stop();
buildTrackAndStart();
} // end of method
} // end of inner class
Now when I try to compile this, I get this error message complaining about my is variable, see below. Now I know I must just be missing something stupid so, if anyone can help that'd be great.
BeatBox.java:185: cannot find symbol
symbol : variable is
location: class BeatBox.MyLoadListener
checkboxState = (boolean[]) is. readObject();
^
the ^ is supposed to be under is, but I can't seem to get it to stick there
[ June 07, 2005: Message edited by: Nicholas Carrier ]