quick assistance with java [message #1693884] |
Wed, 29 April 2015 02:42 |
Eclipse User |
|
|
|
hi guys
firstly let me explain that i am not a java programmer, i am just learning to use eclipse ,and to use java, so i have no experience what so ever, usign you tube i have managed to do what i have done so far..
now.. i have a window. it opens and stays open. i am wanting to display a web page inside the window. (nothjing else just a webpage).
how would i do that.?
here is the code i have so far,.
package data;
import org.lwjgl.LWJGLException;
import org.lwjgl.opengl.Display;
import org.lwjgl.opengl.DisplayMode;
import static org.lwjgl.opengl.GL11.*;
public class Main {
public Main() {
Display.setTitle("Win Big at the Races");
try {
Display.setDisplayMode(new DisplayMode(800, 600));
Display.create();
} catch (LWJGLException e) {
// TODO Auto-generated catch block
e.printStackTrace();
}
glMatrixMode(GL_PROJECTION);
glLoadIdentity();
glOrtho(0, 800, 600, 0, 1, -1);
glMatrixMode(GL_MODELVIEW);
while(!Display.isCloseRequested()) {
Display.update();
Display.sync(60);
}
Display.destroy();
}
public static void main(String args[]){
new Main();
}
}
any help would be grately appreciated..
Thanks in advance
keith
|
|
|
Powered by
FUDForum. Page generated in 0.02781 seconds