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.

Bug 7859 - setting layout of a JFrame disables compilation
Summary: setting layout of a JFrame disables compilation
Status: CLOSED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 3.x
Hardware: All All
: P4 normal (vote)
Assignee: _ ttran
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2000-10-10 22:37 UTC by Terry Heatlie
Modified: 2003-06-30 18:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Terry Heatlie 2000-10-10 22:37:34 UTC
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.
Comment 1 Tomas Pavek 2000-10-11 10:31:59 UTC
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.
Comment 2 Jan Chalupa 2001-03-12 10:40:19 UTC
Version: 'Dev' -> 3.2
Comment 3 _ ttran 2001-04-02 18:36:43 UTC
fixed in release32 and trunk
Comment 4 Marian Mirilovic 2001-04-05 10:30:41 UTC
verified in [nb_r32](21), [pilsen](010404)


now is selected some node all the time
Comment 5 Jan Chalupa 2001-05-05 22:22:48 UTC
Target milestone -> 3.2
Comment 6 Quality Engineering 2003-06-30 18:26:07 UTC
Resolved for 3.3.x or earlier, no new info since then -> closing.