Same problem on a fresh Ubuntu 11.10 using gnome 2 and ibus. I meant to use ibus to type Korean but didn't get to set it up yet, so there is no input methode selected. When I have ibus daemon running Netbeans "loses" the keyboard. As soon as I quit ibus (right-click on the top-right icon -> quit), Netbeans "find" the keyboard back, without even restarting.
Same problem on a fresh Ubuntu 11.10 using gnome 2 and ibus. I meant to use ibus to type Korean but didn't get to set it up yet, so there is no input methode selected. When I have ibus daemon running Netbeans "loses" the keyboard. As soon as I quit ibus (right-click on the top-right icon -> quit), Netbeans "find" the keyboard back, without even restarting.