Input methods

Input methods

Background

Event queue

AWT objects and events

Swing objects and events

AWT versus Swing

Listeners

Changing key values

This program uses a listener to change all keys to upper case

Discarding characters

The following program only accepts alphabetic characters

Attributed text

Terms

From Concepts in C/UNIX Internationalisation

Naive Unicode editor

The following text editor uses a very naive way of entering unicode text. It uses on-the-spot pre-editing

Problems with naive editor

Java Input Method Framework

Using the IMF

Method 1: don't change the application, let the user choose by hotkeys or system menu While this is running, use the hot key or the system menu to get a selection of input methods

Using the IMF

Method 2: code the input method into the application

Event handling with input methods

Input styles

The IMF supports three styles:

Pig Latin

Locale for Pig Latin

Pig Latin input method

Input method descriptor

Pig Latin input method descriptor

Finding the input method

Input descriptor configuration file

Pig Latin Input Method

Presenting alternative choices

Presenting choices


Jan Newmarch (http://jan.newmarch.name)
jan@newmarch.name
Last modified: Mon Aug 14 11:10:05 EST 2006
Copyright ©Jan Newmarch