On Thu, 26 Jun 2025 12:21:21 GMT, Alexey Ivanov <aiva...@openjdk.org> wrote:
> > Current PR doesnt have this..Text string is not aligned for item that > > doesn't have iconimage with item that does have iconimage. I will fix this. > > This still remain unresolved: the text of all menu items should be aligned. It is fixed for RBMIs as they are part of ButtonGroup (where selecting one will deselect other) so we can find out if any of the RBMIs in that group has imageicon by obtaining ButtonGroup object. CBMIs are not part of group and can be selected/deselected individually so it doesn't seem possible to know from one CBMI whether another CBMI used by application have imageicon or not (similar for regular MIs) so in their case text are aligned individually depending on presence of imageicon for that CBMI (or regular MI) ------------- PR Comment: https://git.openjdk.org/jdk/pull/23324#issuecomment-3008330853