RFR: 6442919: JFilechooser popup still left-to-right when JFilechooser is set to right-to-left
Tejesh R
tr at openjdk.org
Fri Jul 21 03:42:39 UTC 2023
On Fri, 21 Jul 2023 03:32:58 GMT, Sergey Bylokhov <serb at openjdk.org> wrote:
>> Popup menu is created on mouse click, hence the orientation for FileChooser won't apply to the popup menu created. Hence the fix address the issue by applying the FileChooser orientation when it is created on mouse operation (Right Click).
>> The test does not apply to Motif and Aqua Look And Feel since right click is not supported on filePane of FileChooser, hence it is skipped. The fix is tested in CI and it is green.
>
> test/jdk/javax/swing/JFileChooser/FCPopupMenuOrientationTest.java line 51:
>
>> 49: UIManager.getInstalledLookAndFeels()) {
>> 50: String className = laf.getName().toLowerCase();
>> 51: if (className.contains("motif") || className.contains("mac")) {
>
> The test does not have a headful keyword so in the CI it was tested on a headless system where the GTK l&f is unsupported. Please double-check - do we need to skip it here or not?
Yeah, I can see from log that it is unsupported. I will skip it.
-------------
PR Review Comment: https://git.openjdk.org/jdk/pull/14949#discussion_r1270195003
More information about the client-libs-dev
mailing list