<?xml version="1.0" encoding="utf-8"?><?xml-stylesheet href='http://feeds.feedsky.com/styles/temp01.xsl' type='text/xsl' ?><!--这是一个由Feedsy提供技术支持的Feed，为了提高读者阅读的体验，以及满足用户美化自己Feed的需要，我们设计了多种精美的Feed模板，提供给大家选择，所有最终呈现出来的样式，皆由用户自愿选择使用，未经许可，任何团体和个人，请不要擅自修改样式或者盗用，这是对于用户选择权的尊重。--><rss xmlns:atom="http://www.w3.org/2005/Atom" xmlns:fs="http://www.feedsky.com/namespace/feed" xmlns:dc="http://purl.org/dc/elements/1.1/" version="2.0"><channel><atom:link href="http://feeds.feedsky.com/csdn.net/sl514" type="application/rss+xml" rel="self"></atom:link><fs:self_link href="http://feeds.feedsky.com/csdn.net/sl514" type="application/rss+xml"></fs:self_link><lastBuildDate>Fri, 17 Jun 2011 02:27:00 GMT</lastBuildDate><title>关注J2EE</title><description>http://www.gbsou.com</description><link>http://blog.csdn.net/blogrss.aspx?username=sl514</link><item><title>怎么下载优酷视频呢,你可以这样下</title><link>http://blog.csdn.net/sl514/archive/2011/06/17/6550535.aspx</link><description>&lt;br /&gt;&lt;br /&gt;比如你打开视频后地址栏是 http://v.youku.com/v_show/id_XMjU4MDk1NzUy.html&lt;br /&gt;你在youku前面加上love也就是 http://v.loveyouku.com/v_show/id_XMjU4MDk1NzUy.html&lt;br /&gt;你就可以去下载了。&lt;br /&gt;&lt;br /&gt;&lt;img src=&quot;http://www1.feedsky.com/t1/524006291/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2011/06/17/6550535.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Fri, 17 Jun 2011 10:27:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2011/06/17/6550535.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2011/06/17/6550535.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006291/5531573</fs:itemid></item><item><title>Java Swing 在JTable里增加动态数据的下拉框</title><link>http://blog.csdn.net/sl514/archive/2011/01/07/6122167.aspx</link><description>&lt;br /&gt;http://www.gbsou.com/2011/01/07/3400.htmlJava Swing 在JTable里增加动态数据的下拉框 &lt;br /&gt;首
先我得申明下。这个在jtable中增加下拉框的代码源自于网文,但是他增加的数据是写死的,并不使用于动态的生成,网上也基本上没这个技巧的介   
绍。经过2天的努力我终于做出来了,在此分享下,本文随便转载,Java本来就是开源的,不喜欢网上那种不让转载还唧唧歪歪的,但是请尊重我的劳动成果。
  在转载本文时保留我的连接:http://www.ij2ee.com/2011/01/07/java-swing-在jtable里增加动态数据的下拉框.html&lt;br /&gt;下面代码是我在网络上的代码上的修改。我会给出思路,修改只是把拥有一个一个字符串数组构造函数改写成了使用Vector,处于对字符串数组不易于自动增加大小,设置小了会造成数组越界异常,设置太大,倒是jtable上会出现大量的空白行。&lt;br /&gt;——————————————————–&lt;br /&gt;
 首先我们要继承JComboBox和DefaultCellEdit&lt;img src=&quot;http://www1.feedsky.com/t1/524006292/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2011/01/07/6122167.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Fri, 07 Jan 2011 11:31:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2011/01/07/6122167.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2011/01/07/6122167.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006292/5531573</fs:itemid></item><item><title>readText</title><link>http://blog.csdn.net/sl514/archive/2010/07/20/5749317.aspx</link><description>&lt;br /&gt;/**
	 * 转换excel中的内容为String
	 * @author www.gbsou.com
	 * @param cell
	 * @return String
	 */
	private String convertCell(HSSFCell cell) {
		NumberFormat formater = NumberFormat.getInstance();
		formater.setGroupingUsed(false);
		String cellValue = &quot;&quot;;
		if (cell == null) {
			return cellValue;
		} else {
			switch (cell.getCellType()) {
			case HSSFCell.CELL_TYPE_NUMERIC:
				cellValue = formater.format(cell.getNumericCellValue());
				break;
			case HSSFCell.CELL_TYPE_STR&lt;img src=&quot;http://www1.feedsky.com/t1/524006293/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/07/20/5749317.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 20 Jul 2010 13:00:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/07/20/5749317.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/07/20/5749317.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006293/5531573</fs:itemid></item><item><title>cookie</title><link>http://blog.csdn.net/sl514/archive/2010/07/20/5748456.aspx</link><description>&lt;br /&gt;MiniSite.Cookie={
	set:function(name,value,expires,path,domain){
		if(typeof expires==&quot;undefined&quot;){
			expires=new Date(new Date().getTime()+24*3600*1000);
		}
		document.cookie=name+&quot;=&quot;+escape(value)+((expires)?&quot;; expires=&quot;+expires.toGMTString():&quot;&quot;)+((path)?&quot;; path=&quot;+path:&quot;; path=/&quot;)+((domain)?&quot;;domain=&quot;+domain:&quot;&quot;);
	},
	get:function(name){
		var arr=document.cookie.match(new RegExp(&quot;(^| )&quot;+name+&quot;=([^;]*)(;|n)&quot;));
		if(arr!=null){
			return unescape(arr[2]);
		}
		return null;&lt;img src=&quot;http://www1.feedsky.com/t1/524006294/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/07/20/5748456.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 20 Jul 2010 09:00:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/07/20/5748456.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/07/20/5748456.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006294/5531573</fs:itemid></item><item><title>chuang</title><link>http://blog.csdn.net/sl514/archive/2010/07/19/5746788.aspx</link><description>&lt;br /&gt;import org.apache.poi.hssf.usermodel.HSSFCell;
import org.apache.poi.hssf.usermodel.HSSFCellStyle;
import org.apache.poi.hssf.usermodel.HSSFFont;
import org.apache.poi.hssf.usermodel.HSSFRow;
import org.apache.poi.hssf.usermodel.HSSFSheet;
import org.apache.poi.hssf.usermodel.HSSFWorkbook;
public boolean createExcel( Vector&gt; resultList){
        boolean flag=false;
        try {
            // 创建新的Excel 工作簿
            HSSFWorkbook workbook = new HSSFWorkbook();&lt;img src=&quot;http://www1.feedsky.com/t1/524006295/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/07/19/5746788.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Mon, 19 Jul 2010 16:27:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/07/19/5746788.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/07/19/5746788.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006295/5531573</fs:itemid></item><item><title>du</title><link>http://blog.csdn.net/sl514/archive/2010/07/19/5746413.aspx</link><description>&lt;br /&gt;public Map readExcel(String filePath) throws Exception, DataAccessException {
	// 判断上传的excel文件是否为空
	String flagEmpty = &quot;flagFalse&quot;;
	Map uploadMap = new HashMap();
	// 此集合存放从excel文件中读取的上传信息(不包括为空的行)
	List itemList = new ArrayList();
	FileInputStream fis = null;
	POIFSFileSystem fs;
	HSSFWorkbook wb;
	HSSFSheet sheet;
	HSSFRow row;
	HSSFCell cell;
	/*--------------------- 读取excel文件的内容开始 --------------------*&lt;img src=&quot;http://www1.feedsky.com/t1/524006296/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/07/19/5746413.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Mon, 19 Jul 2010 14:56:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/07/19/5746413.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/07/19/5746413.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006296/5531573</fs:itemid></item><item><title>在不影响页面内容的情况下来减少站点的页面输出量、增加页面的访问速度。</title><link>http://blog.csdn.net/sl514/archive/2010/07/06/5715715.aspx</link><description>&lt;br /&gt;&lt;br /&gt;         像我的博客关注Java日访问量为500-800左右。由于服务器租赁商做了流量限制,每个月只有9个G的流量。昨天到了后台查看已经用了2个G了。这才5天啊。这样算下来就是25日左右估计就要流量用完导致访问失败了。所以必须想办法减少页面的输出流量。要优化的东西有很多。&lt;br /&gt;        1  首先是要使用gzip压缩站点页面。&lt;br /&gt;&lt;br /&gt;       GZIP最早由Jean-loup Gailly和Mark Adler创建，用于UNIX系统的文件压缩。我们在Linux中经常会用到后缀为.gz的文件，它们就是GZIP格式的。现今已经成为Internet 上使用非常普遍的一种数据压缩格式，或者说一种文件格式。HTTP协议上的GZIP编码是一种用来改进WEB应用程序性能的技术。大流量的WEB站点常常使用GZIP压缩技术来让用户感受更快的速度。&lt;br /&gt;          可以参考文章:使用gzip减少页面输出量,加快访问速度 压缩后的大小是没压缩大小的五分之一。大大加快了页面的打开速度。&lt;br /&gt; 网址 http://www.gb&lt;img src=&quot;http://www1.feedsky.com/t1/524006297/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/07/06/5715715.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Tue, 06 Jul 2010 12:55:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/07/06/5715715.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/07/06/5715715.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006297/5531573</fs:itemid></item><item><title>直接来我的私人博客吧</title><link>http://blog.csdn.net/sl514/archive/2010/06/27/5697688.aspx</link><description>&lt;br /&gt;关注Java&lt;img src=&quot;http://www1.feedsky.com/t1/524006298/sl514/csdn.net/s.gif?r=http://blog.csdn.net/sl514/archive/2010/06/27/5697688.aspx&quot; border=&quot;0&quot; height=&quot;0&quot; width=&quot;0&quot; style=&quot;position:absolute&quot; /&gt;</description><pubDate>Sun, 27 Jun 2010 16:54:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2010/06/27/5697688.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2010/06/27/5697688.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006298/5531573</fs:itemid></item><item><title>-------------------------------------------------------标记  原博客 第5页整理完毕 下次从第6页开始</title><link>http://blog.csdn.net/sl514/archive/2008/12/28/3630423.aspx</link><description> </description><pubDate>Sun, 28 Dec 2008 21:42:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2008/12/28/3630423.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2008/12/28/3630423.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006299/5531573</fs:itemid></item><item><title>关于BeanWrapper的运用</title><link>http://blog.csdn.net/sl514/archive/2008/12/28/3630400.aspx</link><description> &lt;br /&gt;&lt;br /&gt;&lt;br /&gt; Object obj = Class.forName(&quot;domain.Test&quot;).newInstance();&lt;br /&gt;  BeanWrapper wrapper = new BeanWrapperImpl(obj);  //BeanWrapper实现了Wrapper接口 &lt;br /&gt;  wrapper.setPropertyValue(</description><pubDate>Sun, 28 Dec 2008 21:39:00 +0800</pubDate><author>sl514</author><guid isPermaLink="false">http://blog.csdn.net/sl514/archive/2008/12/28/3630400.aspx</guid><dc:creator>sl514</dc:creator><fs:srclink>http://blog.csdn.net/sl514/archive/2008/12/28/3630400.aspx</fs:srclink><fs:srcfeed>http://blog.csdn.net/sl514/feed.aspx</fs:srcfeed><fs:itemid>csdn.net/sl514/~7422537/524006300/5531573</fs:itemid></item></channel></rss>
