﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>BlogJava-骚包路技术菜-最新评论</title><link>http://www.blogjava.net/chenglu/CommentsRSS.aspx</link><description>嗯哼</description><language>zh-cn</language><pubDate>Sat, 24 Aug 2013 08:04:44 GMT</pubDate><lastBuildDate>Sat, 24 Aug 2013 08:04:44 GMT</lastBuildDate><generator>cnblogs</generator><item><title>re: 南阳理工学院软件学院Java开发团队</title><link>http://www.blogjava.net/chenglu/archive/2012/05/31/261040.html#379671</link><dc:creator>张志杰</dc:creator><author>张志杰</author><pubDate>Thu, 31 May 2012 06:48:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/05/31/261040.html#379671</guid><description><![CDATA[@贺  怎么啦，保存不到数据库数据？自己Debug 跟一下，问题应该不大。<img src ="http://www.blogjava.net/chenglu/aggbug/379671.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">张志杰</a> 2012-05-31 14:48 <a href="http://www.blogjava.net/chenglu/archive/2012/05/31/261040.html#379671#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 南阳理工学院软件学院Java开发团队</title><link>http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379582</link><dc:creator>贺</dc:creator><author>贺</author><pubDate>Wed, 30 May 2012 10:53:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379582</guid><description><![CDATA[@贺<br>帮忙看下程序哪出错了<img src ="http://www.blogjava.net/chenglu/aggbug/379582.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">贺</a> 2012-05-30 18:53 <a href="http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379582#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 开发一个学生管理系统，将信息导入数据库</title><link>http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379581</link><dc:creator>贺</dc:creator><author>贺</author><pubDate>Wed, 30 May 2012 10:42:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379581</guid><description><![CDATA[import java.awt.*;<br>import java.awt.event.*;<br>import javax.swing.*;<br>import java.util.*;<br>import javax.swing.event.*;<br>import java.sql.*;<br>import java.util.Vector;<br>public class AddStudent extends JFrame implements ActionListener<br>{<br>	JLabel JL=new JLabel(&quot;添加学生信息&quot;,JLabel.CENTER);//使用文本创建一个标签对象<br>	JLabel JLNumber=new JLabel(&quot;学号：&quot;);//使用文本创建一个标签对象<br>	JTextField JTNumber=new JTextField();//创建一个文本框对象<br>	<br>	JLabel JLName=new JLabel(&quot;姓名：&quot;);//使用文本创建一个标签对象<br>	JTextField JTName=new JTextField();//创建一个文本框对象<br>	<br>	JLabel JLZhuanye=new JLabel(&quot;专业：&quot;);//使用文本创建一个标签对象<br>	JTextField JTZhuanye=new JTextField();//创建一个文本框对象<br>	<br>	JLabel JLsex=new JLabel(&quot;性别：&quot;);//使用文本创建一个标签对象<br>	ButtonGroup BG=new ButtonGroup();//创建一个ButtonGroup组件对象<br>	JRadioButton JRB1=new JRadioButton(&quot;男&quot;);//创建一个单选按钮对象<br>	JRadioButton JRB2=new JRadioButton(&quot;女&quot;);<br>	<br>	JLabel JL1=new JLabel(&quot;年级:：&quot;);//使用文本创建一个标签对象<br>	JTextField JT1=new JTextField();//创建一个文本框对象<br>	<br>	JLabel JL2=new JLabel(&quot;出生：&quot;);<br>	JTextField JT2=new JTextField();<br>	<br>	JButton JBAdd=new JButton(&quot;录入&quot;);//创建按钮对象<br>	JButton JBNext=new JButton(&quot;重置&quot;);<br>	String sql=&quot;&quot;;//定义一个字符串<br>	public AddStudent()//创建AddStudent构造方法<br>	{<br>		this.setTitle(&quot;添加学生信息&quot;);//设置窗口标题<br>		this.setLayout(null);//设置窗口布局管理器<br>		JL.setForeground(Color.red);//设置标签的前景色<br>		JL.setFont(new java.awt.Font(&quot;宋体&quot;,Font.PLAIN,19));//设置标签的字体<br>		JL.setBounds(200,30,200,40);//设置标签的初始位置<br>		this.add(JL);//将标签添加到容器<br>		<br>		JLNumber.setBounds(195,80,100,20);//设置学号标签的初始位置<br>		this.add(JLNumber);//将学号标签添加到容器<br>		JTNumber.setBounds(240,80,170,20);//设置文本框的初始位置<br>		this.add(JTNumber);//将文本框添加到容器<br>		<br>		JLName.setBounds(195,100,60,20);//设置姓名标签的初始位置<br>		this.add(JLName);//将姓名标签添加到容器<br>		JTName.setBounds(240,100,170,20);//设置文本框的初始位置<br>		this.add(JTName);//将文本框添加到容器<br>		<br>		JLsex.setBounds(220,120,100,20);//设置性别标签的初始位置<br>		this.add(JLsex);//将性别标签添加到容器<br>		JRB1.setBounds(270,120,40,20);//设置单选按钮的初始位置<br>		JRB2.setBounds(320,120,40,20);<br>		this.add(JRB1);//添加单选按钮组件<br>		this.add(JRB2);<br>		BG.add(JRB1);//将单选按钮添加到Button Group组建<br>		BG.add(JRB2);<br>		<br>		JLZhuanye.setBounds(195,140,60,20);//设置专业标签的初始位置<br>		this.add(JLZhuanye);//将专业标签添加到容器<br>		JTZhuanye.setBounds(240,140,170,20);//设置文本框的初始位置<br>		this.add(JTZhuanye);//将文本框添加到容器<br>		<br>		JL1.setBounds(195,160,60,20);//设置年级标签的初始位置<br>		this.add(JL1);//将年级标签添加到容器<br>		JT1.setBounds(240,160,170,20);//设置文本框的初始位置<br>		this.add(JT1);//将文本框添加到容器<br>		<br>		JL2.setBounds(195,180,60,20);//设置出生标签的初始位置<br>		this.add(JL2);<br>		JT2.setBounds(240,180,170,20);<br>		this.add(JT2);<br>		<br>		JBAdd.setBounds(210,260,90,25);//设置添加按钮的初始位置<br>		this.add(JBAdd);//将添加按钮添加到容器<br>		JBAdd.addActionListener(this);//给按钮添加监听器<br>		<br>		JBNext.setBounds(310,260,90,25);//设置重置按钮的初始位置<br>		this.add(JBNext);//将重置按钮添加到容器<br>		JBNext.addActionListener(this);//给按钮添加监听器<br>		<br>		this.setBounds(10,10,600,350);//设置窗口尺寸大小<br>		this.setVisible(true);//设置窗口可见性<br>		addWindowListener(new WindowAdapter()<br>		{<br>			public void windowClosing(WindowEvent e)<br>			{<br>				System.exit(0);<br>			}<br>		});<br>	}		<br>public void actionPerformed(ActionEvent e)<br>	{<br>	if(e.getSource()==JBAdd)//处理&quot;添加&quot;事件<br>		{<br>			String snumber=JTNumber.getText();//将文本框中包含的文本传给字符串snumber<br>			String sname=JTName.getText();//将文本框中包含的文本传给字符串sname<br>			String szhuanye=JTZhuanye.getText();//将文本框中包含的文本传给字符串sclass<br>			String ssex=&quot;女&quot;;//返回单选按钮的值<br>			if(JRB1.isSelected())<br>			    ssex=&quot;男&quot;;<br>			String nianji=JT1.getText();//将文本框中包含的文本传给字符串scollect<br>			String chusheng=JT2.getText(); <br>			//String sql=&quot;select * from student where Id='&quot;+snumber+&quot;'&quot;;//检索出Id等于snumber的学生的所有信息<br>			try //异常处理<br>			{<br>				Class.forName(&quot;sun.jdbc.odbc.JdbcOdbcDriver&quot;);//加载驱动程序<br>				Connection cot=DriverManager.getConnection(&quot;jdbc:odbc:student1&quot;,&quot;&quot;,&quot;&quot;);<br>					sql=&quot;insert into student values(?,?,?,?,?,?,?,?,?,?)&quot;;//打开数据库连接，student1为数据源名称<br>				PreparedStatement  pstm=cot.prepareStatement(sql);//提交查询<br>				<br>			   // if(rs.next())//判断结果是否存在<br>				//JOptionPane.showMessageDialog(null,&quot;该号已经存在!&quot;);//通过showMessageDialog()方法打印信息<br>				//else <br>				//{<br>				//插入一组数据<br>					pstm.setString(1,snumber);<br>					pstm.setString(2,sname);<br>					pstm.setString(3,szhuanye);<br>					pstm.setString(4,ssex);<br>					pstm.setString(5,nianji);<br>					pstm.setString(6,chusheng);<br>   					int i=pstm.executeUpdate(); //对数据库进行更新<br>					if(i&gt;0)<br>					JOptionPane.showMessageDialog(null,&quot;添加成功!&quot;);<br>					else<br>					JOptionPane.showMessageDialog(null,&quot;删除失败!&quot;);<br>				}<br>		catch(Exception ee)<br>			{<br>			}<br>		}<br>		if(e.getSource()==JBNext)//处理&quot;重置&quot;事件<br>		{<br>			JTNumber.setText(null);//设置文本的text值为null<br>			JTName.setText(null);//设置文本的text值为null<br>			JTZhuanye.setText(null);//设置文本的text值为null<br>			JT1.setText(null);//设置文本的text值为null<br>			JT2.setText(null);<br>		}<br>	}<br>			public static void main(String  args[])<br>			{<br>				new AddStudent();<br>			}<br>		}<img src ="http://www.blogjava.net/chenglu/aggbug/379581.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">贺</a> 2012-05-30 18:42 <a href="http://www.blogjava.net/chenglu/archive/2012/05/30/261040.html#379581#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL5.0驱动下载</title><link>http://www.blogjava.net/chenglu/archive/2012/05/09/263990.html#377681</link><dc:creator>收到</dc:creator><author>收到</author><pubDate>Wed, 09 May 2012 03:28:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/05/09/263990.html#377681</guid><description><![CDATA[的<img src ="http://www.blogjava.net/chenglu/aggbug/377681.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">收到</a> 2012-05-09 11:28 <a href="http://www.blogjava.net/chenglu/archive/2012/05/09/263990.html#377681#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL乱码实战解决ERROR 1366 (HY000): Incorrect string value: '</title><link>http://www.blogjava.net/chenglu/archive/2012/05/08/266067.html#377580</link><dc:creator>张三</dc:creator><author>张三</author><pubDate>Tue, 08 May 2012 01:26:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/05/08/266067.html#377580</guid><description><![CDATA[浮云，，都是浮云，，，，到my.ini改下mysqld编码就好了<img src ="http://www.blogjava.net/chenglu/aggbug/377580.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">张三</a> 2012-05-08 09:26 <a href="http://www.blogjava.net/chenglu/archive/2012/05/08/266067.html#377580#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Struts2文件上传以及空指针异常解决[未登录]</title><link>http://www.blogjava.net/chenglu/archive/2012/04/27/296583.html#376786</link><dc:creator>乐乐</dc:creator><author>乐乐</author><pubDate>Fri, 27 Apr 2012 09:14:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/04/27/296583.html#376786</guid><description><![CDATA[是不是文件是空的呀！<img src ="http://www.blogjava.net/chenglu/aggbug/376786.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">乐乐</a> 2012-04-27 17:14 <a href="http://www.blogjava.net/chenglu/archive/2012/04/27/296583.html#376786#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL5.0驱动下载</title><link>http://www.blogjava.net/chenglu/archive/2012/02/03/263990.html#369283</link><dc:creator>一个人</dc:creator><author>一个人</author><pubDate>Thu, 02 Feb 2012 16:04:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2012/02/03/263990.html#369283</guid><description><![CDATA[十分感谢！<img src ="http://www.blogjava.net/chenglu/aggbug/369283.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">一个人</a> 2012-02-03 00:04 <a href="http://www.blogjava.net/chenglu/archive/2012/02/03/263990.html#369283#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: QQ在线状态代码详解及如何自定义在线风格图片</title><link>http://www.blogjava.net/chenglu/archive/2011/07/21/324381.html#354802</link><dc:creator>女装免费代理</dc:creator><author>女装免费代理</author><pubDate>Thu, 21 Jul 2011 08:20:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2011/07/21/324381.html#354802</guid><description><![CDATA[不错 收藏了<img src ="http://www.blogjava.net/chenglu/aggbug/354802.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">女装免费代理</a> 2011-07-21 16:20 <a href="http://www.blogjava.net/chenglu/archive/2011/07/21/324381.html#354802#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 南阳理工学院软件学院Java开发团队</title><link>http://www.blogjava.net/chenglu/archive/2011/04/16/261040.html#348422</link><dc:creator>whitethink</dc:creator><author>whitethink</author><pubDate>Sat, 16 Apr 2011 14:43:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2011/04/16/261040.html#348422</guid><description><![CDATA[谁在南阳用java,跟我联系一下。 1975204057@qq.com<img src ="http://www.blogjava.net/chenglu/aggbug/348422.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">whitethink</a> 2011-04-16 22:43 <a href="http://www.blogjava.net/chenglu/archive/2011/04/16/261040.html#348422#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL乱码实战解决ERROR 1366 (HY000): Incorrect string value: '</title><link>http://www.blogjava.net/chenglu/archive/2011/04/07/266067.html#347831</link><dc:creator>ofelia</dc:creator><author>ofelia</author><pubDate>Thu, 07 Apr 2011 14:01:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2011/04/07/266067.html#347831</guid><description><![CDATA[你好，我也遇到了这个错误。<br>但是我按你的方法它出现了下面的错误：<br><br>mysql&gt; alter table apr_05 modify Date character set utf8;<br><br>ERROR 1064 : You have an error in your SQL syntax; check the manual that corresponds to your MySQL server version for the right syntax to use near 'set utf8' at line 1<br><br>我需要用utf8格式的，应该没有写错吧……求教，谢谢！<br><img src ="http://www.blogjava.net/chenglu/aggbug/347831.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">ofelia</a> 2011-04-07 22:01 <a href="http://www.blogjava.net/chenglu/archive/2011/04/07/266067.html#347831#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL5.0驱动下载[未登录]</title><link>http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323752</link><dc:creator>aaaa</dc:creator><author>aaaa</author><pubDate>Thu, 17 Jun 2010 13:31:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323752</guid><description><![CDATA[谢谢你<img src ="http://www.blogjava.net/chenglu/aggbug/323752.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">aaaa</a> 2010-06-17 21:31 <a href="http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323752#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: MySQL5.0驱动下载[未登录]</title><link>http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323751</link><dc:creator>aaaa</dc:creator><author>aaaa</author><pubDate>Thu, 17 Jun 2010 13:30:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323751</guid><description><![CDATA[谢谢你呀，找到不容易<img src ="http://www.blogjava.net/chenglu/aggbug/323751.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">aaaa</a> 2010-06-17 21:30 <a href="http://www.blogjava.net/chenglu/archive/2010/06/17/263990.html#323751#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: [雷]蜗居版优乐美广告</title><link>http://www.blogjava.net/chenglu/archive/2010/02/08/310832.html#312366</link><dc:creator>zhijie_zhang</dc:creator><author>zhijie_zhang</author><pubDate>Mon, 08 Feb 2010 15:25:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2010/02/08/310832.html#312366</guid><description><![CDATA[嘿~<img src ="http://www.blogjava.net/chenglu/aggbug/312366.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">zhijie_zhang</a> 2010-02-08 23:25 <a href="http://www.blogjava.net/chenglu/archive/2010/02/08/310832.html#312366#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: Linux(第1—4章)总结</title><link>http://www.blogjava.net/chenglu/archive/2010/01/10/308632.html#308883</link><dc:creator>zhijie_zhang</dc:creator><author>zhijie_zhang</author><pubDate>Sat, 09 Jan 2010 17:11:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2010/01/10/308632.html#308883</guid><description><![CDATA[现在写个人主页都不好意思写了...<br>总结的不错呀, 回头要是忘命令了直接来你这里 ctrl + F 就行了, 哈~<img src ="http://www.blogjava.net/chenglu/aggbug/308883.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">zhijie_zhang</a> 2010-01-10 01:11 <a href="http://www.blogjava.net/chenglu/archive/2010/01/10/308632.html#308883#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>re: 送Google Wave邀请4枚[未登录]</title><link>http://www.blogjava.net/chenglu/archive/2009/12/19/298331.html#306639</link><dc:creator>jiang</dc:creator><author>jiang</author><pubDate>Sat, 19 Dec 2009 03:12:00 GMT</pubDate><guid>http://www.blogjava.net/chenglu/archive/2009/12/19/298331.html#306639</guid><description><![CDATA[需要邀请的朋友加我的qq好友吧，89359370，我还有十几个没有送完，大家一起共享互联网吧！？<img src ="http://www.blogjava.net/chenglu/aggbug/306639.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.blogjava.net/chenglu/" target="_blank">jiang</a> 2009-12-19 11:12 <a href="http://www.blogjava.net/chenglu/archive/2009/12/19/298331.html#306639#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>