2000-03-17 08:45:06 +08:00
|
|
|
/* Copyright (C) 1999, 2000 Free Software Foundation
|
1999-05-05 19:05:57 +08:00
|
|
|
|
|
|
|
This file is part of libjava.
|
|
|
|
|
|
|
|
This software is copyrighted work licensed under the terms of the
|
|
|
|
Libjava License. Please consult the file "LIBJAVA_LICENSE" for
|
|
|
|
details. */
|
|
|
|
|
|
|
|
package java.awt;
|
|
|
|
import java.awt.peer.*;
|
2000-03-19 20:20:12 +08:00
|
|
|
import java.net.URL;
|
1999-05-05 19:05:57 +08:00
|
|
|
|
|
|
|
/* A very incomplete placeholder. */
|
|
|
|
|
|
|
|
public abstract class Toolkit
|
|
|
|
{
|
|
|
|
static Toolkit defaultToolkit;
|
|
|
|
|
|
|
|
public static synchronized Toolkit getDefaultToolkit()
|
|
|
|
{
|
|
|
|
if (defaultToolkit == null)
|
|
|
|
init();
|
|
|
|
return defaultToolkit;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected abstract FramePeer createFrame(Frame target);
|
2000-03-17 08:45:06 +08:00
|
|
|
public abstract Image getImage(URL url);
|
1999-05-05 19:05:57 +08:00
|
|
|
|
2000-03-24 17:09:56 +08:00
|
|
|
private static void init() { }
|
|
|
|
// private static native void init();
|
1999-05-05 19:05:57 +08:00
|
|
|
// static { init(); }
|
|
|
|
}
|