3 If you have a real world kiosk application that you want to run on Google
4 Chrome, then below are the steps to take to simulate kiosk mode.
6 ## Steps to Simulate Kiosk Mode
10 Compile the following Java code:
15 import java.security.*;
16 import java.awt.event.*;
18 public class FullScreen extends Applet
20 public void fullScreen()
22 AccessController.doPrivileged
24 new PrivilegedAction()
30 Robot robot = new Robot();
31 robot.keyPress(KeyEvent.VK_F11);
33 catch (AWTException e)
47 Include it in an applet on your kiosk application's home page:
50 <applet name="appletFullScreen"
51 code="FullScreen.class"
58 Add the following to the kiosk computer's java.policy file:
61 grant codeBase "http://yourservername/*"
63 permission java.security.AllPermission;
69 Include the following JavaScript and assign the `doLoad` function to the
73 var _appletFullScreen;
77 _appletFullScreen = document.applets[0];
81 function doFullScreen()
83 if (_appletFullScreen && _appletFullScreen.fullScreen)
85 // Add an if statement to check whether document.body.clientHeight is not
86 // indicative of full screen mode
87 _appletFullScreen.fullScreen();