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 115776 - I18N - resize problems in replace uml window
Summary: I18N - resize problems in replace uml window
Status: VERIFIED FIXED
Alias: None
Product: uml
Classification: Unclassified
Component: General (show other bugs)
Version: 6.x
Hardware: Sun All
: P2 blocker (vote)
Assignee: Craig Conover
URL:
Keywords: I18N
Depends on:
Blocks:
 
Reported: 2007-09-18 04:25 UTC by Ken Frank
Modified: 2007-11-04 16:26 UTC (History)
0 users

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (15.55 KB, image/gif)
2007-09-18 04:31 UTC, Ken Frank
Details
image (967.90 KB, image/gif)
2007-10-12 01:57 UTC, Ken Frank
Details
image (16.45 KB, image/gif)
2007-10-12 01:59 UTC, Ken Frank
Details
i (52.32 KB, image/gif)
2007-10-12 02:00 UTC, Ken Frank
Details

Note You need to log in before you can comment on or make changes to this bug.
Description Ken Frank 2007-09-18 04:25:49 UTC
not all parts of replace uml window show fully - using 14 pt in ja locale using pseudo localized;
similar issues were fixed recently in the find uml window.

see attached gif.
Comment 1 Ken Frank 2007-09-18 04:30:22 UTC
items not showing all

1. label of checkbox to left
of the match whole word only checkbox

and also some checkbox and label 
completely not seen
since there are 3 checkboxes

match case, this is an xmpath expression and match whole word only

one needs to resize a lot to see all 3 though user should not need to resize.

2. word Projects to left of
Search in label

3.Navigate to diagram on double click,
not quite shows all of it.

Comment 2 Ken Frank 2007-09-18 04:31:51 UTC
Created attachment 48946 [details]
image
Comment 3 Peter Lam 2007-09-21 20:30:48 UTC
this one can be a p3.
Comment 4 Ken Frank 2007-09-21 20:51:22 UTC
Peter,

can you reevaluate it - since one entire checkbox and its label are missing
in the gif, it seems like its more serious situation than the items 2 and 3 below
since user would be missing entire checkbox and label.

i realize thats the tricky thing about resize - it depends on font size, length of string
sometimes monitor size and/or resolution and platform.

ken.frank@sun.com
Comment 5 Peter Lam 2007-09-21 21:49:00 UTC
Ken, sorry that I should have added a better comment.
I tried this with bigger font and labels got truncated but I was able to resize the dialog to display everything
properly. So, the workaround is to resize the dialog. That's the reason I think it should be a P3 because a viable
workaround exists. Is it not the case for the other locale? Thanks.
Comment 6 Ken Frank 2007-09-21 22:41:43 UTC
manual resizing is not a reasonable workaround - that is the whole basis of resizing requirements - user should
not need to resize or need to know that they need to resize, as in case like this of hidden ui objects.
Its not just my interpretation but has come from developers and those in ui teams.

and req is that windows and dialogs should be coded to use dynamic resizing, and when this is done,  most of these
problems dont exist anymore;
this is the experience with many, many resizing issues on all parts of nb over various releases.

and as you saw, this can happen even in en locale, though there is no diff in issue prio related to one locale or the other.

thus thats the basis of my comments and why resize issues are filed at p2.

ken.frank@sun.com
Comment 7 Peter Lam 2007-09-25 23:54:21 UTC
agree with Ken's explanation, so update back to its original p2 priority for uml dev team to look into.
Comment 8 Craig Conover 2007-10-02 04:48:46 UTC
Working on creating an environment to simulate the ja locale or at least very large fonts. Setting OS locale to ja
doesn't work because the build environment I am using doesn't contain any translated files and it hasn't be translated
yet so they are not even available. Working with Ken Frank to setup proper simulation to test properly.
Comment 9 Craig Conover 2007-10-02 23:33:38 UTC
I have a fix in place. Will check in later this evening when I'll be around long enough to monitor the auto-build for
success.
Comment 10 Craig Conover 2007-10-03 08:39:15 UTC
Tested using very large font (24) and it worked well. Hope that ja locale works equally well.

Changed the layout of the dialog a bit. The checkbox and radio button panels are centering instead of left justifying.
Tried many different angles of attack, but none seem to cause it to left justify. Checking in as is and will work on
this minor issue.
Comment 11 Craig Conover 2007-10-04 01:53:12 UTC
The search options panels are now properly anchored left (WEST). Layout issues should be resolved for ja locale as they
are for very large font setting. I tested with --fontsize 36.
Comment 12 Ken Frank 2007-10-12 01:56:20 UTC
This needs to be reopened as it does not seem fixed and actually there are now
completely missing sections of the window as shown.

see 2 new attached gifs of the window shown as invoked and then as resize some.

Also, instead of the word from bundle of Search Options is the keyname "IDS_SEARCHOPTIONS";
this was not a problem originally.

Finally, besides the Search in section not showing when window invoked,
the sectionof Search Results still seems too small and only resize the column widths
up to border of the entire search result area; can the entire window itself be made bigger
so that more of each column would show ?

I think that if the solution to this was not tried in japanese locale thus did not use
the pseudo localized values, that the fix might have appeared ok.

I also know that resize problems can depend on monitor size or resolution, font size
and msg or string length.

But I think at least the missing Search in section needs to be seen on invocation
besides having the Search Options come from the bundle file - that word is pseudo localized
in the bundle file now as it was originally, when that word did come from bundle file.

ken.frank@sun.com
Comment 13 Ken Frank 2007-10-12 01:57:08 UTC
Created attachment 50766 [details]
image
Comment 14 Ken Frank 2007-10-12 01:59:44 UTC
Created attachment 50767 [details]
image
Comment 15 Ken Frank 2007-10-12 02:00:47 UTC
Created attachment 50768 [details]
i
Comment 16 Ken Frank 2007-10-12 02:01:15 UTC
ignore 2nd gif, 3rd and 4th ones are the new ones.
Comment 17 Craig Conover 2007-10-12 17:42:06 UTC
The key "IDS_SEARCHIN" is a new key that I added for this new title panel in the Bundle.properties file under package
org.netbeans.modules.uml.integration. My debug trace shows that the key is found properly. Make sure you have that update.

I'll continue to work on making the resize work properly.
Comment 18 Craig Conover 2007-10-13 22:10:37 UTC
Fix available, but waiting for approval before checkin to trunk (post beta2 branching) and into beta2 branch.
Comment 19 Craig Conover 2007-10-15 20:28:18 UTC
Rearranged buttons and other fields so that the dialog real estate is more wisely used and things resize properly. All
internal panels in the dialog now use GridBagLayout instead of BorderLayout with the master panel using BorderLayout.
Resizing manually and automatically works as expected now.

Comment 20 Ken Frank 2007-10-31 22:18:00 UTC
will verify but its still a bit tight as to the entire window size and the
column available total width which means longer strings in one or a few col headers
mean user cant see all columns headers by doing column resize.

also in my env the close button overwrites a bit the Replace All button

since the find uml window is bigger than the replace, couldnt the replace one be
made just as big, and that probably would solve the situation.

I'd say lets resolve this now anyway but as we saw translation team ran into
some resize with real translations in other parts of uml recently
but its up to uml team on this now, IMO.

ken.frank@sun.com
Comment 21 Ken Frank 2007-11-04 16:26:43 UTC
verifying but see my last comment before this one in that
there are still some areas that might need fine tuning.

ken.frank@sun.com