This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
The following was reported to me by a customer in Sun's Forte for Java beta program. I have reproduced it using Sun's Beta on NT 4.0 and Linux, and also with the latest NetBeans development release under Linux. Problem: setting the layout of a JFrame causes it to become "uncompilable". Note that this problem is most visible on platforms/user preferences which are of the "click to type" style. To reproduce: (1) create a new project. (2) create a JFrame using "new from template" in the visual editting workspace (3) select the JFrame in the Component Inspector and choose "set layout" from the context menu. Choose "GridBagLayout". (4) click on the form window so that it has focus. At this point, all compile controls are grayed out. Various actions can re-enable compilation, most notably choosing "compile" from the context menu of the class in the explorer. Also, clicking on the editor pane containing the source "sometimes" re-enables compilation.
Compile & other controls are disabled because no node is selected. This happens when layout is set (that's the bug - it should not happen). Easy workaround: click anywhere in component inspector or inside the form, focus editor or select the form node in explorer.
Version: 'Dev' -> 3.2
fixed in release32 and trunk
verified in [nb_r32](21), [pilsen](010404) now is selected some node all the time
Target milestone -> 3.2
Resolved for 3.3.x or earlier, no new info since then -> closing.