Package javax
Class Application
Description:
This is the main event loop of the Java program. It makes sure that event listeners and the onUpdate() method are called periodically. To stop the execution of this method call requestShutdown() of the same Application class instance.
Example
public static void main(String[] args)
{
try
{
App app = new App();
app.run();
}
catch(MainThreadException ex)
{
Logger.log(ex.getMessage());
}
catch(Exception ex)
{
Logger.log(ex.getMessage());
}
}
The example above shows the typical use of the run() method.
See also:
Copyright © demmel products gmbh. All rights reserved.