On Thu, 10 Aug 2023 23:51:29 GMT, Alisen Chung <ach...@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

Reply via email to