JDK-6355949 : jconsole: Tab and Enter keys are not working correctly in the Connection dialog
  • Type: Bug
  • Component: tools
  • Sub-Component: jconsole
  • Affected Version: 6
  • Priority: P4
  • Status: Closed
  • Resolution: Fixed
  • OS: generic
  • CPU: generic
  • Submitted: 2005-11-28
  • Updated: 2011-03-08
  • Resolved: 2011-03-08
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.
6u4Fixed 7 b05Fixed
Two problems with the Connection dialog:

1. Once you have moved the focus to the local process list when you are pressing Tab key the focus moves on every second key press and doesn't leave the local processes list

2. Open Connection dialog, select a process in the local processes list, then click on 'Cancel'. Press Ctrl+N: the connect dialog appears again. Press Tab or Enter key, either one doesn't work, although the 'Local Process' radio button is active and there is a selected item in the local processes list.

EVALUATION #1 is due to Swing's focus management design. You need to type ctrl-Tab to move focus from a table to the next component. #2 is a bug and should be fixed. It happens often when jconsole is started with no arguments and there are no other java processes running. The local table shows one line selected, but the Connect button is incorrectly disabled.

EVALUATION About #2: exactly, if you open the dialog again and don't click on the local process table (they are selected anyway), Tab and Enter will not work. When you click on the table, they start working.

EVALUATION I can reproduce the problems. For #2, when I click on the local processes table (make the table active), the key works again.

SUGGESTED FIX 1. Make tab key jumping to the next entry in the local processes list on every keypress and jumping to the 'remote process' radio button from the last entry in the list. 2. Make Tab and Enter keys working