Community
Participate
Working Groups
Our actions for "select from context menu" are designed so that the context menu is opened from the current mouse position (if the mouse is currently in the component). I have noticed in two separate applications recently (unfortunately not available to be posted here) that the opening of context menus on tables seems to happen in the middle of the table. Both times I was trying to open the context menu for a Swing table on the header row (row count 0). The mouse is moved to the row header during the select (0 or 1 clicks) but then the context menu gets opened on the middle of the table. However, if the table itself has a context menu, it is not the same one as is available for the headers. This behaviour can be reproduced using the DVD Tool that is installed with Jubula. There are no context menus available for the headers in the table, but after selecting one of them the context menu is nevertheless opened in the middle of the table. I have so far only tested Swing AUTs to reproduce the behaviour.
try adding the table header bounds to the table bounds.
fixed with http://git.eclipse.org/c/jubula/org.eclipse.jubula.core.git/commit/?id=47a5bb846307adfa2029c6f4cea25a079968618a Although it came up during discussion as a possible solution, I was reluctant to extend the calculated table bounds (as suggested above). I instead decided to add special handling for opening a context menu on a JTable header.
Verified manually using DVD Tool.