Make login menu Java 6 compatible.