Mailing Lists: Apple Mailing Lists

Image of Mac OS face in stamp
 
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: JTable/ListSelectionModel right-click issues



On Friday, February 27, 2004, at 03:43 PM, Huyler, Christopher M wrote:

It makes use of the getSelectedIndices() function to store the current
selection in an integer array then setSelectedIndices(int[]) to restore
the values.

The only one I can see is that this method depends
on being called before the PLAF peer's listener. It
seems unlikely to change, but if for any reason it
happens, the selection set will be changed before
you cache it. Tail-patching the peer avoids that
possibility, but with other costs and compatibility
issues. Six of one, half a dozen of the other. The
only clean way to get proper selection behaviour is
for Apple to fix the peer. I've filed a bug, I hope
it gets fixed soon, but I'm not holding my breath.
_______________________________________________
java-dev mailing list | email@hidden
Help/Unsubscribe/Archives: http://www.lists.apple.com/mailman/listinfo/java-dev
Do not post admin requests to the list. They will be ignored.


References: 
 >RE: JTable/ListSelectionModel right-click issues (From: "Huyler, Christopher M" <email@hidden>)



Visit the Apple Store online or at retail locations.
1-800-MY-APPLE

Contact Apple | Terms of Use | Privacy Policy

Copyright © 2007 Apple Inc. All rights reserved.