-
Notifications
You must be signed in to change notification settings - Fork 5.5k
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
8139173: [macosx] JInternalFrame shadow is not properly drawn #7228
Conversation
👋 Welcome back tnakamura! A progress list of the required criteria for merging this PR into |
Webrevs
|
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.
Looks so much better.
try { | ||
UIManager.setLookAndFeel("com.apple.laf.AquaLookAndFeel"); | ||
} catch (Exception e) { | ||
throw new RuntimeException("Cannot initialize Aqua L&F"); |
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.
Really this should not be needed since it is the default. But it should at least stop folks running it on Windows.
@toshiona This change now passes all automated pre-integration checks. ℹ️ This project also has non-automated pre-integration requirements. Please see the file CONTRIBUTING.md for details. After integration, the commit message for the final commit will be:
You can use pull request commands such as /summary, /contributor and /issue to adjust it as needed. At the time when this comment was updated there had been 64 new commits pushed to the
As there are no conflicts, your changes will automatically be rebased on top of these commits when integrating. If you prefer to avoid this automatic rebasing, please check the documentation for the /integrate command for further details. As you do not have Committer status in this project an existing Committer must agree to sponsor your change. Possible candidates are the reviewers of this PR (@prrace, @mrserb) but any other Committer may sponsor as well. ➡️ To flag this PR as ready for integration with the above commit message, type |
robot.waitForIdle(); | ||
robot.delay(1000); | ||
|
||
Point p = internalFrame.getLocationOnScreen(); |
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.
The internalFrame is a Swing component so we should call all its methods on EDT.
@@ -380,8 +380,6 @@ public void drawWindowTitle(final Graphics g, final JInternalFrame frame, final | |||
final int w = inW; | |||
int h = inH; | |||
|
|||
h = metrics.titleBarHeight + inH; |
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.
Just a suggestion, after the current change it is possible to align the h and other x/y/w vars and make it final.
/integrate |
/sponsor |
Going to push as commit f7814c1.
Your commit was automatically rebased without conflicts. |
JInternalFrame's bottom area is not properly drawn with Aqua LAF.
This problem remained for long time, but we recognized it recently.
According to the bug report, it depends on MacOS's version. I don't have old ones (10.10 and 10.11 in the report), but the current MacOS can recreate the issue. I confirmed the following OS versions recreated this issue and this patch could solve it.
Mojave 10.14.6
Catalina 10.15.7
Big Sur 11.6.2
Monterey 12.1
jtreg "javax/swing" and "java/awt" have no regression.
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.java.net/jdk pull/7228/head:pull/7228
$ git checkout pull/7228
Update a local copy of the PR:
$ git checkout pull/7228
$ git pull https://git.openjdk.java.net/jdk pull/7228/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 7228
View PR using the GUI difftool:
$ git pr show -t 7228
Using diff file
Download this PR as a diff file:
https://git.openjdk.java.net/jdk/pull/7228.diff