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 76453 - Set Layout Context submenu doesn't always work
Summary: Set Layout Context submenu doesn't always work
Status: RESOLVED WORKSFORME
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 5.x
Hardware: All All
: P3 blocker (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2006-05-16 22:43 UTC by dragontoes
Modified: 2007-08-16 10:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
Screen shot of problem (18.25 KB, image/jpeg)
2006-05-16 22:45 UTC, dragontoes
Details
Screenshot of the problem (118.17 KB, image/jpeg)
2006-06-09 15:20 UTC, Jan Stola
Details

Note You need to log in before you can comment on or make changes to this bug.
Description dragontoes 2006-05-16 22:43:50 UTC
Repro: create JFrame with border layout.  In the center pane put a JScrollPane. 
Put a JTable in the JScrollPane.  In the north pane put a JComboBox.  Right 
click on the JFrame on the Form node in the project navigator.  Select "Set 
Layout".  The layout sub menu doesn't post--instead there's a small square with 
side length a millimeter or so.  Right clicking on the JFrame in the form 
editor yields the same small square.  Right clicking on other components 
appears to work correctly.
Comment 1 dragontoes 2006-05-16 22:45:47 UTC
Created attachment 30426 [details]
Screen shot of problem
Comment 2 Jan Stola 2006-06-08 16:19:33 UTC
I am sorry, I am not able to reproduce this issue. Could you, please,
provide more details. What JDK do you use? Is your problem 100%
reproducible or it occurs occasionally? What component is focused
before you right-click on the JFrame? Etc.
Comment 3 Jan Stola 2006-06-09 15:20:01 UTC
Created attachment 30917 [details]
Screenshot of the problem
Comment 4 Jan Stola 2006-06-09 15:25:59 UTC
Finally I was able to reproduce this issue. I overlooked that the reporter
selects the node in the _Projects_ window, not in the Inspector.
The problem is that the selection in the GUI designer is determined
by the selection in the designer area or by the selection in the Inspector
window. The Projects window also shows the form nodes, but the selection
is not tracked there.

There is more problems caused by this fact. I would recommend to remove
these nodes from the Projects window because they are misleading and
we probably are not able to ensure that all actions will work correctly
there.
Comment 5 Tomas Pavek 2007-08-16 10:26:35 UTC
This is no longer an issue - in 6.0 Projects/Files view no longer shows subnodes of files (Navigator/Inspector used
instead).