如何使用DialogDescriptor删除模态窗口中的x按钮?
DialogDescriptor.CANCEL_OPTION
代码:
final DialogDescriptor dialogDescriptor = new DialogDescriptor(credenciaisPanel, "Selecionar Área", true, null,
OK_OPTION, DialogDescriptor.DEFAULT_ALIGN, null, null);
dialogDescriptor.setClosingOptions(null);
dialogDescriptor.setModal(true);
dialogDescriptor.setLeaf(true);
我可以更改按钮的行为x,但我想将其从视图中删除
credenciaisPanel = javax.swing.JPanel