diff options
author | Sven Gothel <[email protected]> | 2011-10-12 03:00:19 +0200 |
---|---|---|
committer | Sven Gothel <[email protected]> | 2011-10-12 03:00:19 +0200 |
commit | 0baf1e9fb5b1fa9a1e5c15398486502112a82b7d (patch) | |
tree | 1c4a73d63f8f94625c42dc4812fdb2a58260bfbc | |
parent | 49ffa8ef74aedde9b890d78af2bf526c1bca6f2c (diff) |
NEWTCanvasAWT: Add AWT GraphicsConfiguration in constructor, allowing transparency
-rw-r--r-- | src/newt/classes/com/jogamp/newt/awt/NewtCanvasAWT.java | 16 |
1 files changed, 16 insertions, 0 deletions
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; @@ -79,6 +80,13 @@ public class NewtCanvasAWT extends java.awt.Canvas implements WindowClosingProto } /** + * Instantiates a NewtCanvas without a NEWT child.<br> + */ + public NewtCanvasAWT(GraphicsConfiguration gc) { + super(gc); + } + + /** * Instantiates a NewtCanvas with a NEWT child. */ public NewtCanvasAWT(Window 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() ) { |