From 98f9eef8279680a7fbd3fccb5840381faf1d5c01 Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 7 Sep 2011 01:34:34 +0200 Subject: NewtCanvasAWT: setNEWTChild() shall not be public - removeNotify shall not make NEWT child invisible (?) --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-) (limited to 'src/newt/classes/com') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 80dcdba47..3eb97b3f9 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -122,13 +122,13 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto }; /** sets a new NEWT child, provoking reparenting on the NEWT level. */ - public NewtCanvasAWT setNEWTChild(Window child) { + /*package */ NewtCanvasAWT setNEWTChild(Window child) { if(newtChild!=child) { newtChild = child; if(null!=nativeWindow) { java.awt.Container cont = AWTMisc.getContainer(this); // reparent right away, addNotify has been called already - reparentWindow( (null!=newtChild) ? true : false, cont ); + reparentWindow( (null!=child) ? true : false, cont ); } } return this; @@ -151,7 +151,7 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto return awtWindowClosingProtocol.setDefaultCloseOperation(op); } - void configureNewtChild(boolean attach) { + /* package */ void configureNewtChild(boolean attach) { if(null!=awtAdapter) { awtAdapter.removeFrom(this); awtAdapter=null; @@ -233,7 +233,6 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto } else { configureNewtChild(false); nativeWindow = null; - newtChild.setVisible(false); newtChild.reparentWindow(null); } } -- cgit v1.2.3