HSSFCell cell = null;
HSSFRow row = sheet.createRow(0);
HSSFRichTextString h0 = new HSSFRichTextString("加边框");
cell = row.createCell((short) 0);
cell.setCellValue(h0);
就给我上面这个单元格加个就行,就只加边框,请不要复制网上查的 谢谢.
解决方案 »
- tomcat服务起不来!说是超时
- js怎么调用参数
- win7下 ip和域名在hosts下绑定不生效问题。。。
- WebLogic8.x中控制台无法登陆
- 各位大虾:救命呀!我用spring+hibernate出错了,出错信息如下,请各位大虾救命!
- 急问!!!!!!来者有分!!!!
- zzzhc 请进! 100分求解答:我想解析一个html页面,把把所有的超连接得到?
- 在resin中实现中文文件名下载的问题!!急!!!!!
- VisualAge 到 WSAD的转移
- Weblogic 文件上传,request传数据问题
- Java类成员变量 的初始化问题
- spring+struts1.2+hibernate3 如何支持clob类型
....
cell = row.createCell((short) 0);
cell.setCellValue(h0);
HSSFCellStyle style = workbook.createCellStyle();
style.setBorderBottom((short)2);//下边框
style.setBorderLeft((short)2);//左边框
style.setBorderRight((short)2);//右边框
style.setBorderTop((short)2);//上边框
cell.setCellStyle(style); lz用的poi