net.java.joglutils
Class GLJFrame

java.lang.Object
  extended by java.awt.Component
      extended by java.awt.Container
          extended by java.awt.Window
              extended by java.awt.Frame
                  extended by javax.swing.JFrame
                      extended by net.java.joglutils.GLJFrame
All Implemented Interfaces:
ImageObserver, MenuContainer, Serializable, Accessible, RootPaneContainer, WindowConstants

public class GLJFrame
extends JFrame

A JFrame containing a heavyweight GLCanvas with a single attached GLEventListener. Note: the default close operation has been changed to exit rather than dispose.

See Also:
Serialized Form

Nested Class Summary
 
Nested classes/interfaces inherited from class javax.swing.JFrame
JFrame.AccessibleJFrame
 
Nested classes/interfaces inherited from class java.awt.Frame
Frame.AccessibleAWTFrame
 
Nested classes/interfaces inherited from class java.awt.Window
Window.AccessibleAWTWindow
 
Nested classes/interfaces inherited from class java.awt.Container
Container.AccessibleAWTContainer
 
Nested classes/interfaces inherited from class java.awt.Component
Component.AccessibleAWTComponent, Component.BltBufferStrategy, Component.FlipBufferStrategy
 
Field Summary
 
Fields inherited from class javax.swing.JFrame
accessibleContext, EXIT_ON_CLOSE, rootPane, rootPaneCheckingEnabled
 
Fields inherited from class java.awt.Frame
CROSSHAIR_CURSOR, DEFAULT_CURSOR, E_RESIZE_CURSOR, HAND_CURSOR, ICONIFIED, MAXIMIZED_BOTH, MAXIMIZED_HORIZ, MAXIMIZED_VERT, MOVE_CURSOR, N_RESIZE_CURSOR, NE_RESIZE_CURSOR, NORMAL, NW_RESIZE_CURSOR, S_RESIZE_CURSOR, SE_RESIZE_CURSOR, SW_RESIZE_CURSOR, TEXT_CURSOR, W_RESIZE_CURSOR, WAIT_CURSOR
 
Fields inherited from class java.awt.Component
BOTTOM_ALIGNMENT, CENTER_ALIGNMENT, LEFT_ALIGNMENT, RIGHT_ALIGNMENT, TOP_ALIGNMENT
 
Fields inherited from interface javax.swing.WindowConstants
DISPOSE_ON_CLOSE, DO_NOTHING_ON_CLOSE, HIDE_ON_CLOSE
 
Fields inherited from interface java.awt.image.ImageObserver
ABORT, ALLBITS, ERROR, FRAMEBITS, HEIGHT, PROPERTIES, SOMEBITS, WIDTH
 
Constructor Summary
GLJFrame(javax.media.opengl.GLEventListener listener)
          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, boolean fullscreen)
          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, javax.media.opengl.GLCapabilities capabilities)
          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, javax.media.opengl.GLContext contextToShareWith)
          Creates new form GLJFrame
GLJFrame(javax.media.opengl.GLEventListener listener, int width, int height)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener, boolean fullscreen)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener, javax.media.opengl.GLCapabilities capabilities)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener, javax.media.opengl.GLCapabilities capabilities, javax.media.opengl.GLCapabilitiesChooser chooser)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener, javax.media.opengl.GLCapabilities caps, javax.media.opengl.GLCapabilitiesChooser chooser, javax.media.opengl.GLContext contextToShareWith)
          Creates new form GLJFrame
GLJFrame(String title, javax.media.opengl.GLEventListener listener, int width, int height)
          Creates new form GLJFrame
 
