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 144783 - I18N - font size might be hardcoded or font name might not be standard jdk font name
Summary: I18N - font size might be hardcoded or font name might not be standard jdk fo...
Status: RESOLVED WORKSFORME
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: Sun Solaris
: P3 blocker (vote)
Assignee: Tomas Zezula
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-08-21 21:12 UTC by Ken Frank
Modified: 2008-08-22 07:08 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2008-08-21 21:12:22 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 instance(s) found of these possible problems:

java.examples
::::::::::::::
usernameLabel.setFont(new java.awt.Font("Dialog", 1, 24));
clientInfoLabel.setFont(new java.awt.Font("Dialog", 0, 24));
validationMsgLabel.setFont(new java.awt.Font("Dialog", 1, 11));
Comment 1 Tomas Zezula 2008-08-22 07:08:26 UTC
I've did scan of new Font in the java.project module (the module the issue was reported to) and there are no occurences of it, probably wrong component.
The usernameLabel seems as some kind of web project which requires server login. Maybe (web/project)?