Sun Microsystems J2ME manual Setting Emulator Preferences, Network Proxies, Keyboard shortcuts

Models: J2ME

1 134
Download 134 pages 62.02 Kb
Page 44
Image 44

You can use the mouse to click on the buttons to press them. Most buttons also have keyboard shortcuts, which are generally easier to use. Keyboard numbers 0 through 9 correspond to the emulator’s 0 through 9 buttons. Some less obvious keyboard shortcuts are in the following table.

TABLE 4 Keyboard shortcuts

Emulator button

Keyboard key

 

 

Left soft button

F1

Right soft button

F2

Power button

Esc

SELECT

Enter

 

 

Entering text works much as it does on many real devices. Press a number key multiple times to get the letter you want. For example, press the 5 key twice for the letter K. When you are entering text, the asterisk key (*) switches between upper case, lower case, numbers, and symbols. The indicator at the top of the screen shows your current mode. The pound key (#) enters a space.

Alternately, you can just type on your keyboard to enter text. Although this is convenient for entering text, you must remember that it is a convenience your users will most likely be lacking.

4.3Setting Emulator Preferences

You can adjust the emulator settings to more closely resemble a specific device or to test your application under different resource conditions.

4.3.1Network Proxies

The emulator uses your desktop network connection. For example, if the emulator runs a MIDlet that makes an HTTP connection, the emulator attempts to make the HTTP connection using the desktop’s network setup.

If your development computer is behind a firewall, you might use a proxy server to make HTTP connections. If you’re not sure, try examining your browser’s settings to see if it uses proxy servers.

If you are using proxy servers, you need to configure the emulator to use the same proxy servers. To do this, choose Edit > Preferences.... On the Network Configuration tab, fill in the names and port numbers for the proxy server you wish to use. You can also select which version of HTTP you wish to use.

32 J2ME Wireless Toolkit User’s Guide • October 2004

Page 44
Image 44
Sun Microsystems J2ME manual Setting Emulator Preferences, Network Proxies, Keyboard shortcuts