How to maximize a JFrame through code?
for similar problems with: http://bugs.sun.com/view_bug.do?bug_id=7177173
An issue on jdk7. Try to call .setExtendedState() not directly after .setVisable()