Skip to content

JDialog override dispose() causes hang #753

@igarshep

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.

Metadata

Metadata

Assignees

No one assigned

    Labels

    bugSomething isn't workinghelp wantedWe need youmacOSOnly happens on MacOS

    Type

    No type
    No fields configured for issues without a type.

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions