JDK-6406264 : REGRESSION: Custom combo box calendar popup no longer functional
  • Type: Bug
  • Component: client-libs
  • Sub-Component: javax.swing
  • Affected Version: 6
  • Priority: P2
  • Status: Resolved
  • Resolution: Fixed
  • OS: windows_xp
  • CPU: x86
  • Submitted: 2006-03-30
  • Updated: 2011-01-19
  • Resolved: 2006-04-26
The Version table provides details related to the release that this issue/RFE will be addressed.

Unresolved : Release in which this issue/RFE will be addressed.
Resolved: Release in which this issue/RFE has been resolved.
Fixed : Release in which this issue/RFE has been fixed. The release containing this fix may be available for download as an Early Access Release or a General Availability Release.

To download the current JDK release, click here.
JDK 6
6 b82Fixed
Related Reports
Relates :  
Relates :  
Description
A DESCRIPTION OF THE REGRESSION :
As of Mustang b72 a simple custom calendar popup widget (which sublcasses JComboBox) no longer keeps the calendar popup displayed.  Within Mustang the popup now appears only briefly and no longer remains visible.

This calendar component was inherited and exists within a WebStart deployed application that we support.

Of final note is that we proceeded to validate that the application that used the component still executes correctly under JSE 1.4_0 & 1.5_06.





REPRODUCIBLE TESTCASE OR STEPS TO REPRODUCE:
Easily observable via launching the application via WebStart:

Access the following URL first using JSE 1.5 to determine the expected behavior.  Then test it a second time using Mustang.

http://www.axeonix.com/crm.jnlp

RELEASE LAST WORKED:
5.0 Update 6

RELEASE TEST FAILS:
mustang-b72

EXPECTED VERSUS ACTUAL BEHAVIOR :
EXPECTED -
A custom calendar component (a subclass of JComboBox) should affectively display a calendar popup (and retain the display) when the combo box button has been clicked.

Expected functionality is that once a date has been clicked on the popup that it should once again be hidden and the user can tab off of the field.
ACTUAL -
The very first time the combo box button is clicked to bring up the calendar popup, it displayed the popup instantaneously after which is disappears permanently.  This occurs despite re-clicking the combo box button again.


APPLICATION NAME: Axeonix CRM 3.0	APPLICATION VERSION: 3.0

OBSERVED APPLICATION IMPACT:
I'm not sure the extent of the impact on the developer community.

Currently, end users can still proceed to enter date values into the text field portion of the calendar widget; however, they are limitedin that they are without the ability to use the popup calendar to select a date.

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

Comments
SUGGESTED FIX --- /net/spb-fusion/export/mlapshin/mustang/webrev/src/share/classes/javax/swing/plaf/basic/BasicComboBoxUI.java- Thu Apr 6 13:59:33 2006 +++ BasicComboBoxUI.java Thu Apr 6 13:56:46 2006 @@ -1718,11 +1718,13 @@ EventQueue.getMostRecentEventTime(), 0)); } } hasFocus = false; - setPopupVisible(comboBox, false); + if (!e.isTemporary()) { + setPopupVisible(comboBox, false); + } comboBox.repaint(); } // // ListDataListener
06-04-2006

EVALUATION The fix for the 5100422 bug removed necessary check for the temporary focus lost event in the BasicComboBoxUI.Handler.focusLost(). We should restore it.
05-04-2006