方法
weixin_42325507
这个作者很懒,什么都没留下…
展开
-
(笔记)日期的格式化:SimpleDateFormat使用方法
SimpleDateFormat函数的继承关系:java.lang.Object|+----java.text.Format|+----java.text.DateFormat|+----java.text.SimpleDateFormat/**SimpleDateFormat函数语法:G 年代标志符y 年M 月d 日h 时 在上午或下午 (1~12)H 时...转载 2018-08-01 16:58:01 · 805 阅读 · 0 评论 -
(笔记)Swing窗口:小功能代码块
1.窗体内容居中代码块: int width = 400, height = 300; this.setSize(width, height); // 设置当前窗体的大小 this.setTitle("系统登录"); // 设置当前窗体的标题 this.setResizable(false); // 设置窗体不允许最大化 // 窗体内容居中 int w = (Tool...原创 2018-08-15 06:27:37 · 181 阅读 · 0 评论 -
(笔记)异常处理:try/catch的应用例子(finally待整理)
题目:判断传入的字符串是否为ip地址 /** * 判断传入的字符串是否为ip地址 * @param ip * @return * @throws Exception */ public static boolean isIP(String ip) throws Exception { boolean isTrue=false; ip = ip.repla...原创 2018-08-08 16:25:29 · 409 阅读 · 0 评论 -
(笔记)工具类代码:Swing窗口的简单即时计时器
Swing定时器的编写原创 2018-08-21 18:45:21 · 1212 阅读 · 0 评论