Window title is 'java-lang-Thread' instead of actual application name

When I run Netbeans 7.0RC2 under Gnome Shell, the window name shown in the top panel is 'java-lang-Thread', whereas the actual window title, as displayed by Mutter, is ' - NetBeans IDE 7.0 RC2'.