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 101501 - I18N - part of project propertes does not resize to show all contents well
Summary: I18N - part of project propertes does not resize to show all contents well
Status: VERIFIED FIXED
Alias: None
Product: java
Classification: Unclassified
Component: Project (show other bugs)
Version: 6.x
Hardware: All All
: P2 blocker (vote)
Assignee: Milan Kubec
URL:
Keywords: I18N
: 110974 (view as bug list)
Depends on:
Blocks: 156689
  Show dependency tree
 
Reported: 2007-04-18 03:06 UTC by Ken Frank
Modified: 2009-02-05 14:20 UTC (History)
1 user (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
image (84.89 KB, image/gif)
2007-04-18 03:15 UTC, Ken Frank
Details
image (71.37 KB, image/gif)
2007-04-18 03:15 UTC, Ken Frank
Details
image (20.47 KB, image/gif)
2007-07-03 20:45 UTC, Ken Frank
Details
image (17.75 KB, image/gif)
2007-07-03 20:46 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-04-18 03:06:33 UTC
running in ja locale, using pseudo localized, and at 14 point font
(which is only 3 pt larger than default 11 pt font, part of the 
Application view of the project properties (Descriptoin area)
does not show this area when invoked.

user should not need to manually resize to see any part of a window or dialog.

see attached gifs of as invoked and then after manual resize.
Comment 1 Ken Frank 2007-04-18 03:15:12 UTC
Created attachment 41129 [details]
image
Comment 2 Ken Frank 2007-04-18 03:15:50 UTC
Created attachment 41130 [details]
image
Comment 3 Ken Frank 2007-07-03 20:40:15 UTC
other resize situations for properties window - see new gifs also

1. run section

the configration dropdown does not show all parts - 
according to xdesign and usability, dropdowns do need to
do this

2. web start section 

the dropdown for codebase section does not show all of its contents
Comment 4 Ken Frank 2007-07-03 20:45:47 UTC
Created attachment 44694 [details]
image
Comment 5 Ken Frank 2007-07-03 20:46:17 UTC
Created attachment 44695 [details]
image
Comment 6 Milan Kubec 2007-08-08 10:26:28 UTC
*** Issue 110974 has been marked as a duplicate of this issue. ***
Comment 7 Milan Kubec 2007-09-12 15:27:49 UTC
Should be fixed with issue #64780.
Comment 8 Ken Frank 2007-09-29 17:32:52 UTC
this part is not fixed from report and last 2 gifs:


1. run section

the configration dropdown does not show all parts - 
according to xdesign and usability, dropdowns do need to
do this

2. web start section 

the dropdown for codebase section does not show all of its contents

ken.frank@sun.com
Comment 9 Ken Frank 2007-11-04 21:58:35 UTC
. run section

the configration dropdown does not show all parts - 
according to xdesign and usability, dropdowns do need to
do this

seems to be only part thats not ok now.

ken.frank@sun.com
Comment 10 Ken Frank 2008-01-11 20:06:50 UTC
can this be fixed for 6.1 ?

ken.frank@sun.com
Comment 11 Jan Becicka 2008-02-21 13:12:57 UTC
Milane?
BTW I don't see any problem.
Comment 12 Ken Frank 2008-02-21 20:24:17 UTC
using recent 6.1, I still see the problem in run section as described
and also in the dropdown for the web start section, as described.

its true resize problems show with some combination of larger font
size and length of translated string, and can vary per platform.

but in past, most if not all resize problems reported have been real
in that something was hardcoded or layout mgr api was not used correctly
to avoid these situations.

ken.frank@sun.com
Comment 13 Ken Frank 2008-02-21 20:33:37 UTC
the strange thing is, for the run section,
if pick the customize option from the ide window itself, 
on the toolbar, where the dropdown is, the props window
does show ok; no resizing problems vs the problems seen when
invoking project props from project menu.

ken.frank@sun.com
Comment 14 Milan Kubec 2008-03-20 16:21:47 UTC
kfrank, there were some fixes in this area, please could you check latest build and attach new screenshots in case the
problem persists. Thanks.
Comment 15 Ken Frank 2008-03-26 21:59:36 UTC
I don't see anything that has changed and the 3 gifs attached, first, 3rd and fourth,
show the problem as before.

as mentioned, this is the props when choosing the project in explorer menu.

when choosing the customize choice on the toolbar, that props window is ok even though
it seems to be the same subwindows in it.

Are these actually 2 windows - the props from choosing from explorer vs
props from choosing customize ? if so then can see how one might be hardcoded or not
fully dynamically resize.

or if same, is there some sizing info of them communicated at time of the choice
that would be different if invoked from explorer vs from toolbar ?


ken.frank@sun.com
Comment 16 Jiri Prox 2008-04-11 00:54:22 UTC
moving opened issues from TM <= 6.1 to TM=Dev
Comment 17 Ken Frank 2008-04-16 20:37:31 UTC
my original filing mistake - was filed at wrong priority -
should be p2 like all other such resize.

since it still appears in 6.1 will change release to that one also.

or let me know if a new issue with all details here is needed for 6.1.

ken.frank@sun.com
Comment 18 Jan Becicka 2008-06-18 12:38:59 UTC
Milane?
Comment 19 Milan Kubec 2008-06-18 12:55:38 UTC
Honzo?

This issue will be resolved for 6.5 release.
Comment 20 Milan Kubec 2008-07-04 07:05:21 UTC
Ken, are there any guidelines on how to create such a build to verify if the fix works? It can be only reproduced on the special build, so I don't have a way to 
reproduce/verify the issue. Thanks.
Comment 21 Jan Becicka 2008-07-11 10:02:55 UTC
Ken?
Comment 22 Ken Frank 2008-07-11 16:10:30 UTC
send me the jar(s) that have the fix; I will pseudo localize and return to you so you 
can run in other locale using 14 pt font. you could just take your own bundles and add extra characters
the msgs, though am not sure if not having mbyte in them would not cause the problems.

ken.frank@sun.com
Comment 23 Jan Becicka 2008-07-21 17:23:02 UTC
I'm sorry, but it works for me, I don't see any single dialog which does not resize well.
Comment 24 Ken Frank 2008-07-21 17:49:41 UTC
Jan,

did you create pseudo localized bundle files and then put into
localized jar file and then run using 16 pt font in ja locale ?
if not, then its not the testcase; this was mentioned in some recent
comment below.

let me know names of product jars that have these msgs/labels of the
props and I'll send you such pseudo localized ja jars and you can
run in ja locale at 16 pt font and see

update - what is being seen now as problems resize are:

source tab
 source binary format dropdown does not show default item
completely
also includes/excludes button not show text completely

libs tab
java platform dropdown default item not show completely

run tab
config dropdown not show default item completely

web start tab
code base dropdown not show default item completely
and the extensions button not show completely

ken.frank@sun.com
Comment 25 Petr Dvorak 2008-07-21 18:16:44 UTC
Hi Ken!

I see where the problem might be - I have found it using one hint you sent:

> the strange thing is, for the run section, if pick the customize option from the IDE window itself,
> on the toolbar, where the dropdown is, the props window does show ok; no resizing problems vs the
> problems seen when invoking project props from project menu.

You were not fully right in this - there is still the same problem, but it is not so visible...

This is what happens: Once you open the Properties dialog, dialog's dimensions are computed so that every component of
the currently selected tab (!!!) fits well in the dialog. This is why Run section looks OK when it is invoked from the
toolbar. However, if you switch to another tab (for example from Sources to the Run tab), dialog might become too small
(which happens when you invoke properties using for example the context menu in the Projects view).

I think there is some reason behind this "do-not-resize-dialog" solution: Dialog definitely should not change its
dimensions once it is invoked (it should not resize when you select different tab) without direct user's resize action.
It would be very confusing if the dialog changed its dimension when user switch to some other tab...

Solution would be to compute the numbers maxWidth and maxHeight over all tabs (Sources, Groovy, ..., Application, ...,
Formating - btw Formating tab suffers from the issue the most - check it) and then use these values for the dialog's
dimensions. I do not know how difficult this would be, I will discuss this with Milan Kubec tomorrow...

In any case, I think this issue does not deserve to be P2, although the priority guidelines might suggest this. The
workaround is currently quite bearable, default dimensions are set quite reasonably so that the impact of this problem
is minimized and - last but not least - when I meet issue like this (...yes, sometimes it happens...), I just resize the
dialog manually by a few pixels, without having a big problem with this solution (of course it would be better if I
didn't have to do that...).

I would personally (according to my taste) suggest to set the priority of this I18N issue to P3. What do you say, Ken?

With regards,

Petr Dvorak
Comment 26 Ken Frank 2008-07-21 19:56:21 UTC
Petr,

thanks for the good explanation !
I do see that its challenge with a multi tabbed dialog
like project props, if the rule is to not have the entire
dialog resize when go to another tab, then it makes
it more challenging so that the items of any one tab
resize ok within it.

But couldn't some solution be to make original dialog
size as big as would be for largest tab though I don't know
it that is possible.

I do know that solutions have been done in past for such
multi tabbed dialogs but I don't know how they approached it.

as to changing priority, lets leave it at p2 for now
until after your discussion with Milan and to get your feedback
on what I've written above.

ken.frank@sun.com
Comment 27 Milan Kubec 2008-07-23 11:55:23 UTC
Hopefully fixed. The dialog will resize according to each panel preferred size and the new size will be preserved and
used next time.

http://hg.netbeans.org/main/rev/abdd15a33101
Comment 28 Ken Frank 2008-07-28 19:54:14 UTC
solaris ja locale, using pseudo localized, 0727 trunk zip, using 14 pt font
- it all looks good and things mentioned in my last comment that
still did not resize, the all  look all fixed now.

ken.frank@sun.com
Comment 29 _ wadechandler 2009-01-05 07:35:08 UTC
The fix for this issue caused issue 153877 which seems to be a worse situation. I'm trying to address it, and thought I
would track down the issue where this change occurred to try to get some perspective as to the issue. Please review
issue 153877.