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.
See screenshot, the Font Chooser is too small when first opened.
Created attachment 81351 [details] Fonts & Colors -> ... (Font Chooser)
Note: when resized, the "Preview" section doesn't need to grow. The lists are the important parts that need more room.
I've discovered that the relevant classes for this are:- org.netbeans.beaninfo.editors.FontEditor.FontPanel (in o.n.core) org.netbeans.modules.options.colors.SyntaxColoringPanel.actionPerformed (in options.editor) But the source code for FontPanel doesn't use the Form editor so I'm finding it a little difficult to find the relevant piece to edit.
I'd like to NetFIX [1] this bug. Is it possible? [1] http://wiki.netbeans.org/NetFIX
I've been able to fix the problem by requiring the following in FontPanel @Override public Dimension getPreferredSize () { return new Dimension (400, 300); } but I'd still like to impose a maximum height on the "Preview" and this is trickier than I thought.
(Sorry, for some reason bugzilla insists on adding Macintosh to all my bug reports as default) I'm about to upload a patch to fix this for main-golden. The patch addresses the original bug, but also makes some minor improvements in ergonomics:- - demo text now uses the industry standard Pangram http://en.wikipedia.org/wiki/The_quick_brown_fox_jumps_over_the_lazy_dog translators are advised to consult http://en.wikipedia.org/wiki/List_of_pangrams - font lists are often very long, so the scrollpane now centres on the currently selected font (styles and sizes) when constructed See (soon to be attached) screenshot to see the default window after applying patch.
Created attachment 81402 [details] patch against main-golden, see comments
Created attachment 81403 [details] Screenshot of Font Chooser after application of patch
also, patch removes emphasis on re-scaling the y dimension of the Preview box. It shouldn't scale, priority should be given to the JLists.
Patch applied, http://hg.netbeans.org/jet-main/rev/b35e22b8d0e8. Thanks!
Integrated into 'main-golden', will be available in build *200905070201* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress) Changeset: http://hg.netbeans.org/main-golden/rev/b35e22b8d0e8 User: Vita Stejskal <vstejskal@netbeans.org> Log: #164247: 6.7 Beta: Font Chooser too small (applying fommil's patch, thanks)