I have an SiS M650 with the latest drivers (I got them from Dell…I have an Inspiron 1000). When I try to run code that I know works on other computers, it doesn’t get past the pack command. Any suggestions?
import java.awt.;
import java.awt.event.;
import javax.swing.;
import net.java.games.jogl.;
class TestJOGL extends JFrame implements GLEventListener
{
public TestJOGL()
{
super(“Testing Java OpenGL”);
setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
GLCapabilities capabilities=new GLCapabilities();
GLCanvas canvas=GLDrawableFactory.getFactory().createGLCanvas(capabilities);
canvas.addGLEventListener(this);
System.out.println(“Checkpoint 1”);
JPanel panel=new JPanel();
//panel.add(canvas);
panel.setPreferredSize(new Dimension(400, 400));
getContentPane().add(panel);
System.out.println(“Checkpoint 2”);
}
public void display(GLDrawable drawable)
{
System.out.println(“Display”);
}
public void displayChanged(GLDrawable drawable, boolean modeChanged, boolean deviceChanged)
{
System.out.println(“DisplayChanged”);
}
public void init(GLDrawable drawable)
{
System.out.println(“Init”);
}
public void reshape(GLDrawable drawable, int x, int y, int w, int h)
{
System.out.println(“Reshape”);
}
public static void main(String args[])
{
try
{
System.out.println(“Starting…”);
TestJOGL mainFrame = new TestJOGL();
System.out.println(“Checkpoint 3”);
mainFrame.pack();
System.out.println(“Checkpoint 4”);
mainFrame.setVisible(true);
System.out.println(“Checkpoint 5”);
}
catch(Exception e)
{
e.printStackTrace();
}
}
}