In older Netbeans there was an option in Advanced GUI to set Grid X and Grid Y size (default to 10, i set to 5).
There's no way in Netbeans 6.5 to set this option
Thank you for your report. These options were removed during (Advanced) Options cleanup.
Workaround: You can override default size of these properties manually using form.properties file. Copy attached sample
form.properties file into <your-nb-userdir>\config\Preferences\org\netbeans\modules\ folder or merge gridX a gridY
settings into existing file and (re)start ide.
*** Issue 156742 has been marked as a duplicate of this issue. ***
I think that grid size should be added to preferences in netbeans. Grid size permanently set to 10 can significantly lower productivity in many cases. I know now, that it can be changed in "form.properties" file, but many users dont know about it. It should be in preferences, where anybody can change it easily.
*** Bug 194348 has been marked as a duplicate of this bug. ***
*** Bug 158935 has been marked as a duplicate of this bug. ***
Issue added to the NetFIX Pool  for community developers. Hint: see Editor's panel in Options and re-introduce missing properties.
It's not Editor, but GUI Builder panel under Misc category in Options. In the 'form' project there is still the FormLoaderSettings class with getter/setter methods for these missing properties. It's just a matter of adding the UI.
My last comment was for a generous developer who would like to contribute a fix.
For users, the workaround is to edit a conf. file. Here are steps:
* Go to Tools | Options > Misc > GUI Builder and change whatever setting (e.g. Listener Generation Style to One Inner Class).
* This will create a config file: $userdir$/config/Preference/org/netbeans/modules/form.properties
See Help | About where your userdir is.
* Exit the IDE, open the form.properties file and add/change any property for the grid. You can use:
in NetBeans IDE 7.0 (Build 201104080000) is not working anymore to add gridY and gridX in form.properties, grid size remain to default size (that seem 10 and it is too big)
I'd like to NetFIX  this bug. Is it possible?  http://wiki.netbeans.org/NetFIX
(In reply to comment #9)
> in NetBeans IDE 7.0 (Build 201104080000) is not working anymore to add gridY
> and gridX in form.properties, grid size remain to default size (that seem 10
> and it is too big)
Could you be more specific, please. What exactly do you have in form.properties that is not working. I tried to modify gridX and gridY in NB 7.0 and NB 7.0.1 and the modified values were used by GUI Builder correctly.
(In reply to comment #10)
> I'd like to NetFIX  this bug. Is it possible?
>  http://wiki.netbeans.org/NetFIX
Yes, feel free to contribute a patch fixing this issue, but note that UI change is necessary to fix this bug. Hence, it is too late for the fix to make it into NetBeans 7.1.
I will add two fields in the ui for gridX and gridY. One thing I need to know is - what default value should I use for this two properties? Should I use 10 as before or something lower than that?
In my opinion it's better to preserve the previous default values.
Patch attached. I have done some changes to the form module in this patch. Added a ui component to change the grid x grid y in the options panel in the GUI Builder tab. Only a single field has been added to change both grid x and grid y. Is this ok? Because to my understanding it does not make sense that anyone will want to have different values for grid x and grid y.
Created attachment 112346 [details]
fix for 153653
Honzo, can you please review this patch and integrate it if you think it's good to go? Thanks!
Thank you for the patch. It looks good. I have integrated it. So, it will soon appear in the latest development builds and later in NetBeans 7.1:
> Only a single field has been added to change both grid x and grid y.
> Is this ok?
I agree with a single field present in Options, but I modified your patch slightly to keep the original persistence (with both gridX and gridY properties stored). This change provides a backward compatibility and also allows to have gridX and gridY values different (if someone really needs this) when form.properties file is edited directly.
Thanks Honzo for your review and integration but especially thanks Milinda for your patch!
Why does this not go down to 1?
That is because the underlying persistent model does not allow a value below than 2. Hence the jspinner has been constructed with a minimum value of 2.