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 146541 - I18N - editor ignores fontsize option
Summary: I18N - editor ignores fontsize option
Status: VERIFIED FIXED
Alias: None
Product: editor
Classification: Unclassified
Component: Settings (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Vitezslav Stejskal
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-09-08 17:08 UTC by kaa
Modified: 2008-09-26 19:39 UTC (History)
2 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (111.05 KB, image/jpeg)
2008-09-08 17:08 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-09-08 17:08:14 UTC
Product Version: NetBeans IDE Dev (Build 200809040201) 
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
I'm running in Japanese locale, using a pseudo localized Netbeans with font size 16 option. 

1. Create a new Java Beans Component
2. Select the component and create BeanInfo using pop-up menu
3. Switch to the designer of BeanInfo editor
4. Make properties dlg visible and select hashCode method
5. Press ellipsis button for 'Short Description' property.

There is a text with default fontsize. I ran the Ide using --fontsize 16 option.
There is 'Cancel' button (circled in blue) that uses correct font size. Check please other property dialogs.
Comment 1 kaa 2008-09-08 17:08:58 UTC
Created attachment 69338 [details]
image
Comment 2 Jiri Rechtacek 2008-09-11 19:30:22 UTC
It belongs to beans/src/org/netbeans/modules/beans/beaninfo/CustomCodeEditor.java
Comment 3 Jan Pokorsky 2008-09-12 17:39:10 UTC
That is true, CustomCodeEditor.java as a custom editor comes from the beans module. But the beans module provides only
JEdirorPane to edit code. The font size of editor content is not controlled with --fontsize option. It is driven by
editor settings (Tools Options).

Control buttons and the dialog are provided by the property sheet implementation. Reassigning back to openide.
Comment 4 Stanislav Aubrecht 2008-09-12 18:46:30 UTC
Ok and Cancel buttons provided by property sheet are correct, see the screenshot and bug description.
the problem is JEditorPane from beans module is not initialized with correct font size. feel free to reassign to java
editor if you think it's their fault
Comment 5 Jan Pokorsky 2008-09-17 11:03:47 UTC
OK, then it is an editor bug. The option is ignored by every editor (JEditorPane), not just property editors.
Comment 6 Miloslav Metelka 2008-09-17 14:12:10 UTC
This is due to rewrite to the new editor settings. I'll check whether we could detect whether the font was not changed
by user in the options yet and in such case use what the fontsize option specifies.
Comment 7 Vitezslav Stejskal 2008-09-22 11:47:07 UTC
I think I know how to fix this.
Comment 8 Vitezslav Stejskal 2008-09-22 11:54:20 UTC
http://hg.netbeans.org/main/rev/a98bdf11af55
Comment 9 Quality Engineering 2008-09-22 17:25:48 UTC
Integrated into 'main-golden', will be available in build *200809221401* on http://bits.netbeans.org/dev/nightly/ (upload may still be in progress)
Changeset: http://hg.netbeans.org/main/rev/a98bdf11af55
User: Vita Stejskal <vstejskal@netbeans.org>
Log: #146541: fixing the editor to pick up value of the --fontsize commandline option
Comment 10 kaa 2008-09-26 19:39:21 UTC
verified