-
Notifications
You must be signed in to change notification settings - Fork 6.2k
8371508: [macos] In Aqua LaF menu items layout is incorrect in RTL orientation #28210
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -54,6 +54,17 @@ | |
| * @run main/manual RightLeftOrientation windows | ||
| */ | ||
|
|
||
| /* | ||
| * @test id=aqua | ||
| * @bug 8371508 | ||
| * @requires (os.family == "mac") | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I guess now the test can be run in window and mac OS ? Any idea on Nimbus L&F in windows os ?
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This is Aqua LnF specific fix and Aqua LnF is only available on macOS so this exact test case can only be ran on mac. Initially test was used to validate the layout for Windows and Motif LnF. I haven't tried Nimbus yet. If there are problems with Nimbus on Windows they might be addressed separately. |
||
| * @summary Verifies that menu items lay out correctly | ||
| * in Aqua look and feel | ||
| * @library /java/awt/regtesthelpers | ||
| * @build PassFailJFrame | ||
| * @run main/manual RightLeftOrientation aqua | ||
| */ | ||
|
|
||
| import java.awt.Color; | ||
| import java.awt.Component; | ||
| import java.awt.ComponentOrientation; | ||
|
|
@@ -96,6 +107,7 @@ public static void main(String[] args) throws Exception { | |
| case "metal" -> lafClassName = UIManager.getCrossPlatformLookAndFeelClassName(); | ||
| case "motif" -> lafClassName = "com.sun.java.swing.plaf.motif.MotifLookAndFeel"; | ||
| case "windows" -> lafClassName = "com.sun.java.swing.plaf.windows.WindowsLookAndFeel"; | ||
| case "aqua" -> lafClassName = "com.apple.laf.AquaLookAndFeel"; | ||
| default -> throw new IllegalArgumentException( | ||
| "Unsupported Look-and-Feel keyword for this test: " + args[0]); | ||
| } | ||
|
|
||
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
drefers to difference ? Could bedifffor readability ?