Method Summary
 void addInputMethodListener(InputMethodListener l)
          Adds the specified input method listener to receive input method events from this component and the GLCanvas.
 void addKeyListener(KeyListener l)
          Adds the specified key listener to receive key events from this component and the GLCanvas.
 void addMouseListener(MouseListener l)
          Adds the specified mouse listener to receive mouse events from this component and the GLCanvas.
 void addMouseMotionListener(MouseMotionListener l)
          Adds the specified mouse motion listener to receive mouse motion events from this component and the GLCanvas.
 void addMouseWheelListener(MouseWheelListener l)
          Adds the specified mouse wheel listener to receive mouse wheel events from this component and the GLCanvas.
 void clearInputListeners()
          Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas.
 com.sun.opengl.util.Animator generateAnimator()
          Generates a new Animator for updating the GLCanvas, and starts it.
 com.sun.opengl.util.Animator getAnimator()
          Retrieves the attached Animator connected to the GLCanvas.
 javax.media.opengl.GLAutoDrawable getAutoDrawable()
          Retrieves a GLAutoDrawable view of the associated GLCanvas
 javax.media.opengl.GLContext getContext()
          Retrieves the GLContext associated with the GLCanvas on this GLJFrame
 javax.media.opengl.GL getGL()
          Gets the GL pipeline for the canvas in this GLJPane.
 javax.media.opengl.GLCapabilities getGLCapabilities()
          The GLCapabilities used with the GLCanvas.
 javax.media.opengl.GLEventListener getGLEventListener()
          Retrieves the event listener for the GLJFrame
 boolean isAnimated()
          Determines if this GLJFrame is running on an Animator.
 boolean isFullscreen()
          Determines if the Frame is the Full-Screen Exclusive Mode window.
 void removeAnimator()
          Stops and removes the Animator.
 void removeInputMethodListener(InputMethodListener l)
          Removes the specified input method listener so that it no longer receives input method events from this component and the GLCanvas.
 void removeKeyListener(KeyListener l)
          Removes the specified key listener so that it no longer receives key events from this component and the GLCanvas.
 void removeMouseListener(MouseListener l)
          Removes the specified mouse listener so that it no longer receives mouse events from this component and the GLCanvas.
 void removeMouseMotionListener(MouseMotionListener l)
          Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component and the GLCanvas.
 void removeMouseWheelListener(MouseWheelListener l)
          Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component and the GLCanvas.
 void repaint()
          Repaint the JFrame and render the GLCanvas if no animator is present.
 void setAnimator(com.sun.opengl.util.Animator anim)
          Specifies an Animator for updating the GLCanvas, and starts it.
 void setAnimator(com.sun.opengl.util.Animator anim, boolean start)
          Specifies an Animator for updating the GLCanvas, and optionally starts it.
 boolean setFullscreen(boolean fs)
          Sets the fullscreen status of this window.
 void setGL(javax.media.opengl.GL gl)
          Sets the GL pipeline for the canvas in this GLJPane.
 void setGLCapabilities(javax.media.opengl.GLCapabilities caps)
          Rebuilds the GLCanvas with the specified capbilities.
 void setGLEventListener(javax.media.opengl.GLEventListener listener)
          Sets the event listener attached to the GLcanvas.
 void setSize(Dimension d)
          Resizes this GLJFrame to match a GLCanvas of the specified size.
 void setSize(int width, int height)
          Resizes this GLJFrame to match a GLCanvas of the specified size.
 
Methods inherited from class javax.swing.JFrame
addImpl, createRootPane, frameInit, getAccessibleContext, getContentPane, getDefaultCloseOperation, getGlassPane, getJMenuBar, getLayeredPane, getRootPane, isDefaultLookAndFeelDecorated, isRootPaneCheckingEnabled, paramString, processWindowEvent, remove, setContentPane, setDefaultCloseOperation, setDefaultLookAndFeelDecorated, setGlassPane, setIconImage, setJMenuBar, setLayeredPane, setLayout, setRootPane, setRootPaneCheckingEnabled, update
 
Methods inherited from class java.awt.Frame
addNotify, finalize, getCursorType, getExtendedState, getFrames, getIconImage, getMaximizedBounds, getMenuBar, getState, getTitle, isResizable, isUndecorated, remove, removeNotify, setCursor, setExtendedState, setMaximizedBounds, setMenuBar, setResizable, setState, setTitle, setUndecorated
 
