On Tue, 27 Sep 2022 21:28:23 GMT, Harshitha Onkar <hon...@openjdk.org> wrote:
>> src/java.desktop/share/classes/javax/swing/plaf/metal/MetalBorders.java line >> 277: >> >>> 275: } >>> 276: >>> 277: Graphics2D g2d = (Graphics2D) g; >> >> Regardless, i see that absolutely similar code down this file for >> FrameBorder and DialogBorder. Are these UI elements suffer from the same >> issue or is it only limited to InternalFrame? If they do suffer from the >> same issue i would suggest either fixing it all together or at least >> submitting new bugs tracking existence of the problem. Of course problem >> might not be present for some reason in these components but it is worth >> checking it out while you are working on the code and remember all the >> details. > > @azuev-java Tested FrameBorder and DialogBorder, they have a similar problem > to JInternalFrameBorder (border scaling issue). I have created a new JBS > issue - **[JDK-8294484](https://bugs.openjdk.org/browse/JDK-8294484)** to > track Frame and Dialog Borders of Metal LAF as there is a plan to create a > common utility method and refactor the common steps. Thank you, @honkar-jdk. Once the border handling is unified, fixing `FrameBorder` and `DialogBorder` will be easier and code duplication will be avoided. ------------- PR: https://git.openjdk.org/jdk/pull/10274