added constructor, started to implement JDialog.