-
Notifications
You must be signed in to change notification settings - Fork 6.1k
8348760: RadioButton is not shown if JRadioButtonMenuItem is rendered with ImageIcon in WindowsLookAndFeel #26717
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: jdk25
Are you sure you want to change the base?
Conversation
👋 Welcome back psadhukhan! A progress list of the required criteria for merging this PR into |
@prsadhuk 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 no new commits pushed to the ➡️ To integrate this PR with the above commit message to the |
This backport pull request has now been updated with issue from the original commit. |
Webrevs
|
/touch |
@prsadhuk The pull request is being re-evaluated and the inactivity timeout has been reset. |
@prsadhuk We have entered release candidate phase for 25. Only P1 bugs may be fixed with approval. This bug has been present in JDK 8, so I wonder if there is such a critical need at this time. I wonder if you have considered backporting to 25u instead, like 25.0.2. Also, please close the incorrect version of this backport at #26716. |
|
||
public static void setAcceleratorSelectionForeground(Color acceleratorSelectionFg) { | ||
acceleratorForeground = acceleratorSelectionFg; | ||
} |
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.
I just pointed this out on the main bug but this looks like a copy/paste error.
It should be acceleratorSelectionForeground.
To Alexei's point, why can't we pass these as parameters ?
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.
Fixed the assignment..
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.
Fixed the assignment..
This may be an appropriate quick fix at this moment.
Yet this bug needs fixing in mainline, all the update releases will also be affected as soon as JDK-8348760 is backported.
I've submitted JDK-8365375: Method SU3.setAcceleratorSelectionForeground assigns to acceleratorForeground.
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.
Fixed the assignment..
This may be an appropriate quick fix at this moment.
Yet this bug needs fixing in mainline, all the update releases will also be affected as soon as JDK-8348760 is backported.
I expect, and recommend, that the back ports be based on the JDK 25 version.
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.
Fixed the assignment..
This may be an appropriate quick fix at this moment.
Yet this bug needs fixing in mainline, all the update releases will also be affected as soon as JDK-8348760 is backported.I expect, and recommend, that the back ports be based on the JDK 25 version.
The backports are nearly done, so it's impossible to add this small fix at this time.
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.
Well they'll have to be re-done. That's life.
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.
Whilst a couple of follow on bugs have been filed, which will be fixed in a later release, SFAIK there is no new functional issue with this fix and it resolves the TCK failure.
Hi all,
The issue is a manual JCK test fails due to lack of demarcation between selected and unselected JRadioButtonMenuItem and JCheckboxMenuItem whereby JDK does not draw bullet/checkmark in WIndows 11 if imgage icon is present as the (position) offset to draw them is same as the image icon position.
Fix is made to ensure the bullet/checkmark is drawn followed by image icon followed by menu text so that user can distinguish between selected and deselected radiobutton/checkbox menuitem
CI testing and manual conformance test along with SwingSet2 demo testing is ok
Progress
Issue
Reviewers
Reviewing
Using
git
Checkout this PR locally:
$ git fetch https://git.openjdk.org/jdk.git pull/26717/head:pull/26717
$ git checkout pull/26717
Update a local copy of the PR:
$ git checkout pull/26717
$ git pull https://git.openjdk.org/jdk.git pull/26717/head
Using Skara CLI tools
Checkout this PR locally:
$ git pr checkout 26717
View PR using the GUI difftool:
$ git pr show -t 26717
Using diff file
Download this PR as a diff file:
https://git.openjdk.org/jdk/pull/26717.diff
Using Webrev
Link to Webrev Comment