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 19295 - I18N - Setup wizard does not show all text in panels when using large fonts.
Summary: I18N - Setup wizard does not show all text in panels when using large fonts.
Status: VERIFIED FIXED
Alias: None
Product: platform
Classification: Unclassified
Component: Window System (show other bugs)
Version: 3.x
Hardware: All All
: P2 blocker (vote)
Assignee: David Simonek
URL:
Keywords: A11Y, I18N, UI
: 33248 (view as bug list)
Depends on:
Blocks:
 
Reported: 2002-01-10 18:38 UTC by George Hernandez
Modified: 2008-12-23 12:54 UTC (History)
6 users (show)

See Also:
Issue Type: DEFECT
Exception Reporter:


Attachments
a themes xml file (1.23 KB, text/plain)
2002-01-10 18:42 UTC, George Hernandez
Details
showing one of the resize issues (37.38 KB, image/gif)
2003-05-21 22:22 UTC, Ken Frank
Details
diff of the patch which solves the problem (16.19 KB, patch)
2003-06-11 14:39 UTC, David Simonek
Details | Diff
radio b. text is still not fully visible (38.86 KB, image/jpeg)
2003-06-18 14:09 UTC, Lukas Hasik
Details
second patch (to be applied together with first one) (7.11 KB, patch)
2003-06-19 14:30 UTC, David Simonek
Details | Diff

Note You need to log in before you can comment on or make changes to this bug.
Description George Hernandez 2002-01-10 18:38:59 UTC
I have a Themes.xml file that I was using to test my own a11y compatibility for
a wizard I created using the openapi's wizard templates. Due to the size of the
font, 18 point, the setup wizard did not show portions of the first panel. The
change in font size also impacts all my wizard panels.
Comment 1 George Hernandez 2002-01-10 18:42:58 UTC
Created attachment 4087 [details]
a themes xml file
Comment 2 Marian Mirilovic 2002-01-18 16:58:42 UTC
a11y is module, this is A11Y issue .
Comment 3 _ ttran 2002-06-13 22:11:10 UTC
the problem is not solvable.  Using too large font is similar to
trying to run the IDE with VGA standard resolution.  Not A11Y per se
because the low-vision users have other means to read the screen text
(zooming SW)
Comment 4 George Hernandez 2002-06-19 21:46:14 UTC
I was able to make a change to the openide file WizardDescriptor.java,
method createContentPanel(boolean) that alleviated the problems with
my wizard. What I did was to remove the line that set the preferred
size of the left pane (called contentPanel) of the wizard. Is this not
a viable thing to do to help mitigate some of the a11y issues? If this
line is not there, my wizard seems to resize well without having to
calculate and set the preferred size of my panels.
Comment 5 David-john Burrowes 2002-06-19 22:38:07 UTC
FWIW, I've been talking with other folks about this issue since Trung
closed it.  Here are some observations I've put together:

- most or all of the dialogs in NetBeans size themselves reasonably
when a larger font is used.  Why should the wizards be different?

- I think one of the accessibility requirements is that things should
be able to cope with fonts that are twice the size of the default. 
(yes, there are zooming tools.  But, if you just need the text a
little larger, it would be nicer to avoid the hassle of using one of
those tools)

- Even ignoring a11y issues, there are l10n issues here. German text
will make all the text longer.  Chinese will generally involve using a
larger font size.  The wizards may need to resize to accomodate these.

All of this suggests that some kind of auto-resizing should be done by
the wizards, I think.
Comment 6 _ ttran 2002-06-28 16:31:30 UTC
I still maintain that this is not a A11Y bug per se because the user
can alway make the wizard larger herself.  Annoying?  Yes!

HIE folks, the ball is on your court.  Please come up with the sizing
algorithm which works well for _all_ users.  We can remove the
setPreferredSize(<hard coded value>) as Hernandez suggested but then
the width of the content pane will change when its content changes
between the steps.
Comment 7 _ ttran 2002-06-28 16:37:05 UTC
More thoughts:  if we make the left side content pane resizable we
need to resize the background image too.  Need to make it resize-friendly.
Comment 8 _ ttran 2002-06-28 16:49:15 UTC
Jano, please drive the discusion among UI/HIE folks to define the
sizing algorithm, then reassign the issue back to me.  Thanks
Comment 9 David-john Burrowes 2002-07-11 22:13:39 UTC
Well, as an initial guess, I would say the sizing algorithm should be:

find the maximum preferred size of all the pages in the wizard, then
constrain that by the size of the screen so it doesn't show up larger
than the screen, and set the wizard to be that new size.

Would that work?
Comment 10 jrojcek 2002-07-17 10:26:34 UTC
David John, that could work in ideal world, perhaps. Current NB wizard
framework doesn't allow to get all wizard panels at wizard invocation
time. It is because:
* it would be too expensive to compute preferred size of all panels
* some panels can change their content dynamically according to user
input in previous steps 
* preferred size of swing components depends also on presented data.
But the data can depend on previous steps.

We want to achieve two requirements:
1. display whole content of each wizard panel
2. do not resize wizard panels

Due to constraints specified above I propose following:
* For default font size, language, look and feel, and other attributes
that affect size of panels assure that both requirements are satisfied
* For other than default settings satisfy first requirement

