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 79930 - I18N - some possible hard coded font or window sizes
Summary: I18N - some possible hard coded font or window sizes
Status: VERIFIED FIXED
Alias: None
Product: webservices
Classification: Unclassified
Component: WSIT (show other bugs)
Version: 5.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Martin Grebac
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2006-07-10 18:51 UTC by Ken Frank
Modified: 2006-09-26 18:27 UTC (History)
2 users (show)

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 2006-07-10 18:51:14 UTC
this is from code scanning for certain api calls, and
realize that some of these might not be in active
code or otherwise valid, and that some will need to be assigned to different
subcats -- the code scanning just looks for certain api calls using hardcoded
values.

These items are either possible hard coded font sizes or use of
non jdk font names.

This is a complement to the actual resize testing done to see these kind
of issues in real product.

as well as possible hard coding of window or dialog
sizes using setPreferred or setMinimumSize.

*** this isn't meant to be a total list as there might be other same situations
not found by the scanning - please check the code.

----

a. hardcoded font size ?

lblTitle.setFont(new java.awt.Font("Dialog", 1, 14));
jLabel1.setFont(new java.awt.Font("Dialog", 0, 12));
./registry/extsrc/org/netbeans/modules/websvc/registry/ui/TestWebServ
iceMethodDlg.java


b. various setPreferredSize, setMinimumSize hardcoded ?

core/src/org/netbeans/modules/websvc/core
registry/extsrc/org/netbeans/modules/websvc/registry/ui
wsitconf/src/org/netbeans/modules/websvc/wsitconf/ui
Comment 2 Ken Frank 2006-07-12 16:45:21 UTC
To developers - what are some other patterns to scan for
to try to detect about hardcoding of window/dialog sizes
or font sizes or font names ?

I search for these api calls that have numbers as an argument:

setFont (size or font name that is not std jdk font name)

setPreferredSize
setMaximumSize
setMinimumSize
setSize

I realize that there can be resize kind of problems even if
these or other apis not used with hardcoded, if some other
coding related to layout manager not done ok, but I
don't know details or what specific api calls to look for 
in those cases.

Any suggestions will be welcome.

ken.frank@sun.com

Comment 3 Martin Grebac 2006-08-23 10:37:22 UTC
Fixed for WSIT in all branches.
Comment 4 Ken Frank 2006-09-26 18:27:50 UTC
verified