joptionpane adapter