hi,
i’m totally new to jogl and i already got a problem at startup - i just want to render a small 512x384 window containing nothing but a white background. here’s my code:
import net.java.games.jogl.;
import java.awt.;
import java.awt.event.*;
class main {
public static void main(String[] args) {
Frame frame = new Frame(“myprog”);
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
frame.add(canvas);
frame.setSize(512, 384);
frame.setBackground(Color.WHITE);
frame.addWindowListener(new WindowAdapter() {
public void windowClosing(WindowEvent e) {
System.exit(0);
}
});
frame.show();
}
}
…and here’s what i get:
i already tried this on a friend’s machine with a similar result - though it didn’t show up exactly the same…eh…random colors, it also did some quite crappy things like this. both of us even re-installed the latest ati graphics drivers…without success.
anyone got an idea of what could be wrong with this?
thx,
ceph