summaryrefslogtreecommitdiff
path: root/libjava/gnu
diff options
context:
space:
mode:
authormkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 13:20:26 +0000
committermkoch <mkoch@138bc75d-0d04-0410-961f-82ee72b054a4>2004-07-09 13:20:26 +0000
commit8f249d5ad84743d4525b90c012cb5bdbab58b45f (patch)
treef56864248d1d9fdf748748c085ee49aa414eba69 /libjava/gnu
parent2935193bdf41cf3f2b2d83c9196324e62301eeea (diff)
downloadgcc-8f249d5ad84743d4525b90c012cb5bdbab58b45f.tar.gz
2004-07-09 Michael Koch <konqueror@gmx.de>
* gnu/java/awt/EmbeddedWindow.java: Load native library for setWindowPeer method. git-svn-id: svn+ssh://gcc.gnu.org/svn/gcc/trunk@84364 138bc75d-0d04-0410-961f-82ee72b054a4
Diffstat (limited to 'libjava/gnu')
-rw-r--r--libjava/gnu/java/awt/EmbeddedWindow.java9
1 files changed, 8 insertions, 1 deletions
diff --git a/libjava/gnu/java/awt/EmbeddedWindow.java b/libjava/gnu/java/awt/EmbeddedWindow.java
index ba0184a6307..f938f55b791 100644
--- a/libjava/gnu/java/awt/EmbeddedWindow.java
+++ b/libjava/gnu/java/awt/EmbeddedWindow.java
@@ -1,5 +1,5 @@
/* EmbeddedWindow.java --
- Copyright (C) 2003 Free Software Foundation, Inc.
+ Copyright (C) 2003, 2004 Free Software Foundation, Inc.
This file is part of GNU Classpath.
@@ -38,6 +38,7 @@ exception statement from your version. */
package gnu.java.awt;
+import gnu.classpath.Configuration;
import gnu.java.awt.peer.EmbeddedWindowPeer;
import java.awt.Frame;
import java.awt.Toolkit;
@@ -50,6 +51,12 @@ import java.awt.Toolkit;
*/
public class EmbeddedWindow extends Frame
{
+ static
+ {
+ if (Configuration.INIT_LOAD_LIBRARY)
+ System.loadLibrary("javaawt");
+ }
+
private long handle;
/**