会员
周边
新闻
博问
闪存
众包
赞助商
Chat2DB
所有博客
当前博客
我的博客
我的园子
账号设置
会员中心
简洁模式
...
退出登录
注册
登录
GAN_REPLACE
博客园
首页
新随笔
联系
订阅
管理
2016年5月24日
Java Learning (10) - Swing用户界面组件
摘要: MVC - model, view, controller. (Model:存储内容;View:显示内容;Controller:处理事件.) Object -> Component -> Container: Container: Window && JComponent; Window: Fram
阅读全文
posted @ 2016-05-24 14:51 GAN_REPLACE
阅读(120)
评论(0)
推荐(0)
2016年4月11日
Java Learning (9)
摘要: 事件处理: ActionEvent && WindowEvent: ActionEvent -- 包含一个ACTION_PERFORMED。触发的动作有单击button,双击选项,选择指定菜单项,回车键输入等。 addActionListener(<al>) -- al ->ActionListen
阅读全文
posted @ 2016-04-11 11:10 GAN_REPLACE
阅读(140)
评论(0)
推荐(0)
2016年3月10日
Java Learning (8)
摘要: 图形程序设计: frame : 框架 - 顶层窗口(没有包含在其他窗口中的窗口) - Frame / JFrame (Swing组件都是以J开头的); 重要方法: dispose() , setIconImage(), setTitle(), setResizable(), setBounds()
阅读全文
posted @ 2016-03-10 16:36 GAN_REPLACE
阅读(131)
评论(0)
推荐(0)
2016年3月8日
Java Learning(7)
摘要: 接口 Tips: 不是类,是对类的需求描述。 如果类遵从某个特定接口,就履行某服务。 实现一个接口: 实现接口中定义的方法均为public,并且需要在实现类中注明public,以避免编译器试图改变为更弱的访问权限而带来的警告。 特性: 接口不能实例化,但却可以声明接口变量且该变量必须引用实现了对应接
阅读全文
posted @ 2016-03-08 10:56 GAN_REPLACE
阅读(214)
评论(0)
推荐(0)
2016年1月25日
Tips--java
摘要: Difference between "==null" and ".equals(null)" == reference compare; .equals() is a method; notification: while sample = null; sample.equals(null) wi
阅读全文
posted @ 2016-01-25 15:45 GAN_REPLACE
阅读(116)
评论(0)
推荐(0)
2015年7月20日
Java Learning(6) -- 继承Tips
摘要: 自动打包 && 自动拆包 sample ArrayList = new ArrayList(); list.add(3); int i = list.get(0);3会被自动打包成Integer类型,随后被自动拆包为int型。Tips: 这里处理定长的数组类型,ArrayList...
阅读全文
posted @ 2015-07-20 16:53 GAN_REPLACE
阅读(182)
评论(0)
推荐(0)
2015年6月3日
IBM websphere安装到部署
摘要: 转载于:http://long0428.sinaapp.com/archives/508
阅读全文
posted @ 2015-06-03 09:37 GAN_REPLACE
阅读(155)
评论(0)
推荐(0)
2015年5月29日
Java Learning(5) -- ArrayList
摘要: 如何动态的查看ArrayList的容量?在ArrayList提供的方法中,有三个方法:size() -- 返回当前列表中的元素数量;trimToSize() -- 将当前ArrayList容量调整为列表的当前大小;ensureCapacity(int minCapacity) -- 如果需要扩展列表...
阅读全文
posted @ 2015-05-29 10:42 GAN_REPLACE
阅读(204)
评论(0)
推荐(0)
2015年5月14日
Java Learning(4)
摘要: Java继承: extends,所有继承都为公共继承。super.Method(); 注意super只能用在子类的构造函数中以及非static的方法中。被定义为final类型的父类方法是不允许在子类中被重载的。继承发生在子类和父类之间,可以进行类型转换,但是当父类转换成子类之前需用instanceo...
阅读全文
posted @ 2015-05-14 14:54 GAN_REPLACE
阅读(137)
评论(0)
推荐(0)
Java Learning (3)
摘要: 类的积累:在写类的时候,必须做好安全性考虑,为确保类中各个元素被安全使用及读取,必须符合下面三个原则:所有域中的变量必须为private,类中必须设定public的域访问方法,类中应设定必需的域修改方法:e.g.public class test{ private String name; ...
阅读全文
posted @ 2015-05-14 11:38 GAN_REPLACE
阅读(176)
评论(0)
推荐(0)
下一页
公告