RFR: 8139208: [macosx] Issue with setExtendedState of JFrame [v2]

Harshitha Onkar honkar at openjdk.org
Fri Aug 11 05:08:59 UTC 2023


On Thu, 10 Aug 2023 23:51:29 GMT, Alisen Chung <achung at openjdk.org> wrote:

>> Swapped order of showing frame and managing extended frame state.
>
> Alisen Chung has updated the pull request incrementally with one additional commit since the last revision:
> 
>   removed debug statements

@alisenchung 

An automated test can be created by adding Component Listener to the reproducer test in JBS. The following code throws Runtime Exception if the frame was visible at the original size of 200 x 200 before it was maximized.


frame.addComponentListener(new ComponentAdapter() {
    @Override
    public void componentResized(ComponentEvent e) {
        if (e.getComponent().getSize().equals(new Dimension(200, 200))) {
            throw new RuntimeException("Test Failed! " +
                    "Original Frame size was visible before maximizing");
        }
    }
});

-------------

Changes requested by honkar (Committer).

PR Review: https://git.openjdk.org/jdk/pull/15236#pullrequestreview-1572996357


More information about the client-libs-dev mailing list