From dbf61f36b04d7921197d447430a66e4635d65beb Mon Sep 17 00:00:00 2001
From: Sven Gothel <sgothel@jausoft.com>
Date: Sat, 12 Sep 2009 15:18:19 -0700
Subject: Test (demos.GLNewtRun) NEWT: Native window parenting (X11: OK);
 AWTWindow external Frame OK

---
 src/demos/es1/RedSquare.java | 6 +++++-
 1 file changed, 5 insertions(+), 1 deletion(-)

(limited to 'src/demos/es1/RedSquare.java')

diff --git a/src/demos/es1/RedSquare.java b/src/demos/es1/RedSquare.java
index 187a5af..02e8454 100755
--- a/src/demos/es1/RedSquare.java
+++ b/src/demos/es1/RedSquare.java
@@ -14,13 +14,17 @@ import com.sun.javafx.newt.opengl.*;
 
 public class RedSquare extends Thread implements WindowListener, KeyListener, MouseListener, GLEventListener {
 
-    private GLWindow window;
+    public GLWindow window;
     private GLProfile glp;
     private GLU glu;
     private boolean quit = false;
     private String glprofile;
     private int type;
 
+    public RedSquare() {
+        this(null, USE_NEWT);
+    }
+
     public RedSquare(String glprofile, int type) {
         super();
         this.glprofile=glprofile;
-- 
cgit v1.2.3