04 2010 档案

     摘要: the approach of writing clone method is:
1.Implements Cloneable interface
2.Override the clone method
2.1 Make the clone method to public method
2.2 Call super.clone() to produce the new object
2.3 Clone members  阅读全文

posted @ 2010-04-21 10:51 祝嘉 阅读(356) | 评论 (0)  编辑 |

     摘要: Eclipse在Ubuntu9.10(或其他Linux系统)中运行时,经常会出现鼠标点击按钮无效需要键盘的enter键才可以的情况。首先这是一个bug,出现这种情况的原因是新版本的GTK和eclipse冲突。解决办法如下:
在eclipse目录下建一个eclipse-patch文件,在该文件中加入如下代码
#!/bin/bash
export GDK_NATIVE_WINDOWS=true
/你的eclipse目录/eclipse  阅读全文

posted @ 2010-04-18 13:04 祝嘉 阅读(393) | 评论 (0)  编辑 |