Try out this (without any class description)
where abc is tagname for the dialog.
Code:
JavaDialog("tagname:=abc")).JavaButton("label:=Close").Clickwhere abc is tagname for the dialog.