Methods inherited from class java.awt.Window
addPropertyChangeListener, addPropertyChangeListener, addWindowFocusListener, addWindowListener, addWindowStateListener, applyResourceBundle, applyResourceBundle, createBufferStrategy, createBufferStrategy, dispose, getBufferStrategy, getFocusableWindowState, getFocusCycleRootAncestor, getFocusOwner, getFocusTraversalKeys, getGraphicsConfiguration, getInputContext, getListeners, getLocale, getMostRecentFocusOwner, getOwnedWindows, getOwner, getToolkit, getWarningString, getWindowFocusListeners, getWindowListeners, getWindowStateListeners, hide, isActive, isAlwaysOnTop, isFocusableWindow, isFocusCycleRoot, isFocused, isLocationByPlatform, isShowing, pack, postEvent, processEvent, processWindowFocusEvent, processWindowStateEvent, removeWindowFocusListener, removeWindowListener, removeWindowStateListener, setAlwaysOnTop, setBounds, setCursor, setFocusableWindowState, setFocusCycleRoot, setLocationByPlatform, setLocationRelativeTo, show, toBack, toFront
 
Methods inherited from class java.awt.Container
add, add, add, add, add, addContainerListener, applyComponentOrientation, areFocusTraversalKeysSet, countComponents, deliverEvent, doLayout, findComponentAt, findComponentAt, getAlignmentX, getAlignmentY, getComponent, getComponentAt, getComponentAt, getComponentCount, getComponents, getComponentZOrder, getContainerListeners, getFocusTraversalPolicy, getInsets, getLayout, getMaximumSize, getMinimumSize, getMousePosition, getPreferredSize, insets, invalidate, isAncestorOf, isFocusCycleRoot, isFocusTraversalPolicyProvider, isFocusTraversalPolicySet, layout, list, list, locate, minimumSize, paint, paintComponents, preferredSize, print, printComponents, processContainerEvent, remove, removeAll, removeContainerListener, setComponentZOrder, setFocusTraversalKeys, setFocusTraversalPolicy, setFocusTraversalPolicyProvider, setFont, transferFocusBackward, transferFocusDownCycle, validate, validateTree
 
Methods inherited from class java.awt.Component
action, add, addComponentListener, addFocusListener, addHierarchyBoundsListener, addHierarchyListener, bounds, checkImage, checkImage, coalesceEvents, contains, contains, createImage, createImage, createVolatileImage, createVolatileImage, disable, disableEvents, dispatchEvent, enable, enable, enableEvents, enableInputMethods, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, firePropertyChange, getBackground, getBounds, getBounds, getColorModel, getComponentListeners, getComponentOrientation, getCursor, getDropTarget, getFocusListeners, getFocusTraversalKeysEnabled, getFont, getFontMetrics, getForeground, getGraphics, getHeight, getHierarchyBoundsListeners, getHierarchyListeners, getIgnoreRepaint, getInputMethodListeners, getInputMethodRequests, getKeyListeners, getLocation, getLocation, getLocationOnScreen, getMouseListeners, getMouseMotionListeners, getMousePosition, getMouseWheelListeners, getName, getParent, getPeer, getPropertyChangeListeners, getPropertyChangeListeners, getSize, getSize, getTreeLock, getWidth, getX, getY, gotFocus, handleEvent, hasFocus, imageUpdate, inside, isBackgroundSet, isCursorSet, isDisplayable, isDoubleBuffered, isEnabled, isFocusable, isFocusOwner, isFocusTraversable, isFontSet, isForegroundSet, isLightweight, isMaximumSizeSet, isMinimumSizeSet, isOpaque, isPreferredSizeSet, isValid, isVisible, keyDown, keyUp, list, list, list, location, lostFocus, mouseDown, mouseDrag, mouseEnter, mouseExit, mouseMove, mouseUp, move, nextFocus, paintAll, prepareImage, prepareImage, printAll, processComponentEvent, processFocusEvent, processHierarchyBoundsEvent, processHierarchyEvent, processInputMethodEvent, processKeyEvent, processMouseEvent, processMouseMotionEvent, processMouseWheelEvent, removeComponentListener, removeFocusListener, removeHierarchyBoundsListener, removeHierarchyListener, removePropertyChangeListener, removePropertyChangeListener, repaint, repaint, repaint, requestFocus, requestFocus, requestFocusInWindow, requestFocusInWindow, reshape, resize, resize, setBackground, setBounds, setComponentOrientation, setDropTarget, setEnabled, setFocusable, setFocusTraversalKeysEnabled, setForeground, setIgnoreRepaint, setLocale, setLocation, setLocation, setMaximumSize, setMinimumSize, setName, setPreferredSize, setVisible, show, size, toString, transferFocus, transferFocusUpCycle
 
