SuperVCD管理系统 完整代码,带各种注释,可以拿这个项目入门。
class GoActionListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
populateListBox();
}
}
class DetailsActionListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
int index = musicListBox.getSelectedIndex();
MusicRecording myMusicRecording = (MusicRecording) musicArrayList.get(index);
MusicDetailsDialog myDetailsDialog = new MusicDetailsDialog(parentFrame, myMusicRecording);
myDetailsDialog.setVisible(true);
}
}
class ExitActionListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
parentFrame.exit();
}
}
class ClearActionListener implements ActionListener {
public void actionPerformed(ActionEvent event) {
Object[] noData = new Object[1];
musicListBox.setListData(noData);
categoryComboBox.setSelectedIndex(0);