RFR: 8281966: Absolute path of symlink is null in JFileChooser [v3]
Tejesh R
tr at openjdk.org
Wed Aug 3 17:08:05 UTC 2022
On Wed, 3 Aug 2022 15:14:08 GMT, Alexey Ivanov <aivanov at openjdk.org> wrote:
>> Tejesh R has updated the pull request incrementally with two additional commits since the last revision:
>>
>> - Added Dialog information for printing Absolute path
>> - Updated based on review comments
>
> test/jdk/javax/swing/JFileChooser/FileChooserSymLinkTest.java line 99:
>
>> 97: JOptionPane.showMessageDialog(null, evt.getNewValue(),
>> 98: "Absolute path",
>> 99: JOptionPane.INFORMATION_MESSAGE);
>
> I don't think it is a good idea. For each selection, the tester will get a modal dialog box with the path. It could even prevent the tester from navigating directories for testing.
>
> I suggest adding a `JListBox` or `JTextArea` on top or bottom of the `JFileChooser` and add the messages there.
Can use JLabel and keep updating(remove the old value and show path which is clicked) it right......? Storing previous paths are not required anyhow.
-------------
PR: https://git.openjdk.org/jdk/pull/9597
More information about the client-libs-dev
mailing list