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.
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
Fixed in websvc/core and websvc/registry : http://websvc.netbeans.org/source/browse/websvc/registry/extsrc/org/netbeans/modules/websvc/registry/ui/TestWebServiceMethodDlg.java?r1=1.2.2.4.2.2&r2=1.2.2.4.2.3 http://websvc.netbeans.org/source/browse/websvc/registry/extsrc/org/netbeans/modules/websvc/registry/ui/ProxySelectionDialog.java?r1=1.1.38.1&r2=1.1.38.2 http://websvc.netbeans.org/source/browse/websvc/registry/extsrc/org/netbeans/modules/websvc/registry/ui/AddWebServiceDlg.java?r1=1.2.2.3.2.1&r2=1.2.2.3.2.2 http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/webservices/ui/panels/SelectHandlerPanel.java?r1=1.2.20.1.2.2&r2=1.2.20.1.2.3 http://websvc.netbeans.org/source/browse/websvc/core/src/org/netbeans/modules/websvc/core/client/wizard/ClientInfo.java?r1=1.20.8.3.2.34&r2=1.20.8.3.2.35
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
Fixed for WSIT in all branches.
verified