Update WindowType,java