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 126429 - I18N - Web Free-from App wizard does not resize to show all of its text
Summary: I18N - Web Free-from App wizard does not resize to show all of its text
Status: VERIFIED FIXED
Alias: None
Product: javaee
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2008-01-31 18:00 UTC by kaa
Modified: 2010-01-12 02:11 UTC (History)
3 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (113.61 KB, image/jpeg)
2008-01-31 18:01 UTC, kaa
Details
image (149.78 KB, image/jpeg)
2008-02-13 14:06 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-01-31 18:00:59 UTC
Product Version: NetBeans IDE Dev (Build 200801290002)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)

Steps:
1. Open New Project wizard
2. Choose Web Free-from App from the Web category

The wizard appears. It does not resize to show all of its text. See image.

Assumption is that user does not need to manually resize most windows or dialogs to see all of the UI objects and
information in them. I'am running in pseudo localized locale in which each message/label is a bit longer than English to
account for that in some locales, translations result in longer strings than in English. Also am running at fontsize 16,
which is viewed as a valid font size that might be used. Resizing issues are not just related to i18n; they might show
to user in English locale if they run at larger fontsize.
Comment 1 kaa 2008-01-31 18:01:22 UTC
Created attachment 55862 [details]
image
Comment 2 Petr Jiricka 2008-02-05 16:58:11 UTC
So does resizing the dialog manually help?
Comment 3 David Konecny 2008-02-05 20:09:56 UTC
mkubec, you added these hints to all freeform projects so the same problem exists in all of them. Would you mind fixing
it? I'm not sure how though because wizards have fixed size (a UI guideline?), right? Thanks, -D
Comment 4 Milan Kubec 2008-02-06 08:22:15 UTC
I will try to fix it. 

Note: kfrank runs those tests with font size 14 (e.g. issue #126455). Is there any unified testing metrics for font
sizes? After potential fix for 16pt - if you use 20pt font size it will probably break again.
Comment 5 kaa 2008-02-06 12:41:59 UTC
I saw vertical scrollbar in several wizards.
May be it will help to solve the problem in case of arbitrary font size.
Comment 6 Milan Kubec 2008-02-08 15:42:14 UTC
Fixed. Freeform customizer size was enlarged to the same size as java project customizer.
Please, use the same way of verification as kfrank in issue #126455.

http://hg.netbeans.org/main/rev/e56745d0e0e7
Comment 7 kaa 2008-02-11 12:42:46 UTC
The issue #126455 is verified yet.
Steps from above looks ok with font size 16.

Product Version: NetBeans IDE Dev (Build 200802110004)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP
Comment 8 kaa 2008-02-11 13:41:55 UTC
The issue #126455 is not verified yet.
If some special steps are needed describe them please.
Comment 9 Milan Kubec 2008-02-11 13:59:31 UTC
No special steps are needed. If you have already verified the issue then it's OK and no other action is needed. Thanks.
Comment 10 kaa 2008-02-13 14:05:50 UTC
verification was incorrect. The issue is reproducible:

Product Version: NetBeans IDE Dev (Build 200802120006)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP

Comment 11 kaa 2008-02-13 14:06:38 UTC
Created attachment 56603 [details]
image
Comment 12 Milan Kubec 2008-02-13 14:27:53 UTC
OK, then I'd like to see some general specification for I18N testing. 

Reporter in one issue says:
"running pseudo localized nb using 14pt font, solaris, ja locale". 

Other reporter in another issue says:
"Also am running at font size 16".

Why are there different conditions regarding font size?
Thanks for clear answer.
Comment 13 Ken Frank 2008-02-13 18:40:01 UTC
both font sizes are viewed as reasonable ones that might be used
and thus its ok that both might be used in the testing; normally resize situations
are result of not doing dynamic resizing but instead doing hardcoding
of sizes; ui/xdesign team can give you more inforamation about it.

and resize situations are not just i18n ones as might happen in
en locale also.

as to what causes the problem to show when hardcoded value is exceeded -
it might be length of some sting, it might be font size, it might be
monitor size or resolution.

ken.frank@sun.com
Comment 14 Milan Kubec 2008-02-13 21:03:05 UTC
Honestly I don't know how to fix this kind of issues. I don't think that there is any dialog in NetBeans IDE that does
dynamic sizing of itself according to required dimensions of all its components, it would mean that each dialog will be
of different size. There must be same size hardcoded as final dimension of each dialog.
Comment 15 kaa 2008-02-13 21:37:52 UTC
Probably embedding the dialog in scrollpane will solve the problem.
For example when font size will be  greater then some value the dialog will have this scroll option.
I saw this solution.
Comment 16 Milan Kubec 2008-02-14 06:48:36 UTC
Well, then what is better? Having scrollpane with two scrollbars to actually move the whole underlaying pane to find
hidden components. Also using scrollpane hides mode space (==components) than without scrollpane. Or manually resize the
dialog simply by one move to see it all.
Comment 17 kaa 2008-02-14 09:55:40 UTC
May be UI team can give an explanation why user does not need to manually resize dialogs.
This is a rule of i18n testing.
Comment 18 Ken Frank 2008-02-14 16:04:23 UTC
why user not need to manually resize - its not really
a rule of i18n testing - its a rule/guideline that is from hie/xdesign
and also seems pretty standard - and thats why in i18n or any other testing
that issues are filed if user does need to manually resize (using reasonable font sizes)
(most main ide windows, items with scrollbars, jtable columns are exempt
since they provide an alternate way of doing the resizing -- but even for
those windows, if something inside one of those windows does not show completely
even if using sbars or other means, thats a resize issue also.

ken.frank@sun.com
Comment 19 Milan Kubec 2008-02-20 13:30:09 UTC
I tried to tweak the layout to get more space.

http://hg.netbeans.org/main/rev/980e27ac7089
Comment 20 Milan Kubec 2008-02-20 13:47:01 UTC
The rest of the change.

http://hg.netbeans.org/main/rev/b7dccc36f5ab
Comment 21 kaa 2008-03-03 17:47:59 UTC
Product Version: NetBeans IDE Dev (Build 200802270005)
Java: 1.6.0_03; Java HotSpot(TM) Client VM 1.6.0_03-b05
System: Windows XP version 5.1 running on x86; MS932; ja_JP