public interface SystemListener
SystemListener provides a means for an application
 to receive events relating to a context.| Modifier and Type | Method and Description | 
|---|---|
void | 
destroy()
Callback to indicate that the context has been destroyed (either
 by the user or requested by the application itself). 
 | 
void | 
gainFocus()
Called when the application gained focus. 
 | 
void | 
handleError(java.lang.String errorMsg,
           java.lang.Throwable t)
Called when an error has occurred. 
 | 
void | 
initialize()
Callback to indicate the application to initialize. 
 | 
void | 
loseFocus()
Called when the application lost focus. 
 | 
void | 
requestClose(boolean esc)
Called when the user requests to close the application. 
 | 
void | 
reshape(int width,
       int height)
Called to notify the application that the resolution has changed. 
 | 
void | 
update()
Callback to update the application state, and render the scene
 to the back buffer. 
 | 
void initialize()
void reshape(int width,
             int height)
width - height - void update()
void requestClose(boolean esc)
esc - If true, the user pressed ESC to close the application.void gainFocus()
void loseFocus()
void handleError(java.lang.String errorMsg,
                 java.lang.Throwable t)
errorMsg - The error message, if any, or null.t - Throwable object, or null.void destroy()