RFR: 4365952: Cannot disable JFileChooser
Tejesh R
tr at openjdk.org
Thu Dec 8 12:07:05 UTC 2022
On Thu, 8 Dec 2022 09:09:40 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> I guess for frame, the disable/enable functionality is handled by the peer (Windows it is `WFramePeer`), whereas for the swing components it should be the components itself like it is for all other components (Like in AbstractButton, JComboBox, JList).
>
> The JFileChooser is also kind of top level component and it has the peer. Current patch does not work as intended. On macOS in Nimbus/Metal L&F the list of files looks disabled but scrolling works. On Aqua L&F the list of files does not look like disabled, accept scroll and double clicks, but does not accept single clicks.
I missed checking the scrolling part in macos, will check and get back on it.
-------------
PR: https://git.openjdk.org/jdk/pull/11553
More information about the client-libs-dev
mailing list