BACK HOME NEXT
3. Setting Java Applets

Java applet is one of Java applications, which runs mainly on the Java Runtime Environment embedded in a Web browser. It decorates an HTML page dynamically, and is also used as an application in HTML layout. Very high-level security is achieved by applet (sandbox model).

As of October, 2002, the version of JDK is 1.4, although the most of applets are based on JDK 1.1. With the high compatibility to JDK 1.1 that PersonalJava 1.2a has, the JDK 1.1-based applets run on it. Some applets, however, which are not fully compatible to PersonalJava, do not run.

By the available memory size for Java Runtime Environment, some Java applets that run on PC do not run on JV-Lite2. JV-Lite2 allocates necessary memory area on Pocket PC. To allow JV-Lite2 to have enough memory area, set the maximum memory size for "Program".

(About Key Events)
Since the graphic function of Java (AWT) assumes using a full-featured keyboard, some Java applets may not be operated with keys on Pocket PC. To resolve this issue, JV-Lite2 offers a function that converts a Pocket PC key to any key code (mapping).
Modify the file "keybind.conf" to do it. The format for mapping keys is shown below. This converts an event issued by the hardware keys on Pocket PC to any AWT key event.
FORMAT:

(MainClass)=(PPCKey)>(AWT key),...
  (MainClass)=
     Main class of Java applet to apply this key mapping
  (PPCKey)=
     Key name of Pocket PC to be mapped to an AWT key event (Table 1)
  (AWT Key)=
     The name of AWT key event to be mapped to (Table 2)

EXAMPLE:
A=APP1>UP,APP2>j,APP3>x,APP4&gy;y
  Only to the Main Class "A" the following key mappings are applied
    Application Key 1 -> UP Key
    Application Key 2 -> j Key
    Application Key 3 -> x Key
    pplication Key 4 -> y Key
    Other Keys -> Same as the default setting

Table 1. Pocket PC Key Name and Default Value
Key NameFunctionDefault Value
Application 1APP1SPACE
Application 2APP2F1
Application 3APP3ESC
Application 4APP4ENTER
Up ArrowUPUP
Down ArrowDOWNDOWN
Left ArrowLEFTLEFT
Right ArrowRIGHTRIGHT
EnterENTERENTER

Table 2. Key Mappings to AWT Key Event
Key EventFunction
VK_11
VK_22
VK_33
VK_44
VK_55
VK_66
VK_77
VK_88
VK_99
VK_00
VK_SUBTRACT-
VK_EQUALL=
VK_BACK_SPACEBS
VK_TABTAB
VK_Qq
VK_Ww
VK_Ee
VK_Rr
VK_Tt
VK_Yy
VK_Uu
VK_Ii
VK_Oo
VK_Pp
VK_CAPS_LOCKCAPS
VK_Aa
VK_Ss
VK_Dd
VK_Ff
VK_Gg
VK_Hh
VK_Jj
VK_Kk
VK_Ll
VK_SEMICOLON;
VK_QUOTE:
VK_ENTERENTER
VK_Zz
VK_Xx
VK_Cc
VK_Vv
VK_Bb
VK_Nn
VK_Mm
VK_COMMA,
VK_PERIOD.
VK_SLASH/
VK_SPACESPACE
VK_INSERTINSERT
VK_DELETEDEL
VK_LEFTLEFT
VK_HOMEHOME
VK_ENDEND
VK_UPUP
VK_DOWNDOWN
VK_PAGE_UPPAGEUP
VK_PAGE_DOWNPAGEDOWN
VK_RIGHTRIGHT
VK_NUMPAD1NUM1
VK_NUMPAD2NUM2
VK_NUMPAD3NUM3
VK_NUMPAD4NUM4
VK_NUMPAD5NUM5
VK_NUMPAD6NUM6
VK_NUMPAD7NUM7
VK_NUMPAD8NUM8
VK_NUMPAD9NUM9
VK_NUMPAD0NUM0
VK_DIVIDENUMSLASH
VK_MULTIPLYNUMASTAR
VK_DECIMALNUMDOT
VK_SUBTRACTNUMMINUS
VK_ADDNUMPLUS
VK_ESCAPEESC
VK_F1F1
VK_F2F2
VK_F3F3
VK_F4F4
VK_F5F5
VK_F6F6
VK_F7F7
VK_F8F8
VK_F9F9
VK_F10F10
VK_F11F11
VK_F12F12
VK_SHIFTSHIFT
VK_CONTROLCONTROL
VK_ALTALT

:::: BACK :::: HOME :::: NEXT ::::
Copyright (C) 2002-2003 ACCESS CO., LTD.