_searchDialog.show();
_searchDialog.setVisible(true);
            public void actionPerformed(ActionEvent event) {                if (_searchDialog == null) {                    Container c = textScrollPane;                    while (! (c instanceof JFrame) && c.getParent() != null) {                        c = c.getParent();                    }                    if (c instanceof JFrame) {                        _searchDialog = new SearchDialog((JFrame) c, textTextArea);                    } else {                        System.err.println("No JFrame parent found!");                        return;                    }                }                _searchDialog.show();            }