Methods inherited from class java.lang.Object
clone, equals, getClass, hashCode, notify, notifyAll, wait, wait, wait
 
Methods inherited from interface java.awt.MenuContainer
getFont, postEvent
 

Constructor Detail

GLJFrame

public GLJFrame(javax.media.opengl.GLEventListener listener)
Creates new form GLJFrame

Parameters:
listener - the GLEventListener to attach to the GLCanvas

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener)
Creates new form GLJFrame

Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener,
                javax.media.opengl.GLCapabilities caps,
                javax.media.opengl.GLCapabilitiesChooser chooser,
                javax.media.opengl.GLContext contextToShareWith)
Creates new form GLJFrame

Parameters:
caps - the GLCapabilities to request for the GLCanvas
chooser - the capabilities chooser to use in creating the GLCanvas on this frame
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
contextToShareWith - the context to share with

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener,
                javax.media.opengl.GLCapabilities capabilities)
Creates new form GLJFrame

Parameters:
title - title for the window
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener,
                javax.media.opengl.GLCapabilities capabilities,
                javax.media.opengl.GLCapabilitiesChooser chooser)
Creates new form GLJFrame

Parameters:
title - title for the window
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas
chooser - the capabilities chooser to use in creating the GLCanvas on this frame

GLJFrame

public GLJFrame(javax.media.opengl.GLEventListener listener,
                javax.media.opengl.GLContext contextToShareWith)
Creates new form GLJFrame

Parameters:
listener - the GLEventListener to attach to the GLCanvas
contextToShareWith - the context to share with
See Also:
javax.media.opengl.GLCanvas#javax.media.opengl.GLCanvas(javax.media.opengl.GLCapabilities,javax.media.opengl.GLCapabilitiesChooser,javax.media.opengl.GLContext,javax.media.opengl.GraphicsDevice)

GLJFrame

public GLJFrame(javax.media.opengl.GLEventListener listener,
                javax.media.opengl.GLCapabilities capabilities)
Creates new form GLJFrame

Parameters:
listener - the GLEventListener to attach to the GLCanvas
capabilities - the GLCapabilities to request for the GLCanvas

GLJFrame

public GLJFrame(javax.media.opengl.GLEventListener listener,
                int width,
                int height)
Creates new form GLJFrame

Parameters:
listener - the GLEventListener to attach to the GLCanvas
width - the horizontal size for the GLCanvas in pixels
height - the vertical size for the GLCanvas in pixels

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener,
                int width,
                int height)
Creates new form GLJFrame

Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
width - the horizontal size for the GLCanvas in pixels
height - the vertical size for the GLCanvas in pixels

GLJFrame

public GLJFrame(javax.media.opengl.GLEventListener listener,
                boolean fullscreen)
Creates new form GLJFrame

Parameters:
listener - the GLEventListener to attach to the GLCanvas
fullscreen - if true, this window is generated in fullscreen mode

GLJFrame

public GLJFrame(String title,
                javax.media.opengl.GLEventListener listener,
                boolean fullscreen)
