diff options
author | Sven Gothel <sgothel@jausoft.com> | 2011-09-07 01:34:34 +0200 |
---|---|---|
committer | Sven Gothel <sgothel@jausoft.com> | 2011-09-07 01:34:34 +0200 |
commit | 98f9eef8279680a7fbd3fccb5840381faf1d5c01 (patch) | |
tree | 092a257a8f7b07fc2828d0c952e36a83ec1bd575 /src/newt/classes | |
parent | b65e1e76d413b70e5593173e6bd36d30675554a6 (diff) |
NewtCanvasAWT: setNEWTChild() shall not be public - removeNotify shall not make NEWT child invisible (?)
Diffstat (limited to 'src/newt/classes')
-rw-r--r-- | src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 7 |
1 files changed, 3 insertions, 4 deletions
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); } } |