Don't extend JDialog, use composition instead