SuperVCD管理系统 java版完整代码 带各种注释....(14)
发布时间:2021-06-07
发布时间:2021-06-07
SuperVCD管理系统 完整代码,带各种注释,可以拿这个项目入门。
}
else {
recordingIcon = new ImageIcon(getClass().getResource("images/music/" + imageName));
recordingLabel = new JLabel(recordingIcon);
}
}
catch (Exception exc)
{
recordingLabel = new JLabel(" 图片不存在 ");
}
recordingLabel.setBorder(BorderFactory.createRaisedBevelBorder());
recordingLabel.setToolTipText(myRecording.getArtist());
infoPanel.add(recordingLabel, c);
container.add(BorderLayout.NORTH, infoPanel);
Track[] tracksArray = myRecording.getTrackList();
JList tracksListBox= new JList(tracksArray);
JScrollPane tracksScrollPane = new JScrollPane(tracksListBox);
TitledBorder listBorder = BorderFactory.createTitledBorder("List of Tracks"); listBorder.setTitleColor(Color.black);
tracksScrollPane.setBorder(listBorder);
container.add(BorderLayout.CENTER, tracksScrollPane);
JPanel bottomPanel = new JPanel();
JButton okButton = new JButton("OK");
bottomPanel.add(okButton);
container.add(BorderLayout.SOUTH, bottomPanel);
okButton.addActionListener(new OkButtonActionListener());
this.pack();
Point parentLocation = parentFrame.getLocation();
this.setLocation(parentLocation.x + 50, parentLocation.y + 50);
}
上一篇:六年级尖子生测试卷
下一篇:学生学习水平测试分析