Re: Where lace nessesary files for jogl in Win32?
Posted by giel on Apr 12, 2015; 8:50pm
URL: https://forum.jogamp.org/Where-lace-nessesary-files-for-jogl-in-Win32-tp4034267p4034270.html
But I neever user Java Commad Line. JGrasp has just Compile, JGrasp Message, I/O, Interaction.
There is Run Argumnets tab but if I place there this command then Run I get the previous resukt not explanation.
import java.awt.*;
import java.awt.event.*;
import net.java.games.jogl.*;
public class Lesson0 {
public static void main(String[] args){
Frame frame = new Frame("Hello World");
GLCanvas canvas = GLDrawableFactory.getFactory().createGLCanvas(new GLCapabilities());
frame.add(canvas);
frame.setSize(400, 400);
frame.setBackground(Color.white);
frame.addWindowListener(new WindowAdapter()
{
public void windowClosing(WindowEvent e)
{
System.exit(0);
}
});
frame.setVisible(true);
}
}
It returns just the black background not white. Deprecated is .show() method despite the change to.setVisible(true)--it did not changed anything.