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 119526 - I18N - font chooser in options does not resize to show all its contents
Summary: I18N - font chooser in options does not resize to show all its contents
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Thuy.d Nguyen
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-10-19 22:09 UTC by Ken Frank
Modified: 2008-02-29 17:35 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (7.88 KB, text/plain)
2007-10-19 22:11 UTC, Ken Frank
Details
image (9.83 KB, image/gif)
2007-10-19 22:13 UTC, Ken Frank
Details
image (7.88 KB, image/gif)
2008-01-11 21:01 UTC, Ken Frank
Details
NB Font Chooser to replace UML Font Chooser (88.94 KB, text/plain)
2008-02-26 22:54 UTC, Thuy.d Nguyen
Details
NB Font Chooser diaglog (88.94 KB, image/jpeg)
2008-02-26 22:58 UTC, Thuy.d Nguyen
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-10-19 22:09:51 UTC
first gif shows how its invoked; second one shows after resize to show whats not seen in original
invocation.

this is font chooser of uml global colors and fonts window.
Comment 1 Ken Frank 2007-10-19 22:11:43 UTC
Created attachment 51338 [details]
image
Comment 2 Ken Frank 2007-10-19 22:13:10 UTC
Created attachment 51339 [details]
image
Comment 3 Ken Frank 2008-01-11 21:01:28 UTC
Created attachment 54974 [details]
image
Comment 4 Ken Frank 2008-01-11 21:02:30 UTC
first image might be corrupt; third image is the same as it is and shows the
resize situation.

could this be fixed for 6.1 ?

ken.frank@sun.com
Comment 5 Ken Frank 2008-01-15 22:08:35 UTC
making p2 to be consistent with other resize issues; it was filed at wrong priority.

ken.frank@sun.com
Comment 6 Thuy.d Nguyen 2008-01-22 19:23:43 UTC
Fixed the resize issue and tested with bigger font size (18, 24, ...).
Comment 7 Jesse Glick 2008-01-22 21:02:44 UTC
To fix the build I had to add

Checking in PreferenceDialogUI.java;
/shared/data/ccvs/repository/uml/core/src/org/netbeans/modules/uml/ui/swing/preferencedialog/PreferenceDialogUI.java,v 
<--  PreferenceDialogUI.java
new revision: 1.4; previous revision: 1.3
done
Comment 8 Peter Lam 2008-02-23 01:17:41 UTC
Ken, I tried with different large en font sizes and fix seems to work. Could you please give this a try on your system
and mark it verified if the fix is good. Thanks.
Comment 9 Peter Lam 2008-02-25 16:32:16 UTC
comment from Ken:
I can see that bottom like at Show Types On: the dropdown near it
not show completely.

the 2 left and right sections of the window - I can't get them to resize by placing
cursor in between and moving the mouse left or right (without resizing window)
and that is why it seems issue is not fixed.  if it could resize, then there is no problem.

when resize window, the resize happens to the right but not the left, but
user should not need to resize it.
Comment 10 Trey Spiva 2008-02-25 23:11:20 UTC
We should behave the same way that the Font dialog works in the Font & Colors section of the Options panel.  Matter a fact if we are able to reuse the same 
dialog that would be the best situation.

I am confused by the following statement:

"when resize window, the resize happens to the right but not the left, but user should not need to resize it."

Are you saying that the dialog should automatically resize when a new font and size is selected?  If that is the case I do not see the Options Font dialog acting 
that way.
Comment 11 Ken Frank 2008-02-25 23:36:24 UTC
as per Trey's comments - my wording not clear enough - in this case by resize meant
when I put mouse between the 2 sections of that window,
and cursor turns to a |, then try to drag on that cursor to the right
or to the left, if I have not resized the entire window, the dragging
can happen so that right side gets smaller or larger, but left side cannot
be made larger - and thus because of this, the parts of the left side
dont completely show, making this a resize situation.

ken.frank@sun.com
Comment 12 Thuy.d Nguyen 2008-02-26 22:47:34 UTC
Trey, Ken, Peter,

As Trey has suggested below, I can modify our code to reuse the Netbeans Font Chooser dialog (see attached images). Only
one concern is ... if there is any issue arise regarding NB Font Chooser, we have to depend on NB team to fix it.  If
you're all ok with that, I can switch to use NB Font chooser now. Let me know.
Comment 13 Trey Spiva 2008-02-26 22:51:13 UTC
I think that is great.  If there is a bug in the NB Font Dialog, then it needs to be fixed for the General NB product anyway.
Comment 14 Thuy.d Nguyen 2008-02-26 22:54:04 UTC
Created attachment 57314 [details]
NB Font Chooser to replace UML Font Chooser
Comment 15 Thuy.d Nguyen 2008-02-26 22:57:37 UTC
The attached image is corrupted. Attaching the second time...
Comment 16 Thuy.d Nguyen 2008-02-26 22:58:23 UTC
Created attachment 57315 [details]
NB Font Chooser diaglog
Comment 17 Thuy.d Nguyen 2008-02-27 22:44:43 UTC
Fixed to use NB FontChooser dialog.
--------------------------------------
changeset: 69785:3561948ab738
tag: tip
user: lvv@netbeans.org
date: Wed Feb 27 11:12:57 2008 -0800
summary: Thuy's fix for 119526 I18N - font chooser in options does not resize to show all its contents 
Comment 18 Peter Lam 2008-02-29 17:35:44 UTC
Verified the new font chooser in the latest build. Things seem to work well. Since this is the NB Font Chooser, if
there's is i18n issue on this dialog an issue should now be filed on NB.