JDK-4287355 : showInputDialog incorrect panel sizing when message argument > 1 line
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.3.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_nt
  • CPU: x86
  • Submitted: 1999-11-02
  • Updated: 2000-12-19
  • Resolved: 2000-12-19
Related Reports
Duplicate :  
Description

Name: krT82822			Date: 11/02/99


10/29/99 eval1127@eng -- see also 4248668, 4222531 (which may have already fixed the problem?)

description : java version "1.3beta"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.3beta-0)
Java(TM) HotSpot Client VM (build 1.3beta-0, mixed mode)
If you run this code on Windows NT you will see the buttons are partially
hidden by the dialog panel:
-----

import javax.swing.*;

class TestDialog extends JFrame
{
   TestDialog()
   {
      String prompt = "Prompt";
      String inputText = "input";
      String title = "title";
      String pref=
       JOptionPane.showInputDialog(this.getContentPane(), prompt + "\n" +
          inputText, title,JOptionPane.QUESTION_MESSAGE);

      Box b = Box.createVerticalBox();
      b.add(new JLabel(prompt));
      b.add(new JLabel(inputText));
      pref=
       JOptionPane.showInputDialog(this.getContentPane(), b,
          title,JOptionPane.QUESTION_MESSAGE);

   }


   public static void main(String[] p)
   {
      new TestDialog();
      System.exit(0);
   }
}
(Review ID: 97203) 
======================================================================

Comments
EVALUATION I am able to reproduce the problem with 1.3beta, but not with 1.3, so I suspect this was a duplicate of 4222531. amy.fowler@Eng 2000-12-18
18-12-2000