Today I upgraded my laptop (Dell Latitude E5520) to Ubuntu 13.04.
On there I'm also running NetBeans 7.3.1 on JDK 1.7.0_25. The problem I had was that when I maximized NetBeans the content of the window was not refreshed.
After testing several settings I found that setting sun.java2d.opengl=false fixed the problem.
Laptop is using Intel graphics card with a i915 driver. Maybe there is some kind of a problem between this setting and Java. I don't know.