JDK-4829588 : showConfirmDialog behavior of 1.4.X is diff. from 1.3.1 with long text string
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 1.4.2
  • Priority: P4
  • Status: Closed
  • Resolution: Won't Fix
  • OS: windows_2000
  • CPU: x86
  • Submitted: 2003-03-10
  • Updated: 2013-10-11
  • Resolved: 2013-10-10
Description
The behavior of showConfirmDialog in 1.4.2b18 is different from that in 1.3.1_07.

REPRODUCE:
 1) Compile the attached program(Application1.java)
 2) Launch "java Application1"

 You will see the attached image file(image.bmp).


DIFF. BETWEEN 1.3.1 AND 1.4.1b18 BEHAVIOR:

 There are 2 different points.

 1) JAVA LOGO
   The Java logo appears at the top-left of dialogue in 1.3.1_07, 
   but doesn't in 1.4.2b18.

 2) End of String
   The end of string is displayed "...." in 1.3.1_07, but all the string is 
   displayed in 1.4.2b18.


CONFIGRATION:
  OS  : Windows2000 pro(SP2, Japanese)
  MPU : Pentium IV 1.4 [GHz]
  MEM : 384 [MB]
  JRE/JDK : 1.4.2b18 and 1.4.1_01

2003-03-10
===========================================================================

Comments
EVALUATION I'll address each of the two issues: 1) JAVA LOGO Dialogs that are non-resizable should do not have an icon/menu in the upper left corner. This is the way it is supposed to be. Having the icon was a bug. 2) End of String For this issue I am re-assigning to AWT. However, here's a summary of what I saw. In 1.3, it appears that the dialog appears at a width approximately equal to the width of the screen. As a result, all of the text could not display. In 1.4, the dialog is given as much space as it needs to fit all of the text, even if this results in a dialog wider than the screen - causing parts of the dialog to be offscreen. I suspect this is related to a change in the implementation of "pack()". ###@###.### 2003-03-10 Name: rpR10076 Date: 03/12/2003 Actually, both issues mentioned in this bug report are caused by the difference between resizable and non-resizable dialogs. Even if pack() has changed between 1.3.1 and 1.4, this is irrelevant here. Between 1.3.1 and 1.4, Swing JOptionPane's dialogs were changed from resizable to non-resizable. This removed the icon (non-resizable dialogs have no icon) and also affected Dialog's size: when a resizable Dialog is packed, it tries to fit the screen (if someone wants to see everything in the dialog, it can be resized), while a non- resizable dialog tries to show its contents fully (there is no way to see what's in the dialog otherwise). AWT dialogs behave the same way on Windows. I believe this behaviour to be correct. I would recommend closing this out as not a bug. However, Swing team might want to investigate this a bit further (like, perhaps, not always calling pack() on JOptionPane's Dialogs, or wrapping long text), so I am reassigning it back. ====================================================================== We, the Swing Team, have decided that we should probably do something more intelligent with extra long text. This will most likely involve either limiting the size of the dialog to the screen size, or wrapping the text. ###@###.### 2003-03-27
27-03-2003