method:showConfirmDialog ( component, question, titlebar, constant );
return type:void
special:static
content:ใช้สร้าง Confirm Dialog ขึ้นมา และมีการกำหนดประเภทของ confirm dialog ด้วย
example:JOptionPane.showConfirmDialog ( this, "Are you sure ?", "Confirm", JOptionPane.OK_CANCEL_OPTION );
comment:ตัวแปร object_component ใช้กำหนด object ที่สร้าง dialog นี้ขึ้นมา
ตัวแปร object_string_question ใช้กำหนด ข้อความ ที่ต้องการให้แสดงเป็นคำถาม
ตัวแปร object_string_titlebar ใช้กำหนด title bar ของ dialog
ตัวแปร joptionpane_constant ใช้กำหนด ประเภทของ dialog