Port SimpleDialog into Scala