Joptionpane Success Message, You must then add the option pane to a JDialog, register a property-change … .