doIdle();
// Update the screen
- drawAll();
+ synchronized (getScreen()) {
+ drawAll();
+ }
}
// Shutdown the consumer threads
* @param title menu title
* @return the new menu
*/
- public final TMenu addMenu(String title) {
+ public final TMenu addMenu(final String title) {
int x = 0;
int y = 0;
TMenu menu = new TMenu(this, x, y, title);