Skip to main content



      Home
Home » Language IDEs » Java Development Tools (JDT) » quick assistance with java(display web page in java applet)
quick assistance with java [message #1693884] Wed, 29 April 2015 02:42
Eclipse UserFriend
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
Previous Topic:Eclipse ASMifier Problem
Next Topic:BUILD CLASSES STRICTLY INCREMENTAL
Goto Forum:
  


Current Time: Thu Apr 17 12:20:24 EDT 2025

Powered by FUDForum. Page generated in 0.02781 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software

Back to the top