On Fri, 13 Mar 2026 06:12:54 GMT, Prasanta Sadhukhan <[email protected]> wrote:
>> The behavior of getNormallBounds() is not as per spec when - "JInternalFrame >> is not in maximized state" >> As per JinternalFrame.getNormalBounds >> [spec](https://docs.oracle.com/en/java/javase/25/docs/api/java.desktop/javax/swing/JInternalFrame.html#getNormalBounds()) >> >>> If the JInternalFrame is not in maximized state, getNormalBounds() returns >>> getBounds() >> >> but it seems in certain cases it can return cached normal bounds value and >> not getBounds() value. >> Fix is made to check if internalFrame is unmaximized, the normalBounds is >> reset so that it can return getBounds() value in all cases >> https://github.com/openjdk/jdk/blob/ff8b0ac048f6a6f75d1ad738d3354890d76d8128/src/java.desktop/share/classes/javax/swing/JInternalFrame.java#L1336-L1347 >> >> An existing test is also rectified to honour this spec > > Prasanta Sadhukhan has updated the pull request incrementally with one > additional commit since the last revision: > > Bounds fix Changes look good. Tested and everything seems OK. ------------- Marked as reviewed by dnguyen (Reviewer). PR Review: https://git.openjdk.org/jdk/pull/30065#pullrequestreview-3978944759
