aboutsummaryrefslogtreecommitdiffstats
path: root/src/test/com/jogamp/opengl
diff options
context:
space:
mode:
Diffstat (limited to 'src/test/com/jogamp/opengl')
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/NewtAWTReparentingKeyAdapter.java8
-rw-r--r--src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03bAWT.java7
2 files changed, 14 insertions, 1 deletions
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/NewtAWTReparentingKeyAdapter.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/NewtAWTReparentingKeyAdapter.java
index 75585291d..46748cb52 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/NewtAWTReparentingKeyAdapter.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/NewtAWTReparentingKeyAdapter.java
@@ -82,6 +82,14 @@ class NewtAWTReparentingKeyAdapter extends KeyAdapter {
glWindow.setPosition(frame.getX()+frame.getWidth()+dx, frame.getY()+dy);
}
glWindow.requestFocus();
+ } else if(e.getKeyChar()=='s') {
+ if(glWindow.getParent()==null) {
+ System.err.println("XXX glWin to 100/100");
+ glWindow.setPosition(100, 100);
+ } else {
+ System.err.println("XXX glWin to 0/0");
+ glWindow.setPosition(0, 0);
+ }
}
}
} \ No newline at end of file
diff --git a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03bAWT.java b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03bAWT.java
index c7c067015..46a63dc14 100644
--- a/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03bAWT.java
+++ b/src/test/com/jogamp/opengl/test/junit/newt/parenting/TestParenting03bAWT.java
@@ -98,23 +98,28 @@ public class TestParenting03bAWT extends UITestCase {
Container cont1 = new Container();
cont1.setLayout(new BorderLayout());
cont1.add(newtCanvasAWT1, BorderLayout.CENTER);
+ System.err.println("******* Cont1 setVisible");
cont1.setVisible(true);
Container cont2 = new Container();
cont2.setLayout(new BorderLayout());
cont2.add(newtCanvasAWT2, BorderLayout.CENTER);
+ System.err.println("******* Cont2 setVisible");
cont2.setVisible(true);
final Container f_cont2 = cont2;
frame1.setLayout(new BorderLayout());
+ frame1.add(new Label("NORTH"), BorderLayout.NORTH);
+ frame1.add(new Label("CENTER"), BorderLayout.CENTER);
+ frame1.add(new Label("SOUTH"), BorderLayout.SOUTH);
frame1.add(cont1, BorderLayout.EAST);
- frame1.add(new Label("center"), BorderLayout.CENTER);
frame1.setLocation(0, 0);
frame1.setSize((int)size.getWidth()*2, (int)size.getHeight()*2);
final Frame f_frame1 = frame1;
javax.swing.SwingUtilities.invokeAndWait(new Runnable() {
public void run() {
f_frame1.pack();
+ System.err.println("******* Frame setVisible");
f_frame1.setVisible(true);
}});