资源简介
Java编写的KTV智能点歌系统。代码清晰,有很多点歌功能。拼音点歌,语种点歌。
代码片段和文件信息
import java.awt.*;
import java.awt.event.*;
import java.io.File;
import javax.swing.*;
public class AddCustomer extends Jframe implements ActionListener{
JTextField idText nameText emailText favouriteSingerText;
JPasswordField passwordText checkText;
JRadioButton maleRadioButton femaleRadioButton;
JButton clearButton submitButton returnButton;
public AddCustomer( Login login){
Container c = this.getContentPane();
c.setLayout(new BorderLayout());
JPanel centerPanel = new JPanel(new GridLayout(3122));
JPanel upperPanel = new JPanel(new GridLayout(4122));
FlowLayout d=new FlowLayout();
d.setVgap(20);
JPanel genderPanel = new JPanel(d);
JPanel lowerPanel = new JPanel(new GridLayout(4122));
// JPanel textPanel = new JPanel(new GridLayout(21));
JPanel emailTextPanel = new JPanel(new GridLayout(1144));
JPanel singerTextPanel = new JPanel(new GridLayout(1122));
JPanel bottomPanel = new JPanel(new GridLayout(2122));
JPanel buttonPanel = new JPanel(new FlowLayout());
JLabel logoLabel = new JLabel(““ SwingConstants.CENTER);
logoLabel.setForeground(Color.CYAN);
logoLabel.setFont(new Font(“TimeRoman“ Font.ITALIC 24));
logoLabel.setText(“KTV智能点播系统“);
c.add(logoLabel BorderLayout.NORTH);
logoLabel.setPreferredSize(new java.awt.Dimension(592 69));
String picPath = “d:“ + File.separator + “图标2.jpg“;
Icon icon = new ImageIcon(picPath);
JLabel picLabel = new JLabel(icon);
picLabel.getIcon();
c.add(picLabel BorderLayout.EAST);
picLabel.setPreferredSize(new java.awt.Dimension(162 293));
idText = new JTextField(15);
nameText = new JTextField(15);
passwordText = new JPasswordField(15);
checkText = new JPasswordField(15);
maleRadioButton = new JRadioButton(“男“ true);
femaleRadioButton = new JRadioButton(“女“ false);
ButtonGroup typeOfGender = new ButtonGroup();
typeOfGender.add(maleRadioButton);
typeOfGender.add(femaleRadioButton);
emailText = new JTextField(25);
favouriteSingerText = new JTextField(25);
upperPanel.add(new JLabel(“用户ID:“ SwingConstants.RIGHT));
upperPanel.add(idText);
upperPanel.add(new JLabel(“姓名:“ SwingConstants.RIGHT));
upperPanel.add(nameText);
upperPanel.add(new JLabel(“密码:“ SwingConstants.RIGHT));
upperPanel.add(passwordText);
upperPanel.add(new JLabel(“确认密码:“ SwingConstants.RIGHT ));
upperPanel.add(checkText);
centerPanel.add(upperPanel);
genderPanel.add(maleRadioButton);
genderPanel.add(femaleRadioButton);
centerPanel.add(genderPanel);
// textPanel.add(new JLabel(“Email:“ SwingConstants.RIGHT));
// textPanel.add(emailText);
// textPanel.add(new JLabel(“喜欢的歌手:“ SwingConstants.RIGHT));
// textPanel.add(singerText);
// lowerPanel.add(textPanel);
emailTextPanel.add(new JLabel(“Email:“ SwingConstants.RIGHT));
emailTextPanel.add(emailText);
singerTextPanel.add(new JLabel(“喜欢的歌手:“ SwingConstants.RIGHT));
singer
属性 大小 日期 时间 名称
----------- --------- ---------- ----- ----
文件 232 2010-09-09 08:25 KTV\.classpath
文件 379 2010-09-03 14:18 KTV\.project
文件 5368 2010-09-21 16:58 KTV\bin\Login.class
文件 4598 2010-09-10 11:59 KTV\src\Login.java
目录 0 2010-09-21 17:14 KTV\bin
目录 0 2010-09-21 17:14 KTV\src
目录 0 2010-09-06 11:18 KTV
文件 569 2010-09-21 16:58 KTV\bin\Login$1.class
文件 623 2010-09-21 17:23 KTV\bin\AddCustomer$1.class
文件 5781 2010-09-21 17:23 KTV\bin\AddCustomer.class
文件 61684 2010-09-06 08:15 KTV\bin\图标.jpg
文件 5310 2010-09-21 17:23 KTV\src\AddCustomer.java
文件 61684 2010-09-06 08:15 KTV\src\图标.jpg
文件 421 2010-09-09 11:47 KTV\bin\Adminfr
文件 118 2010-09-09 11:47 KTV\src\Adminfr
文件 30011 2010-09-06 11:27 KTV\src\图标2.jpg
文件 1269 2010-09-21 16:58 KTV\bin\Administrator.class
文件 2429 2010-09-21 16:58 KTV\bin\Customer.class
文件 1849 2010-09-21 16:58 KTV\bin\Singer.class
文件 2163 2010-09-21 17:08 KTV\bin\Song.class
文件 314 2010-09-13 16:04 KTV\bin\SongType.class
文件 30011 2010-09-06 11:27 KTV\bin\图标2.jpg
文件 875 2010-09-16 11:10 KTV\src\Administrator.java
文件 2036 2010-09-16 10:01 KTV\src\Customer.java
文件 1485 2010-09-15 09:31 KTV\src\Singer.java
文件 1688 2010-09-21 17:08 KTV\src\Song.java
文件 85 2010-09-13 16:04 KTV\src\SongType.java
文件 3748 2010-09-21 16:58 KTV\bin\AdministratorDA.class
文件 5107 2010-09-21 16:58 KTV\bin\CustomerDA.class
文件 286 2010-09-21 16:58 KTV\bin\DuplicateException.class
............此处省略14个文件信息
- 上一篇:语法分析程序递归下降
- 下一篇:时间序列算法java实现
评论
共有 条评论