Creates new form GLJFrame

Parameters:
title - the title for the window
listener - the GLEventListener to attach to the GLCanvas
fullscreen - if true, this window is generated in fullscreen mode
Method Detail

setGLEventListener

public void setGLEventListener(javax.media.opengl.GLEventListener listener)
Sets the event listener attached to the GLcanvas. Note that this method does not repaint this component, so it will not immediately update.

Parameters:
listener - the GLEventListener to attach to the GLCanvas

getGLEventListener

public javax.media.opengl.GLEventListener getGLEventListener()
Retrieves the event listener for the GLJFrame

Returns:
the GLEventListener associated with the GLCanvas

setFullscreen

public boolean setFullscreen(boolean fs)
Sets the fullscreen status of this window. If full screen exclusive mode is not supported, fullscreen is emulated by swing (see Full-Screen Exclusive Mode Tutorial ). If fullscreen is to be invoked under Windows, it is recommended that the VM be run with -Dsun.java2d.noddraw=true

Parameters:
fs - the mode to set this window to - true for full screen, false for windowed mode
Returns:
true if full screen exclusive mode is supported, false if not.

setSize

public void setSize(int width,
                    int height)
Resizes this GLJFrame to match a GLCanvas of the specified size. This has no effect if fullscreen mode is active.

Overrides:
setSize in class Component
Parameters:
width - the new horizontal size for the GLCanvass in pixels
height - the new vertical size for the GLCanvass in pixels

setSize

public void setSize(Dimension d)
Resizes this GLJFrame to match a GLCanvas of the specified size. This has no effect if fullscreen mode is active.

Overrides:
setSize in class Component
Parameters:
d - the new size for the GLCanvass in pixels

isFullscreen

public boolean isFullscreen()
Determines if the Frame is the Full-Screen Exclusive Mode window.

Returns:
true if this window is in fullscreen mode

getGLCapabilities

public javax.media.opengl.GLCapabilities getGLCapabilities()
The GLCapabilities used with the GLCanvas.

Returns:
a copy of the capabilities used to generate the attached GLCanvas

setGLCapabilities

public void setGLCapabilities(javax.media.opengl.GLCapabilities caps)
Rebuilds the GLCanvas with the specified capbilities. Will dispose and re-create the JFrame and GLCanvas with the new capabilities.

Parameters:
caps - the capabilities to be copied into this GLJFrame

repaint

public void repaint()
Repaint the JFrame and render the GLCanvas if no animator is present. If animator is attached and running, only repaints the JFrame.

Overrides:
repaint in class Component

clearInputListeners

public void clearInputListeners()
Removes InputMethodListeners, KeyListeners,MouseListeners, MouseMotionListeners, and MouseWheelListeners from this and the GLCanvas.


generateAnimator

public com.sun.opengl.util.Animator generateAnimator()
Generates a new Animator for updating the GLCanvas, and starts it.

Returns:
the generated Animator

getAnimator

public com.sun.opengl.util.Animator getAnimator()
Retrieves the attached Animator connected to the GLCanvas.

Returns:
The Animator attached to this, or null if there is no Animator

setAnimator

public void setAnimator(com.sun.opengl.util.Animator anim)
Specifies an Animator for updating the GLCanvas, and starts it.

Parameters:
anim - Animator to use to animate the GLCanvas

setAnimator

public void setAnimator(com.sun.opengl.util.Animator anim,
                        boolean start)
Specifies an Animator for updating the GLCanvas, and optionally starts it.

Parameters:
anim - Animator to use to animate the GLCanvas
start - starts the animator if true, just sets it if not

removeAnimator

public void removeAnimator()
Stops and removes the Animator.


isAnimated

public boolean isAnimated()
Determines if this GLJFrame is running on an Animator.

Returns:
true if the GLJFrame has an attached animator.

removeKeyListener

