Skip to content

JDialog override dispose() causes hang #753

Description

@igarshep

Once again, I bring you JDialog issues:

public class Test extends JDialog {

public Test() {
    super(new JFrame());
    final JButton btnNewButton = new JButton("New button");
    btnNewButton.addActionListener(e -> {
        dispose();
    });
    getContentPane().add(btnNewButton, BorderLayout.SOUTH);
    setVisible(true);
}

@Override
public final void dispose() {
    super.dispose();
}
}

If you remove the override method, it works. If you include, it hangs.

Activity

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedWe need youmacOSOnly happens on MacOS

    Type

    No type

    Projects

    No projects

      Milestone

      No milestone

      Relationships

      None yet

      Development

      No branches or pull requests

      Issue actions