Update TwMain.java