2000-03-17 01:45:06 +01:00
|
|
|
/* Copyright (C) 1999, 2000 Free Software Foundation
|
1999-05-05 13:05:57 +02: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 13:20:12 +01:00
|
|
|
import java.net.URL;
|
1999-05-05 13:05:57 +02:00
|
|
|
|
|
|
|
/* A very incomplete placeholder. */
|
|
|
|
|
|
|
|
public abstract class Toolkit
|
|
|
|
{
|
|
|
|
static Toolkit defaultToolkit;
|
2000-07-12 05:32:07 +02:00
|
|
|
static EventQueue systemEventQueue = new EventQueue();
|
1999-05-05 13:05:57 +02:00
|
|
|
|
|
|
|
public static synchronized Toolkit getDefaultToolkit()
|
|
|
|
{
|
|
|
|
if (defaultToolkit == null)
|
|
|
|
init();
|
|
|
|
return defaultToolkit;
|
|
|
|
}
|
|
|
|
|
|
|
|
protected abstract FramePeer createFrame(Frame target);
|
2000-03-17 01:45:06 +01:00
|
|
|
public abstract Image getImage(URL url);
|
1999-05-05 13:05:57 +02:00
|
|
|
|
2000-07-12 05:32:07 +02:00
|
|
|
public final EventQueue getSystemEventQueue()
|
|
|
|
{
|
|
|
|
return systemEventQueue;
|
|
|
|
}
|
|
|
|
|
2000-03-24 10:09:56 +01:00
|
|
|
private static void init() { }
|
|
|
|
// private static native void init();
|
1999-05-05 13:05:57 +02:00
|
|
|
// static { init(); }
|
|
|
|
}
|