-
Bug
-
Resolution: Fixed
-
P2
-
6
I have added an ItemListener to a choice and inside the itemStateChanged() I am trying to open a native print dialog. So ideally this dialog will be shown everytime you make a selection in the choice. I am noticing the following issues when running this app on Win32:
1. When I click the choice, the drop-down appears. I am pressing the down-arrow key. This should trigger an item event and hence open the print dialog. I am surprised to see 2 item events being triggered for the first selection on Mustang-b53 (works fine on b51) and hence 2 modal dialogs are opened.
2. After I dispose the dialogs by pressing 'ESC', I am clicking back on the frame (ideally choice should retain focus but it does not happen - a separate bug has been filed on this issue) and I am clicking on Choice. The drop-down opens but Choice stops responding to keyboard inputs even though it has focus. Pressing UP/DOWN arrow keys have no effect. When I press 'TAB' focus shifts to the next component but drop-down still remains visible.
The above 2 issues are regressions introduced in Mustang-b53 on WinXP. It works fine on b51. This is not reproducible on XToolkit.
I have attached a sample test. Execute the sample test. Click on Choice. Drop-down will be shown. Press the down arrow. If you see 2 print dialogs being opened up, issue (1) is reproduced. Press 'ESC' and cancel the dialogs. Now click on choice and check whether it responds to keyboard inputs. If not, issue [2] is reproduced.
1. When I click the choice, the drop-down appears. I am pressing the down-arrow key. This should trigger an item event and hence open the print dialog. I am surprised to see 2 item events being triggered for the first selection on Mustang-b53 (works fine on b51) and hence 2 modal dialogs are opened.
2. After I dispose the dialogs by pressing 'ESC', I am clicking back on the frame (ideally choice should retain focus but it does not happen - a separate bug has been filed on this issue) and I am clicking on Choice. The drop-down opens but Choice stops responding to keyboard inputs even though it has focus. Pressing UP/DOWN arrow keys have no effect. When I press 'TAB' focus shifts to the next component but drop-down still remains visible.
The above 2 issues are regressions introduced in Mustang-b53 on WinXP. It works fine on b51. This is not reproducible on XToolkit.
I have attached a sample test. Execute the sample test. Click on Choice. Drop-down will be shown. Press the down arrow. If you see 2 print dialogs being opened up, issue (1) is reproduced. Press 'ESC' and cancel the dialogs. Now click on choice and check whether it responds to keyboard inputs. If not, issue [2] is reproduced.
- relates to
-
JDK-6190728 Non focusable choice is unusable on win32
- Closed