create server main.java and add menubar/toolbar.