Name: gm110360 Date: 12/13/2001
Java(TM) 2 Runtime Environment, Standard Edition (build
Java HotSpot(TM) Client VM (build 1.3.1_01, mixed mode)
Full Operating System Version : Windows NT 5.0
Additional Operating Systems :
A description of the problem :
Japanese strings specified as messages in a JOptionPane
result in a very wide dialog where the message cannot be
fully read because it is not wrapped to new lines. I
realize you can extend JOptionPane and override
getMaxCharactersPerLineCount() to return a smaller count
but the UI still searches for SPACES in the string to break
on. Japanese strings do not have to contain spaces so it
has no effect. A more stringent rule must be used for the
JA locale to split up the strings.
Note that this also pertains to ZH and any other locale
that does not require spaces in the sentence strings.
Steps to follow to reproduce the problem :
1. call javax.swing.JOptionPane.showMessageDialog() with a
long Japanese string for the message.
Expected versus actual behavoir :
You get a very long dialog where the message and dialog is
truncated by the display size of your monitor. I would
expect it to wrap the message and make the dialog fit on
This bug can be reproduced always.
---------- Begin Source ----------
This must be done on a JA machine and is a simple test so I
will not include a sample.
---------- End Source ----------
(Review ID: 137363)