上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 79 下一页
摘要: whiteCellStyle.setBorderBottom(HSSFCellStyle.BORDER_THIN); //下边框 whiteCellStyle.setBorderLeft(HSSFCellStyle.BORDER_THIN);//左边框 whiteCellStyle.setBorde 阅读全文
posted @ 2021-07-29 10:47 信铁寒胜 阅读(2016) 评论(0) 推荐(0)
摘要: 合并单元格的方法:指定 4 个参数,起始行,结束行,起始列,结束列。然后这个区域将被合并。 CellRangeAddress region = new CellRangeAddress(startRow, endRow, startCol, endCol); sheet.addMergedRegio 阅读全文
posted @ 2021-07-29 10:35 信铁寒胜 阅读(2683) 评论(0) 推荐(0)
摘要: 我们先来重温一下题目,有什么疑问的可以移步传送门。String[]和List< String >的区别及相互转换 public class test { public static void main(String[] args) { //定义一个字符长度为5的字符串 String[] string 阅读全文
posted @ 2021-07-27 10:59 信铁寒胜 阅读(147) 评论(0) 推荐(0)
摘要: 需求:利用poi来设置公式 1、sheet对象 sheet.setForceFormulaRecalculation(true); //设为true 2、 Cell.setCellFormula(“SUM(G3,G4,G5,G6,G7,G8,G9,G10,G11,G12,G13,G14,G15,G1 阅读全文
posted @ 2021-07-26 13:05 信铁寒胜 阅读(1214) 评论(0) 推荐(0)
摘要: 在查询器“常规...”,然后输入类型:“文件夹”。就能找到,查询上面的那个56,不是56个对象,而是56次查询 阅读全文
posted @ 2021-07-23 10:07 信铁寒胜 阅读(182) 评论(0) 推荐(0)
摘要: 工具 》版本规则 》查看/设置当前 阅读全文
posted @ 2021-07-22 10:20 信铁寒胜 阅读(207) 评论(0) 推荐(0)
摘要: 代码如下: public static boolean valIsNumber(String value) { Pattern pattern = Pattern.compile("^[-+]?(([0-9]+)([.]([0-9]+))?|([.]([0-9]+))?)$"); Matcher i 阅读全文
posted @ 2021-07-22 09:34 信铁寒胜 阅读(242) 评论(0) 推荐(0)
摘要: 要想显示JTable表头,主要两种方式:阿青私下将其称之为隐式显示和显式显示。 显示方式:隐式显示:将JTable放入JScrollPane中,可自动显示表头。显式显示:就是放入其他组件例如JPanel中,表头不会自动显示。此时要显式调用方法public JTableHeader getTableH 阅读全文
posted @ 2021-07-21 09:20 信铁寒胜 阅读(2311) 评论(0) 推荐(0)
摘要: 换成用JScrollPane 阅读全文
posted @ 2021-07-20 21:33 信铁寒胜 阅读(204) 评论(0) 推荐(0)
摘要: 解决方法: 1、先检查系统环境的JRE版本,不能超过1.8,如果超过了要改回1.8 2、如果你是用eclipse来启动TC,则要把运行TC的JRE换成JRE1.8版本 阅读全文
posted @ 2021-07-13 17:15 信铁寒胜 阅读(381) 评论(0) 推荐(0)
上一页 1 ··· 63 64 65 66 67 68 69 70 71 ··· 79 下一页