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 144778

Summary: I18N - font size might be hardcoded or font name might not be standard jdk font name
Product: obsolete Reporter: Ken Frank <kfrank>
Component: visualwebAssignee: John Baker <jbaker>
Status: NEW ---    
Severity: blocker Keywords: I18N
Priority: P3    
Version: 6.x   
Hardware: Sun   
OS: Solaris   
Issue Type: DEFECT Exception Reporter:
Bug Depends on:    
Bug Blocks: 152776    

Description Ken Frank 2008-08-21 20:59:54 UTC
am scanning source code to find possible instances
of hardcoding of font sizes or font names that might
not be standard jdk font names

since hardcoding of font sizes can lead to resize issues
(which can often be solved by using dynamic resizing using
layout managers and by using global ide font size instead
of hardcoding.

and since using font names that are not standard jdk font
names can lead to some fonts not being found, especially
for asian or other non english fonts.

We realize that some of this code might not be used or that
some of these examples might not be applicable

also, this is not meant to be complete since other
instances of these situations might be present using other
api names than patterns used for scanning - please check
code to see if other such cases and fix as needed.

also, suggest checking code to see that usages of setSize
and setPreferredSize calls don't hardcode actual sizes of
dialogs or other windows if it means that dynamic resizing
would not happen in these cases


Here are some instances found of these possible problems:

db.sql.visualeditor
java.awt.Font("Dialog", 0, 12)); // NOI18N
Comment 1 John Baker 2008-08-22 16:19:12 UTC
May not have time to fix in 6.5
Comment 2 Petr Blaha 2008-11-18 13:00:45 UTC
Move visualsqleditor subcomponents below visualweb