Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-4133917

Dialog too small to display JOptionPane message in JDK1.1.6.

XMLWordPrintable

    • 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)
      ======================================================================

            jpampuchorcl John Pampuch (Inactive)
            rkarsunw Ralph Kar (Inactive)
            Votes:
            0 Vote for this issue
            Watchers:
            0 Start watching this issue

              Created:
              Updated:
              Resolved:
              Imported:
              Indexed: