Update Dialog.java

Add setModality