摘要: android:stretchColumns="0,3" 拉伸第一个和第4个 这个属性在tablelayout布局里使用制作登录界面的布局时候,可以使用来自为... 阅读全文
posted @ 2015-06-12 14:57 liupengcheng 阅读(628) 评论(0) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng addWindowListener(new WindowAdapter() { public void windowClosing(WindowEvent e) { System.exit(0); } }); /** * Creat... 阅读全文
posted @ 2014-11-04 11:33 liupengcheng 阅读(225) 评论(0) 推荐(0) 编辑
摘要: 1、file-setting-project setting-file Encoding 按照下图所示设置 2、idea 右下角 选择 utf-8 效果如下图 阅读全文
posted @ 2014-11-03 17:09 liupengcheng 阅读(297) 评论(0) 推荐(0) 编辑
摘要: 转载自 http://www.myexception.cn/program/1224226.html Intellij IDEA 搜索框显示乱码 按以下步骤设置,就可以解决中文乱码显示的问题了。 一、进入设置页。File-->Settings (快捷键:Ctrl+Alt+S) 二、进入IDE Settings 里的 General 项,在File Encoding 中 的 Defa... 阅读全文
posted @ 2014-10-30 14:41 liupengcheng 阅读(1200) 评论(0) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /** * Created by Administrator on 2014/10/24. * synchronized 锁旗标,改变标志位,已达到同一时刻只有一个线程在执行有效操作。 */ //copyright©liu... 阅读全文
posted @ 2014-10-24 10:30 liupengcheng 阅读(284) 评论(0) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /** * join public final void join() throws InterruptedException等待该线程终止。 抛出: InterruptedException - 如果任何... 阅读全文
posted @ 2014-10-24 09:27 liupengcheng 阅读(338) 评论(2) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /** * Created by Administrator on 2014/10/23. * * setDaemon public final void setDaemon(boolean... 阅读全文
posted @ 2014-10-23 15:15 liupengcheng 阅读(970) 评论(0) 推荐(0) 编辑
摘要: //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng /** * Created by Administrator on 2014/10/23. *以下事例模拟4个窗口售100张票 */ // 创建线程的另一种方法是声明实现 Runnable 接口的类。该类然后实现 ru... 阅读全文
posted @ 2014-10-23 14:40 liupengcheng 阅读(494) 评论(0) 推荐(0) 编辑
摘要: /** * Created by Administrator on 2014/9/29. * * throws和throw的区别 * * throws使用在函数上,throw使用在函数内 * * throws后面跟的是异常类,可以跟多个,用逗号连接 * throw后面跟的是异常对象 ... 阅读全文
posted @ 2014-09-29 14:52 liupengcheng 阅读(374) 评论(0) 推荐(0) 编辑
摘要: /** * Created by Administrator on 2014/9/29. * * 自定义异常,需要继承Exception. */ //copyright©liupengcheng //http://www.cnblogs.com/liupengcheng class fushuException ... 阅读全文
posted @ 2014-09-29 14:23 liupengcheng 阅读(85) 评论(0) 推荐(0) 编辑