3

So I'm running netbeans 7.0-1 using Arch Linux. I'm running xming for my x-server.

What's going on is, when I use netbeans' Desktop Applications, it starts with two menus: File and Help. Whenever I click the drop down menu, the drop down immediately disappears.

I'm not even sure where to start... it seems like a bug. Any ideas?

poy
  • 10,063
  • 9
  • 49
  • 74
  • See also [this answer](http://stackoverflow.com/questions/2561480/netbeans-gui-editor-generating-its-own-incomprehensible-code/2561540#2561540). – trashgod May 17 '11 at 19:32
  • @Andrew: "Any ideas?" Toss away the IDE you obviously don't know how to use and develop non-GUI applications in a simple editor until such times as you feel confident to debug the problems of your GUI programs. – Andrew Thompson May 17 '11 at 19:47
  • @Andrew: Perhaps I should have prefaced those ideas with the comment that inspired them *"I'm not even sure where to start".* Netbeans is a powerful & useful IDE in the hands of a seasoned developer that is capable of delving into the guts of the code when it misbehaves (which it will). For a newbie developer who 'does not know where to start', an IDE will just slow you down. BTW - what happened to your shift key in your reply to me? Is lower case meant to indicate sarcasm, or just laziness? – Andrew Thompson May 17 '11 at 20:20
  • BTW - For better help sooner, post an [SSCCE](http://pscode.org/sscce.html). – Andrew Thompson May 19 '11 at 12:09

1 Answers1

5

So as it turns out... I needed to set the enviroment variable AWT_TOOLKIT to "MToolkit"

That seems to have fixed the issue.

poy
  • 10,063
  • 9
  • 49
  • 74
  • +1. Wow, Where did that come from? Why this have to do with it? – Rekin Jun 13 '11 at 21:17
  • @Rekin: Well I guess what Java is using to display Netbeans can use several ToolKits... However, the one that is working best for me is the MToolkit. You tell java to use it by setting the AWT_TOOLKIT variable. – poy Jun 14 '11 at 14:23