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.
Summary: | I18N - Some parts of an autoupdate window do not fully appear in other locales when translated and/or using larger font sizes | ||
---|---|---|---|
Product: | platform | Reporter: | Ken Frank <kfrank> |
Component: | Autoupdate | Assignee: | _ tboudreau <tboudreau> |
Status: | VERIFIED FIXED | ||
Severity: | blocker | CC: | dsimonek, jf4jbug |
Priority: | P2 | Keywords: | I18N |
Version: | 3.x | ||
Hardware: | Sun | ||
OS: | Solaris | ||
Issue Type: | DEFECT | Exception Reporter: | |
Bug Depends on: | |||
Bug Blocks: | 33246, 37578 | ||
Attachments: |
panel of update center wizard
update center wizard - another resize issue update center wizard -another resize issue another view of the issue, before resizing different view of issue,after resize remainder of the fixes s1s5-fcs autoupdate screenshot |
Description
Ken Frank
2003-05-20 19:47:27 UTC
Created attachment 10357 [details]
panel of update center wizard
Created attachment 10410 [details]
update center wizard - another resize issue
Created attachment 10411 [details]
update center wizard -another resize issue
please ignore attachment shot_0520_01.gif, that is not related to this area. ken.frank@sun.com Sometimes, the line that needs resizing is not visible at all, as in 2 additional gifs; this seems to vary somewhat on platform and length of strings, but this is same issue as originally filed. Created attachment 10475 [details]
another view of the issue, before resizing
Created attachment 10476 [details]
different view of issue,after resize
Tim, please could you take a look on some of these panels. Big thanks! Note, I made some changes to general wizard sizing policy that may solve some of mentioned problems, so please first checkout from main trunk and go through the wizards to see what left. Thx. Fixed in trunk. Note the AutoResizeTable class - it is a JTable which checks the font size the first time it is painted, and adjusts its row height if it's too small for the font. May be useful elsewhere. I don't know why JTable doesn't do this to begin with - it would be nice. Dafe: note one problem with the revisions to the wizard sizing policy: The window needs to be re-centered. On panel 3 of this wizard, at 1280x1024, the wizard panel becomes larger, and the right edge is off the screen. Committed to 3.5 branch. have to reopen. this are still not fixed... run with fontsize 18. and the end of notice is hidden and user even doesn't notice that something is missing... <a href="http://www.netbeans.org/issues/showattachment.cgi?attach_id=10475&file=step1">before resize</a> <a href="http://www.netbeans.org/issues/showattachment.cgi?attach_id=10476&file=step1.afterresize.gif">after resize</a> Trying to advice - check if JTextAreas have their preferred column and row number property set correctly, this affects their computed preferred size. Will check the resizing policy. The content of the panel in the problem screenshot is plugged in by the S1S closed source branding - they are providing a "customizer" component which supplies the content. I would be happy to work with the author of this component to ensure that it is set up correctly, but I do not know where the source code to the component that is displayed lives - it is not part of NetBeans. You probably want to file a bug in BugTraq for this particular panel. Closing this issue as fixed - as far as I know, it is fixed on the NetBeans side of things. If the supplied component returns a correct preferred size scaled based on font size, it should be sized correctly - this is the case with all of the other panels in the wizard now, so I don't think it's the sizing policy causing the problem. Again, I'll be happy to help with it on the closed source side, but I don't know how to find the source code for this first panel's inner component. Tim, I searched and dig around and I found that autoupdate wizard panels still return strange preferred sizes - (550, 400) for all all three first panels (don't know for others). This causes resizing policy not to be invoked, which means centering is not done. On other wizards (Setup Wizard, New Wizard) it works well, so I assume there is something strange with autoupdate panels. Here is my debug messages, as I pressed next button to get from first panel to second, third and fourth. "prev size" is actual size of panel which is being left by clicking "next" button, "cur pref size" is preferred size of newly appeared panel. You can see that preferred size and actual size in next round differ, which is a mistake IMO. Trying to resize... prev size: java.awt.Dimension[width=550,height=400] cur pref size: java.awt.Dimension[width=550,height=400] parent window is null? false Trying to resize... prev size: java.awt.Dimension[width=676,height=400] cur pref size: java.awt.Dimension[width=550,height=400] parent window is null? false Trying to resize... prev size: java.awt.Dimension[width=917,height=400] cur pref size: java.awt.Dimension[width=550,height=400] Created attachment 10752 [details]
remainder of the fixes
patch reviewed, OK. Sorry for the delay, I was out of office. still could not see one of the fix(as in gif file step1). Configuration: Build:Nevada0615 OS:Solaris9 JDK:jdk1.4.1_02 Locale:zh_CN That is the screen I was referring to when I commented earlier that there was one screen which is part of the commercial product, but which is not part of the NetBeans codebase. I do not have a copy of the source code for the panel in this screenshot, as I work on NetBeans, not the commercial product. There is a LoginPanel.java in the source base, but it is not used in NetBeans - and it is just a container for a component supplied from elsewhere. I have a suspicion that the component being supplied is returning an incorrect preferred size, and that's the source of the problem. At the same time, I am not the author or maintainer of the autoupdate module, so I don't know the intricacies of how the branding layer for the commercial product supplies this customizer. There is no code in LoginPanel that explicitly sets the size of this step in the wizard, so I'm assuming the inner component is doing that. You may want to have a conversation with whoever handles engineering for autoupdate in the commercial product. Created attachment 11117 [details]
s1s5-fcs autoupdate screenshot
v |