fixing bug: TestableDialog.showOptionDialog did not work on jre6