summaryrefslogtreecommitdiffstats
path: root/src/jake2/Jake2Applet.java
Commit message (Collapse)AuthorAgeFilesLines
* Simple NEWT port: Remove AWT dependencies in Jake2 / JOGL / Fast (default ↵NEWTSven Gothel2012-10-081-4/+5
| | | | | | | | | | | | | | | mode) - Prepare for ES2 - Removed AWT init dialog, replaced w/ UI less auto install if n/a @ default location: $HOME/Jake2/baseq2 - JOGL GL2 Renderer 'joglgl2' - JOGL ES2 Renderer 'jogles2' (TBD) - Replaced JOGLKBD (AWT) w/ NEWTKBD - JOGL* Renderer using NEWT
* Set background of Jake2Applet to black before fully initializedKenneth B. Russell2008-03-021-1/+8
|
* Changes to enable Jake2 to run well as an applet inside the Kenneth B. Russell2008-03-021-0/+130
next-generation Java Plug-In. Added Globals.appletMode, Globals.applet and Globals.sizeChangeListener to be able to easily pass around the knowledge that the system is running in applet mode, and the applet itself, which becomes the parent container for the output. Most changes were in Jsr231Driver to support putting the Display into a preexisting parent container rather than a new Frame each time. Changed JOGLKBD to allow manual initialization of the parent container rather than obtaining it from a CreateNotify or ConfigureNotify event since these will never be generated in the applet case. Removed various calls to System.exit(), although strictly speaking this is no longer necessary because it is expected that the separate_jvm parameter will be used in conjunction with the new Java Plug-In to create a fresh JVM instance for each run of Jake2. Video mode switching in applet mode is working; the applet resizes (via JavaScript) to accommodate the newly selected resolution. Full screen mode when running as an applet is not implemented at this point, as the intent was to show this inside the browser, though support could be added very straightforwardly.