public void removeKeyListener(KeyListener l)
Removes the specified key listener so that it no longer receives key events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added to this component. if the listener is null, no exception is thrown and no action is performed.

Overrides:
removeKeyListener in class Component
Parameters:
l - the key listener.

addKeyListener

public void addKeyListener(KeyListener l)
Adds the specified key listener to receive key events from this component and the GLCanvas. If l is null, no exception is thrown and no action is performed.

Overrides:
addKeyListener in class Component
Parameters:
l - the key listener.

removeMouseListener

public void removeMouseListener(MouseListener l)
Removes the specified mouse listener so that it no longer receives mouse events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed.

Overrides:
removeMouseListener in class Component
Parameters:
l - the mouse listener

addMouseListener

public void addMouseListener(MouseListener l)
Adds the specified mouse listener to receive mouse events from this component and the GLCanvas. if the listener is null, no exception is thrown and no action is performed.

Overrides:
addMouseListener in class Component
Parameters:
l - the mouse listener

removeMouseWheelListener

public void removeMouseWheelListener(MouseWheelListener l)
Removes the specified mouse wheel listener so that it no longer receives mouse wheel events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. If l is null, no exception is thrown and no action is performed.

Overrides:
removeMouseWheelListener in class Component
Parameters:
l - the mouse wheel listener

removeMouseMotionListener

public void removeMouseMotionListener(MouseMotionListener l)
Removes the specified mouse motion listener so that it no longer receives mouse motion events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed.

Overrides:
removeMouseMotionListener in class Component
Parameters:
l - the mouse motion listener.

addMouseWheelListener

public void addMouseWheelListener(MouseWheelListener l)
Adds the specified mouse wheel listener to receive mouse wheel events from this component and the GLCanvas. For information on how mouse wheel events are dispatched, see the class description for MouseWheelEvent. If l is null, no exception is thrown and no action is performed.

Overrides:
addMouseWheelListener in class Component
Parameters:
l - the mouse wheel listener

addMouseMotionListener

public void addMouseMotionListener(MouseMotionListener l)
Adds the specified mouse motion listener to receive mouse motion events from this component and the GLCanvas. if the listener is null, no exception is thrown and no action is performed.

Overrides:
addMouseMotionListener in class Component
Parameters:
l - the mouse motion listener.

removeInputMethodListener

public void removeInputMethodListener(InputMethodListener l)
Removes the specified input method listener so that it no longer receives input method events from this component and the GLCanvas. This method performs no function, nor does it throw an exception, if the listener specified by the argument was not previously added. if the listener is null, no exception is thrown and no action is performed.

Overrides:
removeInputMethodListener in class Component
Parameters:
l - the input method listener

addInputMethodListener

public void addInputMethodListener(InputMethodListener l)
Adds the specified input method listener to receive input method events from this component and the GLCanvas. A component will only receive input method events from input methods if it also overrides getInputMethodRequests to return an InputMethodRequests instance. if the listener is null, no exception is thrown and no action is performed.

Overrides:
addInputMethodListener in class Component
Parameters:
l - the input method listener

getGL

public javax.media.opengl.GL getGL()
Gets the GL pipeline for the canvas in this GLJPane.

Returns:
the GL pipeline associated with this GLCanvas
See Also:
GLCanvas.getGL()

setGL

public void setGL(javax.media.opengl.GL gl)
Sets the GL pipeline for the canvas in this GLJPane.

Parameters:
gl - The pipeline to attach to this GLCanvas
See Also:
GLCanvas.setGL(javax.media.opengl.GL)

getContext

public javax.media.opengl.GLContext getContext()
Retrieves the GLContext associated with the GLCanvas on this GLJFrame

Returns:
the associated GLContext
See Also:
GLCanvas.getContext()

getAutoDrawable

public javax.media.opengl.GLAutoDrawable getAutoDrawable()
Retrieves a GLAutoDrawable view of the associated GLCanvas

Returns:
a GLAutoDrawable corresponding to the GLCanvas on this GLJFrame