From: Kerry L. B. <ke...@vs...> - 2000-03-22 00:11:50
|
At 12:25 AM 3/22/00 +0100, Kristberg Ágúst Karlsson wrote: >I have been browsing thru the demos and docs, but can't find any >examples on how to start gl4Java from a standalone application. >Has anybody tried that and what should you put in the main() method. >I'm desperate as I'm starting a course in Computer Graphics on Thursday >and the students only know Java. >Best regards. >Gusti In your main method, create an object that extends Java.awt.Frame, and add a component that extends GLAnimCanvas - this gives you an application frame with the gl4Java component. This frame can also trap the Event.WINDOW_DESTROY message to close the application. |