/* -*- Mode: C; c-file-style: "gnu" -*-
   graphicsenv.c -- native methods for sun/awt/X11GraphicsEnvironment
   Created: Chris Toshok <toshok@hungry.com>, 18-Nov-1998.
 */
/*
  This file is part of Japhar, the GNU Virtual Machine for Java Bytecodes.
  Japhar is a project of The Hungry Programmers, GNU, and OryxSoft.

  Copyright (C) 1997, 1998, 1999 The Hungry Programmers

  This library is free software; you can redistribute it and/or
  modify it under the terms of the GNU Library General Public
  License as published by the Free Software Foundation; either
  version 2 of the License, or (at your option) any later version.

  This library is distributed in the hope that it will be useful,
  but WITHOUT ANY WARRANTY; without even the implied warranty of
  MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
  Library General Public License for more details.

  You should have received a copy of the GNU Library General Public
  License along with this library; if not, write to the Free Software
  Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA  02111-1307  USA
*/

#include "config.h"
#include "jni.h"
#include "common.h"

/* JDK1.2 */
JNIEXPORT jobjectArray JNICALL
Java_sun_awt_X11GraphicsEnvironment_getNativeFonts(JNIEnv *env,
						   jobject graphicsenv)
{
  jobjectArray ret_val = (*env)->NewObjectArray(env, 1,
						(*env)->FindClass(env, "java/lang/String"),
						NULL);

  (*env)->SetObjectArrayElement(env, ret_val, 0,
				(*env)->NewStringUTF(env, "fixed"));

  return ret_val;
}

/* JDK1.2 */
JNIEXPORT jint JNICALL
Java_sun_awt_X11GraphicsEnvironment_getNumScreens(JNIEnv *env,
						  jobject graphicsenv)
{
  return 1; /* XXXX */
}

/* JDK1.2 */
JNIEXPORT void JNICALL
Java_sun_awt_X11GraphicsEnvironment_initDisplay(JNIEnv *env,
						jclass cls)
{
  initialize_awt();
}
