Moving around Jtable with cursor key balnks out values
Paul Taylor
paul_t100 at fastmail.fm
Fri Nov 1 13:24:26 PDT 2013
On 30/10/2013 12:24, Paul Taylor wrote:
> On 30/10/2013 12:13, Paul Taylor wrote:
>> With Java 7 on OSX I find that as I move around my JTable cells with
>> cursor keys it causes it to blank out every field in goes into.
>> Adding:
>> table.putClientProperty("JTable.autoStartsEdit", Boolean.FALSE)
>>
>> stops that issue happening, but then I have to press 'Enter' key to
>> start editing.
>>
>> What I want to happen is that cursor keys just move the cursor
>> without editing, and pressing any other key will start editing in
>> that field. i.e I move to a field and press 'd', then will be
>> displayed in the field. This is what happened in Java 6 on OSX
>> (Quaqua) and with Java 7 on Windows.
>>
>>
>> Paul
>>
>>
> Apparently a bug was submitted for this, see
>
> http://stackoverflow.com/questions/11553197/spurious-calls-to-setvalueat-with-jtables-in-java-7-on-os-x-lion
>
>
> but seems to have disappeared without being fixed, is it still in JIRA ?
>
> Paul
>
I found the issue, once again the analysis that decides to defer to this
Java 9 is IMO poor
https://bugs.openjdk.java.net/browse/JDK-8025126
The customer submitted workaround of using
putClientProperty("JTable.autoStartsEdit", Boolean.FALSE);
is not a useful workaround for me and many others.
I had to check for empty values in setValue() method of my model instead
but this causes other problems such as now the cannot explicity set a
value to blank because their modification gets ignored. Surely this
terribly buggy behaviour is higher priority than some of the other hings
being fixed.
Sorry to be complaining because in general Im very positive about Java 7
on Mac, but at least someone complains directly about these issue I
imagine they will remain low priority
Paul
More information about the macosx-port-dev
mailing list