易截截图软件、单文件、免安装、纯绿色、仅160KB

Sun Java moved to the Partner repository

For Ubuntu 10.04 LTS, the sun-java6 packages have been dropped from the Multiverse section of the Ubuntu archive. It is recommended that you use openjdk-6 instead.
If you can not switch from the proprietary Sun JDK/JRE to OpenJDK, you can install sun-java6 packages from the Canonical Partner Repository. You can configure your system to use this repository via command-line:
add-apt-repository "deb http://archive.canonical.com/ lucid partner"


相关文档:

Java设计模式之:Iterator链表模式

先来了解一下链表模式的原理:
首先写一个JavaBean,内容是要添加的元素和该元素的节点。
public class NodeBean implements Serializable
{
   
    private Object data; //元素本身
    private NodeBean next; //下一个节点
   
  &n ......

Java SWT 窗口居中对齐

public static void CentreWnd(Shell shell){
int width = shell.getMonitor().getClientArea().width;
int height = shell.getMonitor().getClientArea().height;
int x = shell.getSize().x;
int y = shell.getSize().y;
if (x > width) {
shell.getSize().x = width;
}
if (y > height) ......

Java单例模式


 1、饿汉式
  package singleton;
  /**
  * 饿汉式单例
  * @author 蒋明原
  *
  */
  public class HungrySingleton {
  /**jvm保证instance只被初始化一次*/
  private static HungrySingleton instance = new HungrySingleton();
  /**阻止外部使用new实例化对象*/
  private Hun ......

用设计模式的思想来定制Java中的事件

级别: 初级

咸峰
(hutun@263.net
),
2001 年 5 月 28 日
随着JAVA的迅猛发展,JDK版本的不断更
新,JAVA新的事件模型与旧的JDK模型也有了本质的区别,它的事件模型也有了很大的区别。由于现在的编程都是采用事件驱动,所以很有必要了解的事件模
型,我们下面从定制事件的实际出发来具体讨论。
问题的提出
......
© 2009 ej38.com All Rights Reserved. 关于E健网联系我们 | 站点地图 | 赣ICP备09004571号