gcc/libjava/java/awt/Toolkit.java

39 lines
884 B
Java
Raw Normal View History

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