summaryrefslogtreecommitdiffstats
path: root/src/demos/misc
diff options
context:
space:
mode:
authorKenneth Russel <[email protected]>2008-04-07 09:10:03 +0000
committerKenneth Russel <[email protected]>2008-04-07 09:10:03 +0000
commit144dd147e18f346617649b55d730a8a5fef9f2d6 (patch)
treec0a23754143ab4ecb690aca18995ad287df2b5f9 /src/demos/misc
parent3bbbce9ae31ab73aba63416f51d6eb8ad925508e (diff)
Attempted fix for NullPointerException pointed out by Michael Bien
git-svn-id: file:///usr/local/projects/SUN/JOGL/git-svn/../svn-server-sync/jogl-demos/trunk@227 3298f667-5e0e-4b4a-8ed4-a3559d26a5f4
Diffstat (limited to 'src/demos/misc')
-rwxr-xr-xsrc/demos/misc/GLCapsTableDemo.java4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/demos/misc/GLCapsTableDemo.java b/src/demos/misc/GLCapsTableDemo.java
index 767c4d5..766c8a4 100755
--- a/src/demos/misc/GLCapsTableDemo.java
+++ b/src/demos/misc/GLCapsTableDemo.java
@@ -156,6 +156,8 @@ public class GLCapsTableDemo
private void initComponents()
{
+ pane = new JPanel();
+ pane2 = new JPanel();
// Hack: use multisampled capabilities to pick up more detailed information on Windows
GLCapabilities multisampledCaps = new GLCapabilities();
multisampledCaps.setSampleBuffers(true);
@@ -174,8 +176,6 @@ public class GLCapsTableDemo
// canvas2.setPreferredSize(defdim);
// canvas2.setMaximumSize(defdim);
animator.add(canvas2);
- pane = new JPanel();
- pane2 = new JPanel();
pane.add(canvas);
pane2.add(canvas2);
canvasPane = new JSplitPane();