From 144dd147e18f346617649b55d730a8a5fef9f2d6 Mon Sep 17 00:00:00 2001 From: Kenneth Russel Date: Mon, 7 Apr 2008 09:10:03 +0000 Subject: 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 --- src/demos/misc/GLCapsTableDemo.java | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'src/demos/misc') 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(); -- cgit v1.2.3