Update Dialog.java

Add setModality
Merge pull request #8 from denis-oliveira/patch-2

Update Dialog.java