Bug 144781 - I18N - font size might be hardcoded or font name might not be standard jdk font name
I18N - font size might be hardcoded or font name might not be standard jdk fo...
Status: NEW
Product: soa
Classification: Unclassified
Component: BPEL Debugger
6.x
Sun Solaris
: P3 (vote)
: 6.x
Assigned To: issues@soa
issues@soa
: I18N
Depends on:
Blocks:
  Show dependency treegraph
 
Reported: 2008-08-21 21:07 UTC by Ken Frank
Modified: 2009-03-05 22:59 UTC (History)
0 users

See Also:
Issue Type: DEFECT
:


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:07:04 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:

bpel.debugger.ui
tfTargetNamespace.setFont(new java.awt.Font("Tahoma", 1, 11));
tfProcessName.setFont(new java.awt.Font("Tahoma", 1, 11));
jLabel5.setFont(new java.awt.Font("Tahoma", 2,
11));
src/org/netbeans/modules/bpel/debugger/ui/source/SeveralSourceFilesWarning.java
compapp.casaeditor
java.awt.Font("Dialog", 1, 12));


this.setFont(new Font("Dialog", Font.PLAIN, 12)); //NOI18N
./src/org/netbeans/modules/etl/ui/view/ETLCollaborationTopPanel.java

textArea.setFont(new Font("monospaced", Font.PLAIN, 12

etl.editor:        txtArea.setFont(new Font("Courier", Font.PLAIN, 12));
etl.editor.setfont:        textArea.setFont(new Font("monospaced", Font.PLAIN, 12));
etl.editor.setfont:        textArea.setFont(new Font("monospaced", Font.PLAIN, 12));
etl.editor.setfont:        this.setFont(new Font("Dialog", Font.PLAIN, 12)); //NOI18N
etl.editor.setfont:        txtArea.setFont(new Font("Courier", Font.PLAIN, 12));
... more ...
Comment 1 Jun Qian 2009-03-05 22:58:26 UTC
Fixed hard-coded fonts in CASA Editor: http://hg.netbeans.org/soa-dev65/rev/c9ffd2066194
Comment 2 Jun Qian 2009-03-05 22:59:29 UTC
reassigning to bpel.debugger.ui


By use of this website, you agree to the NetBeans Policies and Terms of Use. © 2012, Oracle Corporation and/or its affiliates. Sponsored by Oracle logo