课程设计--通讯录管理系统的设计与实现内容摘要:
30)。 ()。 (370, 130, 180, 30)。 ()。 (370, 180, 180, 30)。 ()。 (370, 230, 180, 30)。 ()。 (100, 50, 200, 200)。 (250, 300, 60, 30)。 (350, 300, 60, 30)。 (150, 300, 60, 30)。 (btn1)。 (btn2)。 (btn3)。 (Name)。 (Tel)。 (q)。 (Address)。 (youb)。 (lb2)。 (lb3)。 (lb4)。 (lb5)。 (lb6)。 (this)。 (this)。 (this)。 } /*public void paint(Graphics g) { (g)。 ImageIcon img = new ImageIcon(D:\\)。 ((), 200, 100, 800, 300, this)。 }*/ @Override public void actionPerformed(ActionEvent e) { // TODO 自动生成的方法存根 if(()==btn1){ try { ()。 // 加载驱动程序 String url = jdbc:odbc:chengwz。 // URL 指向要访问的 数据库名 test String user =。 // MySQL 配置时的用户名 String password =。 // MySQL 配置时的密码 ResultSet rs=null。 Connection connection = (url, user,password)。 // 连续数据库 if (!()) (Succeeded connecting to the Database!)。 Statement statement = ()。 // statement 用来执行SQL 语句 PreparedStatement pre=null。 String str2=str1[f]。 String sq2=delete * from cwz where name=?。 pre=(sq2)。 //要执行的 SQL (1, str2)。 ()。 ()。 ()。 } catch (Exception ee) { ()。 (============删除时:抛出异常 ===========)。 } (f)。 for (int d = f。 d j。 d++) { str1[d] = str1[d + 1]。 str2[d] = str2[d + 1]。 str3[d] = str3[d + 1]。 str4[d] = str4[d + 1]。 str5[d] = str5[d + 1]。 } j。 f。 (null, 数据删除成功。 )。 } else if(()==btn2){ dispose()。 (0)。 } else if(()==btn3){ new Revisefriend(f)。 } } } /**/ mypan pn2=new mypan(f)。 mypan pnc=new mypan(f)。 JLabel Name, Tel, q, Address, youb,lb2,lb3,lb4,lb5,lb6。 JButton btn1, btn2,btn3。 public myframe(){ try { ()。 // 加载驱动程序 String url = jdbc:odbc:chengwz。 // URL 指向要访问的数据库名 test String user =。 // MySQL 配置时的用户名 String password =。 // MySQL 配置时的密码 Connection connection = (url, user, password)。 // 连续数据库 if(!()) (Succeeded connecting to the Database!)。 Statement statement = ()。 // statement 用来执行 SQL 语句 String sql = select * from cwz。 // 要执行的 SQL 语句 ResultSet rs = (sql)。 // 执行 SQL 语句并返回结果集 String name = null。 String phone=null。 String =null。 String youbian=null。 String address=null。 while(()) { name = (name)。 // 选择 sname 这列数据 phone=(phone)。 =()。 address=(address)。 youbian=(postcard)。 str1[j] = name。 str2[j] = phone。 str3[j] =。 str4[j] = address。 str5[j] = youbian。 j++。 (name+ +phone+ +address)。 } ()。 // 关闭结果集 ()。 // 关闭连接 } catch(ClassNotFoundException e) { (Sorry,can`t find the Driver!)。 ()。 } catch(SQLException e) { ()。 } catch(Exception e) { ()。 } JPanel pn=new JPanel()。 JPanel pn3=new JPanel()。 mypan pn2=new mypan(f)。 mb=new JMenuBar()。 mu1=new JMenu(好友操作 )。 mi1=new JMenuItem(修改 )。 mi2=new JMenuItem(删除)。 mu2=new JMenu(查询 )。 mi3=new JMenuItem(按姓名 )。 mi4=new JMenuItem(按电话 )。 mu3=new JMenu(新增 )。 mi5=new JMenuItem(新建联系人 )。 mu4=new JMenu(帮助 )。 mi6=new JMenuItem(关于 )。 mi7=new JMenuItem(退出系统 )。 setJMenuBar(mb)。 (mu1)。 (mi1)。 (mi2)。 (mu2)。 (mi3)。 (mi4)。 (mu3)。 (mi5)。 (mu4)。 (mi6)。 (mi7)。 ( )。 (lb)。 lt=new JList(dm)。 ()。 //选中后的字体颜色 ()。 JScrollPane sp=new JScrollPane(lt)。 ImageIcon icon=new ImageIcon(D:\\)。 JLabel lbn=new JLabel(8,icon,)。 (lbn)。 add(sp,West)。 add(pn,South)。 add(pn2,Center)。 add(pn3,North)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 (this)。 setSize(800,570)。 setTitle(通讯录 )。 setVisible(true)。 setResizable(false)。 //缩放 setDefaultCloseOperation()。 setLocationRelativeTo(null)。 (true)。 /*Font font=new Font(JFrame,14)。 Enumeration keys=().keys()。 while(()){ Object key=()。 if((key)instanceof Font)(keys, font)。 }*/ } public void actionPerformed(ActionEvent e){ if(()==mi1){ new ReviseFriendname()。 } else if(()==mi2){ new Deletefriend()。 } else if(()==mi3){ new Searchfriend()。 } else if(()==mi4){ new search2()。 } else if(()==mi5){ new Addfriend()。 } else if(()==mi6){ new about ()。 } else if(()==mi7){ ()。 } } @Override public void mouseClicked(MouseEvent e) { // TODO 自动生成的方法存根 if (() == 1) { int index=(())。 f=index。 ()。 (balck)。 Name = new JLabel(str1[index]+ 的联系方式 )。 Tel = new JLabel(电话 :)。 lb2=new JLabel(str2[index])。 q = new JLabel(:)。 lb3=new JLabel(str3[index])。 Address = new JLabel(地址 :)。 lb4=new JLabel(str4[index])。 youb=new JLabel(邮编 )。 lb5=new JLabel(str5[index])。 ImageIcon img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==1)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==2)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==3)img6=new ImageIcon(D:\\workspace\\image\\)。 if(index==4)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==4)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==5)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==6)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==7)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(index==8)img6 = new ImageIcon(D:\\workspace\\image\\)。 if(in。课程设计--通讯录管理系统的设计与实现
相关推荐
项目开工前依据 ISO9002 质量保证手册及程序文件编制相应的项目质量保证计划加强施工过程的质量控制 3施工过程中各工序工作进行事先交底中间检查事后验收制度同时严格执行材料验收制度和计量管理制度 4 在努力提高工程质量的前提下自始至终按国家优质工程的档案资料归档标准做好资料管理工作 5 施工过程中准确领会贯彻设计意图和要求主动做好业主监理设计政府有关部门及施工各方之间的配合协调工作 6
入及融资方面,体制性障碍是比较明显的,使得 中小 企业缺乏市场活力和竞争力,企业 显得“没有前途”,因此在人力资源 9 竞争方面没有优势可言。 人才市场发育不完善,市场功能不健全,“职业经理人”的市场供求机制没有系统地形成,供需矛盾突出。 以福建省为例, 27. 1%的民营企业经营者因对当前所处的企业环境和机制不满而要流动,其中不乏有国有企业培养多年的管理者和“三资”企业磨炼过的高级经理人才。
2解除挂失 “N”or”n” 按任意键退出 按任意键退出 “Y”or”y” 返回主 菜单 返回主菜单 非法数据 输入卡号 a 显示 “ 无此卡 ” 显示 “ 无此卡 ” 输入卡号 1挂失信息 3 挂失信息无意义 挂失信息无意义 输入卡号 1挂失信息 a 挂失信息不变 挂失信息不变 22 mydisplayall 函数 mydisplayall 函数的测试数据 测试数据类型 测试数据 预期结果
工作环境,它所带来的影响才是严重的。 所以,你在学习过程最好保持「平常心」,案例中的有效对策只是提供你参考,它不应是唯一的,你有可能会发展出更为有效的对策。 如果它与你过去的经验是相符合的,请勿过于沾沾自喜,而如果它与你过去的经验是相互违背的,请你也不必过于坚持。 总之,它提供了你学习新方法的一种途径。 因为,在案例研究中所谓的「正确」与「错误」的断定,只是对 问题的假设加以推论出来的
各类资产每月应提折旧金额,每月根据固定资产增减变动情况及时调整,编制折旧计算表。 ( 2)固定资产折旧采取按个别资产进行计算,分部门、分类别汇 总提取。 ( 3)月度提取累计折旧金额发生变动时应将提取折旧的依据应传递一份给各车间核算员,由车间核算员对应固定资产清单核实固定资产的存在及折旧提取的准确性。 ( 4)年末根据固定资产明细表计算全年折旧,冲回由于净值低于全年应提折旧的个别资产多提折旧