From 0baf1e9fb5b1fa9a1e5c15398486502112a82b7d Mon Sep 17 00:00:00 2001 From: Sven Gothel Date: Wed, 12 Oct 2011 03:00:19 +0200 Subject: NEWTCanvasAWT: Add AWT GraphicsConfiguration in constructor, allowing transparency --- src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 16 ++++++++++++++++ 1 file changed, 16 insertions(+) (limited to 'src/newt/classes') diff --git a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java index 929980d52..b2d97c7d5 100644 --- a/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java +++ b/src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java @@ -36,6 +36,7 @@ import java.security.*; import java.awt.Canvas; import java.awt.EventQueue; import java.awt.Graphics; +import java.awt.GraphicsConfiguration; import java.awt.KeyboardFocusManager; import javax.media.nativewindow.NativeWindow; @@ -78,6 +79,13 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto super(); } + /** + * Instantiates a NewtCanvas without a NEWT child.
+ */ + public NewtCanvasAWT(GraphicsConfiguration gc) { + super(gc); + } + /** * Instantiates a NewtCanvas with a NEWT child. */ @@ -86,6 +94,14 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto setNEWTChild(child); } + /** + * Instantiates a NewtCanvas with a NEWT child. + */ + public NewtCanvasAWT(GraphicsConfiguration gc, Window child) { + super(gc); + setNEWTChild(child); + } + class FocusAction implements Window.FocusRunnable { public boolean run() { if ( EventQueue.isDispatchThread() ) { -- cgit v1.2.3