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.