Related to resizing of steps panel. I do not agree that width of steps
panel should change according to font size. Steps panel is inserted
inside scrollable pane, so all steps can be made visible. There is
also image resizing issue that Trung mentioned. Current state is fine
with me.
Comment 11 _ ttran 2002-07-19 13:43:02 UTC
What jrojcek said in the previous comment is exactly the current
state.  Should I close the issue as INVALID?
Comment 12 jrojcek 2002-07-19 13:56:26 UTC
I am not sure that current state is exactly same to what I wrote. I
can read in bug description that portions of the first setup wizard
panel are not shown. I called for always displaying whole wizard
panels. Perhaps I didn't express it very well. So, please, do not
close the bug as invalid.
Comment 13 Marek Grummich 2002-07-22 08:48:11 UTC
Target milestone was changed from '3.4' to TBD.
Comment 14 Marek Grummich 2002-07-22 09:00:48 UTC
Target milestone was changed from '3.4' to TBD.
Comment 15 Marek Grummich 2002-07-22 09:05:28 UTC
Target milestone was changed from '3.4' to TBD.
Comment 16 Marek Grummich 2002-07-22 09:08:14 UTC
Target milestone was changed from '3.4' to TBD.
Comment 17 Marek Grummich 2002-07-22 09:13:33 UTC
Set terget milestone to TBD
Comment 18 Marek Grummich 2002-07-22 09:14:28 UTC
Target milestone was changed from '3.4' to TBD.
Comment 19 Marek Grummich 2002-07-22 09:16:07 UTC
Set terget milestone to TBD
Comment 20 Marek Grummich 2002-07-22 09:21:26 UTC
Target milestone was changed from '3.4' to TBD.
Comment 21 David-john Burrowes 2002-07-23 01:58:14 UTC
I agree with your proposal of satisfying both requirements at normal
font sizes, and only satisfying the first (making sure everything is
shown (when it isn't larger than the screen)) in other circumstances.
 And I also agree that this isn't what happens at the moment.
Comment 22 _ ttran 2003-05-13 12:48:42 UTC
*** Issue 33248 has been marked as a duplicate of this issue. ***
Comment 23 Ken Frank 2003-05-16 02:19:45 UTC
Marking as I18N for now since this is like issues
we are now filing to enable Chinese localizations -
Chinese l10n needs to use larger font than default
11 point; so using larger font, plus longer string
length of translated strings and that multibyte is used
means issues like this one will show more often.
( We realize its also general and a11y issue also)

Marking with FONTSIZE keyword since those issues will
not be tracked on quality dashboard for s1s or nb3.5 english
fcs.

Raising to p2 as these kinds of issues will probably
need fixing for the Chinese nevada and 3.5 release
instead of 4.0, based on base team decision.
Comment 24 Ken Frank 2003-05-21 22:22:58 UTC
Created attachment 10369 [details]
showing one of the resize issues
Comment 25 David Simonek 2003-06-11 14:39:32 UTC
Created attachment 10656 [details]
diff of the patch which solves the problem
Comment 26 David Simonek 2003-06-11 15:12:20 UTC
fixed in main trunk.
/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.java,v  <-- 
IDESettingsPanel.java
new revision: 1.32; previous revision: 1.31
/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.form,v  <-- 
IDESettingsPanel.form
new revision: 1.14; previous revision: 1.13
Comment 27 David Simonek 2003-06-13 17:02:59 UTC
Merged into release35 branch:

/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.java,v  <-- 
IDESettingsPanel.java
new revision: 1.28.12.2; previous revision: 1.28.12.1
/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.form,v  <-- 
IDESettingsPanel.form
new revision: 1.13.12.1; previous revision: 1.13
Comment 28 Lukas Hasik 2003-06-18 14:09:14 UTC
Created attachment 10723 [details]
radio b. text is still not fully visible
Comment 29 Lukas Hasik 2003-06-18 14:10:32 UTC
reopening -> radio button texts aren't still fully visible. 

Maybe general issue ?
Comment 30 David Simonek 2003-06-18 16:13:51 UTC
Hm, on Netbeans everything works well. No idea where the problem can
be. Anybody else will try?
Comment 31 David Simonek 2003-06-19 14:30:52 UTC
Created attachment 10737 [details]
second patch (to be applied together with first one)
Comment 32 David Simonek 2003-06-19 14:35:51 UTC
OK, I think I have something - JTextArea is not able to compute its
pref size without rows and columns count specified. So I added correct
rows and columns, problems seem to be solved.
However! if S1S texts in english or chinese localization will be
significantly longer (say 2x) then netbeans ones, problems will return
and there's no easy or good way I know to solve such situation.
For now it seems to be OK.
Comment 33 David Simonek 2003-06-19 14:38:16 UTC
fixed again in main trunk.
cvs log:
/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.java,v  <-- 
IDESettingsPanel.java
new revision: 1.33; previous revision: 1.32

/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.form,v  <-- 
IDESettingsPanel.form
new revision: 1.15; previous revision: 1.14
Comment 34 _ tboudreau 2003-06-19 23:16:56 UTC
reviewed
Comment 35 David Simonek 2003-06-20 12:11:55 UTC
merged into release35 branch:

/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.java,v  <-- 
IDESettingsPanel.java
new revision: 1.28.12.3; previous revision: 1.28.12.2

/cvs/core/src/org/netbeans/core/ui/IDESettingsPanel.form,v  <-- 
IDESettingsPanel.form
new revision: 1.13.12.2; previous revision: 1.13.12.1
Comment 36 hiroshiy 2003-06-27 03:21:39 UTC
I've verified the fixing in followings.

  - S1S nevada Build 030625
  - win2000 chinese, solaris 9 chinese
  - j2sdk1.4.1_02

Thank you for the fixing and Thank you all !!!

Hiroshi