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 137604 - I18N - new database connection dialog doesn't resize to show all of its text
Summary: I18N - new database connection dialog doesn't resize to show all of its text
Status: VERIFIED FIXED
Alias: None
Product: db
Classification: Unclassified
Component: Code (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Vancouvering
URL:
Keywords: I18N
: 137599 (view as bug list)
Depends on:
Blocks:
 
Reported: 2008-06-18 17:13 UTC by kaa
Modified: 2008-06-24 15:58 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (68.25 KB, image/jpeg)
2008-06-18 17:14 UTC, kaa
Details

Note You need to log in before you can comment on or make changes to this bug.
Description kaa 2008-06-18 17:13:52 UTC
Product Version: NetBeans IDE Dev (Build 200806141203)
Java: 1.6.0_06; Java HotSpot(TM) Client VM 10.0-b22
System: Windows XP version 5.1 running on x86; MS932; ja_JP (nb)
I'm running in the Japan locale, using a pseudo localized Netbeans with font size 16.

Steps:
1. Select Services tab in the Ide
2. Choose Databases node
3. Open New Connection dlg from the pop-up menu

The dialog doesn't 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'm running in pseudo localized locale in which each message/label is sometimes longer than in
English. To account for that in some locales, translations from English (and some other euro languages) could be shown
with longer strings.

Also I'm running at font size 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 font size.

Often, these issues happen because the length of some label or message or size of entire window is hardcoded vs using
layout managers or other techniques or api to have the windows or the objects in them, dynamically resize.
Comment 1 kaa 2008-06-18 17:14:24 UTC
Created attachment 63017 [details]
image
Comment 2 Ken Frank 2008-06-18 17:29:04 UTC
*** Issue 137599 has been marked as a duplicate of this issue. ***
Comment 3 David Vancouvering 2008-06-19 00:47:14 UTC
I am using a layout manager and I have looked at the properties for the labels that aren't working and they seem to be
configured exactly the same as the properties for labels that *are* working.  I am a bit stumped...
Comment 4 David Vancouvering 2008-06-19 01:02:39 UTC
OK, reproduced the problem and found the cause - some labels had a hardcoded horizontal size instead of being set to
"Default".  

Checking in change, will mark as fixed when the changeset is pushed to mani.
Comment 5 David Vancouvering 2008-06-19 18:19:51 UTC
http://hg.netbeans.org/main?cmd=changeset;node=b2e4b43d370e
Comment 6 Quality Engineering 2008-06-20 15:56:56 UTC
Integrated into 'main-golden', available in NB_Trunk_Production #271 build
Changeset: http://hg.netbeans.org/main/rev/b2e4b43d370e
User: David Van Couvering <davidvc@netbeans.org>
Log: #137604 - Not all labels were resizing correctly in new connection dialog
Comment 7 kaa 2008-06-24 15:58:13 UTC
verified with trunk build 0622