| OK_CANCEL_OPTION | ใช้กำหนดว่าเป็น ok - cancel option |
|---|
property:OK_CANCEL_OPTION;
return type:int
special:static
content:ใช้คืนค่า ตัวเลข ที่เป็นค่าคงที่ ที่แทนความหมายว่า ใช้กำหนดประเภทให้กับ Confirm Dialog ว่ามี ปุ่ม ok และ cancel
example:JOptionPane.showConfirmDialog ( this, "Are you delete ?", "Confirm", JOptionPane.OK_CANCEL_OPTION );