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.
Summary: | Form editor grid size missing in preferences | ||
---|---|---|---|
Product: | guibuilder | Reporter: | mceccarellitnx <mceccarellitnx> |
Component: | Code | Assignee: | Jan Stola <jstola> |
Status: | RESOLVED FIXED | ||
Severity: | blocker | CC: | CaptainJim, hmichel, jkovalsky, johnrule, MackSix |
Priority: | P1 | Keywords: | NETFIX |
Version: | 6.x | ||
Hardware: | All | ||
OS: | All | ||
Issue Type: | ENHANCEMENT | Exception Reporter: | |
Attachments: | fix for 153653 |
Description
mceccarellitnx
2008-11-21 15:31:57 UTC
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 [1] for community developers. Hint: see Editor's panel in Options and re-introduce missing properties. [1] http://wiki.netbeans.org/NetFIXIssues 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: gridX gridY applyGridToPosition applyGridToSize 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 [1] this bug. Is it possible? [1] 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 [1] this bug. Is it possible? > [1] 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: http://hg.netbeans.org/jet-main/rev/8124702d7cd9 > 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. http://hg.netbeans.org/jet-main/rev/d732a66a71e4 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. |