JDK-5108901 : REGRESSION: JOptionPane dropdown menu missing bottom border (initially)
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 5.0
  • Priority: P3
  • Status: Closed
  • Resolution: Duplicate
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2004-09-29
  • Updated: 2004-09-29
  • Resolved: 2004-09-29
Related Reports
Duplicate :  
Description

Name: gm110360			Date: 09/29/2004


FULL PRODUCT VERSION :
java version "1.5.0-beta3"
Java(TM) 2 Runtime Environment, Standard Edition (build 1.5.0-beta-3-b60)
Java HotSpot(TM) Client VM (build 1.5.0-beta3-b60, mixed mode)

ADDITIONAL OS VERSION INFORMATION :
Microsoft Windows XP [Version 5.1.2600]

EXTRA RELEVANT SYSTEM CONFIGURATION :
NVIDIA Quadro FX 500

Driver Version: 5.2.1.6 (Microsoft Windows Hardware Compatibility)

(note: other machines tested with different configurations showed same Bug...even a Win2k machine)

A DESCRIPTION OF THE PROBLEM :
For the following code snippets:

private static Object[] someValues = { "Input 1",
                                                                    "Input2",
                                                                    "Input3",
                                                                    "Input4"};
    
aValue = JOptionPane.showInputDialog(null,
                                   "Select: ",
                                   "Selection",
                                   JOptionPane.QUESTION_MESSAGE,
                                   null,
                                   someValues,
                                   someValues[0]);

The dialog's dropdown box INITIALLY is missing the bottom border.  Upon closing and re-opening the drop-down menu (without closing the dialog box) will correctly display all borders, as expected.  It is only the initial opening of the drop down menu that shows the bug.

STEPS TO FOLLOW TO REPRODUCE THE PROBLEM :
Include a Java class with code snippets as I provided.  Be sure your class is executable.

Run your class.

When you see the InputDialog box, select the "down" arrow which lists the "someValues" you have input in the code (e.g., Input1, Input2, etc.).

When the drop down box opens, look at the bottom "line" of the box...you will see it is missing.

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -

Expected the outline of the dropdown box inside the InputDialog to be FULLY drawn (i.e., all borders drawn, as is normal for other drop down menus).
ACTUAL -

The bottom outline of the dropdown box is missing.  If the box is closed and re-opened, the outline will appear correctly from that point on.

ERROR MESSAGES/STACK TRACES THAT OCCUR :
No error messages appeared.

REPRODUCIBILITY :
This bug can be reproduced always.

---------- BEGIN SOURCE ----------
import javax.swing.*;

public class InputDialogTest
{
    private static Object aValue;

    private static Object[] someValues = { "Input 1",
                                           "Input2",
                                           "Input3",
                                           "Input4"};
    
    public static void main(String[] args)
    {
        aValue = JOptionPane.showInputDialog(null,
                                       "Select: ",
                                       "Selection",
                                       JOptionPane.QUESTION_MESSAGE,
                                       null,
                                       someValues,
                                       someValues[0]);
    }
    
}
---------- END SOURCE ----------

Release Regression From : 1.4.2
The above release value was the last known release where this 
bug was known to work. Since then there has been a regression.

(Incident Review ID: 315597) 
======================================================================

Comments
EVALUATION Duplicate of 5089312. ###@###.### 2004-09-29
29-09-2004