-
Bug
-
Resolution: Fixed
-
P4
-
1.1.6, 1.2.0
-
1.2fcs
-
x86, sparc
-
solaris_2.6, windows_nt
-
Not verified
Name: rk38400 Date: 04/30/98
Using JOptionPane.showMessageDialog(...) under
JDK 1.1.6 displays a dialog that is too small by
a few pixels to display all the text. Using the
following code with JDK1.1.5 the full next is
displayed but with JDK1.1.6 the text is cut off
and a "..." is displayed instead of the last few
characters. Here is the code to reproduce the
problem:
import com.sun.java.swing.JOptionPane;
public class DialogTest
{
public static void main(String argv[]) {
// first time dialog is too small.
JOptionPane.showMessageDialog(null, "This is a rather long message that causes the bug.");
// second time it is ok.
JOptionPane.showMessageDialog(null, "This is a rather long message that causes the bug.");
}
}
(Review ID: 29385)
======================================================================