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 212215 - GridBagLayout designer selects components, not cells
Summary: GridBagLayout designer selects components, not cells
Status: RESOLVED FIXED
Alias: None
Product: guibuilder
Classification: Unclassified
Component: Code (show other bugs)
Version: 7.1.1
Hardware: PC Mac OS X
: P3 normal (vote)
Assignee: issues@guibuilder
URL:
Keywords:
Depends on:
Blocks:
 
Reported: 2012-05-09 07:33 UTC by vieiro
Modified: 2013-08-12 17:36 UTC (History)
1 user (show)

See Also:
Issue Type: ENHANCEMENT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description vieiro 2012-05-09 07:33:20 UTC
Sometimes you drop a component (say a JPanel) in a GridBagLayout and this makes it difficult to select it in the GridBagLayout designer afterwards.

The component is so small that you can hardly see it, and selecting it is difficult.

I think that instead of selecting components you should select the whole set of cells that the component lives in. 

So for instance, if I drop a component on (0,0) and the component becomes very tiny then a mouse click *anywhere* in that cell should select the component.
Comment 1 Tomas Pavek 2012-05-11 17:14:16 UTC
Note that you can drag a selection rectangle over the cell which will select the component as well.
Comment 2 vieiro 2012-05-11 18:09:39 UTC
Yes, I know I can. The problem is dragging the rectangle in deeply nested cells.

I've noticed that there're problems in repainting the selection on Mac OS/X: sometimes the selected status is not shown properly.
Comment 3 Tomas Pavek 2013-08-12 17:36:37 UTC
This got fixed together with bug 232948.