How to change method signature in Netbeans Form Editor?
        Posted  
        
            by Dzmitry Zhaleznichenka
        on Stack Overflow
        
        See other posts from Stack Overflow
        
            or by Dzmitry Zhaleznichenka
        
        
        
        Published on 2010-04-19T08:02:15Z
        Indexed on 
            2010/04/19
            8:53 UTC
        
        
        Read the original article
        Hit count: 383
        
I create GUI in Netbeans Form Editor and want to change an auto-generated signature of one method, namely to add throws to it. How to do it?
For instance, I have
    private void btOpenFileActionPerformed(java.awt.event.ActionEvent evt) {}
And want to make it
    private void btOpenFileActionPerformed(java.awt.event.ActionEvent evt) throws AssertionError{}
As the method signature is auto-generated, I cannot change it manually.
© Stack Overflow or respective owner