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.
Once again, I bring you JDialog issues:
If you remove the override method, it works. If you include, it hangs.