Application Class Design

In order to use Java on an iLCD panel it's recommended to implement at least the following two classes:

Note that the main() method is the entry point of the program. The corresponding thread is called the main thread. There has to be exactly one class containing this method. If the Java App doesn't contain a Main Class yet, please mark the corresponding file in the Java App file tree via the right mouse click menu.

When enabling event handling (e.g. touch or keyboard events) an additional thread will be created to collect all occurring events. In this case it is required to extend the Application Class and call it's run() method. The run() method contains the central event loop of the Java program and makes sure that corresponding event listeners are called when an event occurs.

Find a detailed description how to design an application for the iLCD in the following chapters: