NetBeans Options Panel validation

"kmortelite" <[email protected]>
Newsgroups gmane.comp.java.netbeans.modules.openide.devel
Message-ID <[email protected]>
I have a class that extends org.netbeans.spi.options.OptionPanelController. 

When a user clicks OK, the following method gets called:


Code:
    @Override
    public void applyChanges() { ... }



I have some items on the options panel that take a really long time to validate, and I'd like to wait until they press OK to validate them. Is there a way to keep the form from closing after they press OK? Here's a basic idea of what I want:



Code:
    @Override
    public void applyChanges() { 
    // do my slow, slow, slow validation
    // if valid, save and allow form to close return
    // otherwise, show invalid validation results on the page and don't let the form close
 }



How can I do this?

Thanks,
   Karl
lmpx.com only provides a reader for public news (NNTP) servers. It is not affiliated with the servers or forums shown here and is not responsible for the content of articles, which is written by their respective authors.