added java classes for message box and confirm boxes