On 27/10/2013 08:06, Hendrik Schreiber wrote:
On Oct 26, 2013, at 9:36 PM, Paul Taylor wrote:

Just moved from Java 6 with Quaqua and Feel to Java 7 with Aqua look and feel 
so not 100% sure where the problem lies but previously if I have some fields 
selected in a table and then invoked popup menu by either

1. Right click on two button mouse
2. Left Click whilst pressing Cntl Key

it would display the popup menu.

Now with Java 7

Right click on two button mouse works correctly
Left Click whilst pressing Cntl key displays the popup menu BUT also deselects 
all fields that was selected except the one the mouse is currently over.

Is this a known problem, seeing as macs are still sold with one-button mice 
this looks like a major regression
Command-click starts editing.. (yeah, I know). Does setting

table.putClientProperty("JTable.autoStartsEdit", Boolean.FALSE)

on the JTable make a difference?


No, that doesnt make any difference. Actually the problem is not to do with editing (these fields aren't even editable). The problem is that with Cntl-Left Click instead of Right-Click it correctly show the popups, but it also resets selection, so basically it is doing a right-click and a left-click, i.e not realizing that it shouldn't do the left click action because the cntl key was pressed.

Looking at https://java.net/projects/quaqua/sources/svn/content/trunk/Quaqua/src/ch/randelshofer/quaqua/QuaquaTableUI.java?rev=460 maybe the shouldIgnore() method in line 790 is handling a case that Java 7 is not

Paul

Reply via email to