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"
相关文档:
先来了解一下链表模式的原理:
首先写一个JavaBean,内容是要添加的元素和该元素的节点。
public class NodeBean implements Serializable
{
private Object data; //元素本身
private NodeBean next; //下一个节点
&n ......
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) ......
同样的程序,在别人的电脑上都可以用,在我的电脑上却无论如何都通不过,郁闷啊。
昨天遇到一个问题搞了一天都没有解决,
这个程序在别人的电脑上用都可以通过,只有在我的电脑上无法通过
,我一开始装的是JDK6.0,后来卸载了装成了JDK5.0(为了和所学教程保持一致,
以及我宿舍通过测试的机器也是装的JDK5.0),
但是 ......
public class EchoDefaultSystemEncoding
{
public static void main(String[] args)
{
String encoding = System.getProperty("file.encoding");
System ......
级别: 初级
唐
咸峰
(hutun@263.net
),
2001 年 5 月 28 日
随着JAVA的迅猛发展,JDK版本的不断更
新,JAVA新的事件模型与旧的JDK模型也有了本质的区别,它的事件模型也有了很大的区别。由于现在的编程都是采用事件驱动,所以很有必要了解的事件模
型,我们下面从定制事件的实际出发来具体讨论。
问题的提出
......