ImageVerifierCode 换一换
格式:DOCX , 页数:26 ,大小:142.04KB ,
资源ID:14608693      下载积分:3 金币
快捷下载
登录下载
邮箱/手机:
温馨提示:
快捷下载时,用户名和密码都是您填写的邮箱或者手机号,方便查询和重复下载(系统自动生成)。 如填写123,账号就是123,密码也是123。
特别说明:
请自助下载,系统不会自动发送文件的哦; 如果您已付费,想二次下载,请登录后访问:我的下载记录
支付方式: 支付宝    微信支付   
验证码:   换一换

加入VIP,免费下载
 

温馨提示:由于个人手机设置不同,如果发现不能下载,请复制以下地址【https://www.bdocx.com/down/14608693.html】到电脑端继续下载(重复下载不扣费)。

已注册用户请登录:
账号:
密码:
验证码:   换一换
  忘记密码?
三方登录: 微信登录   QQ登录  

下载须知

1: 本站所有资源如无特殊说明,都需要本地电脑安装OFFICE2007和PDF阅读器。
2: 试题试卷类文档,如果标题没有明确说明有答案则都视为没有答案,请知晓。
3: 文件的所有权益归上传用户所有。
4. 未经权益所有人同意不得将文件中的内容挪作商业或盈利用途。
5. 本站仅提供交流平台,并不能对任何下载内容负责。
6. 下载文件中如有侵权或不适当内容,请与我们联系,我们立即纠正。
7. 本站不保证下载资源的准确性、安全性和完整性, 同时也不承担用户因使用这些下载资源对自己和他人造成任何形式的伤害或损失。

版权提示 | 免责声明

本文(java学生通讯录实验报告Word下载.docx)为本站会员(b****1)主动上传,冰豆网仅提供信息存储空间,仅对用户上传内容的表现方式做保护处理,对上载内容本身不做任何修改或编辑。 若此文所含内容侵犯了您的版权或隐私,请立即通知冰豆网(发送邮件至service@bdocx.com或直接QQ联系客服),我们立即给予删除!

java学生通讯录实验报告Word下载.docx

1、运行代码主代码:Login.Javaimport javax.swing.JFrame;import javax.swing.JButton;import javax.swing.JOptionPane;import javax.swing.JPasswordField;import javax.swing.JTextField;import javax.swing.JLabel;import java.awt.event.ActionListener;import java.awt.event.ActionEvent;import java.util.Map;public class Log

2、in public JFrame frame; private JTextField t_username; private JPasswordField t_password; public Login() initialize(); private void initialize() frame = new JFrame(); frame.setTitle(用户登录); frame.setBounds(100, 100, 450, 300); frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE); frame.getContentPane

3、().setLayout(null); JButton btnNewButton = new JButton(登录 btnNewButton.addActionListener(new ActionListener() public void actionPerformed(ActionEvent e) String username=t_username.getText(); char password=t_password.getPassword(); if(username=null | .equals(username) JOptionPane.showMessageDialog(nu

4、ll, 请输入用户名, 提示,JOptionPane.WARNING_MESSAGE); t_username.requestFocus(); return; if(password=null | password.length=0)请输入密码 t_password.requestFocus(); /登录 if(TxlService.isLogin(username, new String(password) /保存用户信息 TongXunLu stu=new TongXunLu(); stu.frame.setVisible(true); frame.setVisible(false); e

5、lse用户名或密码错误 t_username.setText( t_password.setText( ); btnNewButton.setBounds(120, 135, 90, 25); frame.getContentPane().add(btnNewButton); JButton btnNewButton_1 = new JButton(取消 btnNewButton_1.setBounds(250, 135, 90, 25); btnNewButton_1.addActionListener(new ActionListener() frame.getContentPane().

6、add(btnNewButton_1); JLabel lblNewLabel = new JLabel(用户名: lblNewLabel.setBounds(73, 37, 80, 15); frame.getContentPane().add(lblNewLabel); t_username = new JTextField(20); t_username.setBounds(137, 34, 220, 27); frame.getContentPane().add(t_username); JLabel label = new JLabel(密码: label.setBounds(73,

7、 69, 80, 15); frame.getContentPane().add(label); t_password=new JPasswordField(12); t_password.setBounds(137, 65, 220, 27); frame.getContentPane().add(t_password);类:TongxunluMain.javaimport java.awt.EventQueue;public class TongxunluMain public static void main(String args) EventQueue.invokeLater(new

8、 Runnable() public void run() try Login window = new Login(); window.frame.setVisible(true); catch (Exception e) e.printStackTrace();TongXunLu.javaimport java.sql.ResultSet;import javax.swing.JScrollPane;import javax.swing.JTable;import javax.swing.table.DefaultTableModel;public class TongXunLu priv

9、ate DefaultTableModel table; private JTable jtable; private JLabel lname; private JTextField tname; private JLabel lqq; private JTextField tqq; private JLabel lphone; private JTextField tphone; String col=姓名,QQ电话; TongXunLu window = new TongXunLu(); public TongXunLu() 学生通讯录管理 frame.setBounds(100, 10

10、0,650, 360); jtable=new JTable(); jtable.setBounds(80,50,500,150); table=new DefaultTableModel(col,0); JScrollPane scrollPane = new JScrollPane(jtable); scrollPane.setBounds(80,80,500,180); frame.getContentPane().add(scrollPane); lname = new JLabel(姓名: lname.setBounds(80, 50, 40, 20); frame.getContentPane().add(lname); tname = new JTextField(); tname.setBounds(120, 50, 100, 20); frame.getContentPane().add(tname); lqq = new JLabel(QQ: lqq.setBounds(230, 50, 40, 20); frame.getContentPane().add(lqq); tqq = new JTextField(); tqq.setBounds(260, 50, 100, 20); frame.getContentPane().add(tqq); lpho

copyright@ 2008-2022 冰豆网网站版权所有

经营许可证编号:鄂ICP备2022015515号-1