Tôi chỉ cần có một nút trong showConfirmDialog
.JOptionPane showConfirmDialog chỉ với một nút
Tôi cố gắng này:
int response = JOptionPane.showConfirmDialog(null, "Time Entered Successfully",
"", JOptionPane.OK_OPTION, JOptionPane.PLAIN_MESSAGE);
if (response == JOptionPane.CLOSED_OPTION || response == JOptionPane.OK_OPTION)
{
System.out.println("CLOSING>>>>>>");
}
Nhưng điều này cho thấy hộp thoại với Yes_No_option.
Tôi chỉ muốn nút OK được hiển thị ở đó. Có thể không?
ok ốm hãy u biết –
nhờ mà làm việc .. :) –