This Bugzilla instance is a read-only archive of historic NetBeans bug reports. To report a bug in NetBeans please follow the project's instructions for reporting issues.
I compile my projects in a free from project, and usually compile with the -lint flag. Unfortunately, this causes warnings to be thrown if the serialVersionUID is not declared in the file. I find when I compile, I have to go back through all my Dialogs, Panels and Exeptions adding the serialVersionUID. Could the serializable templates (Exception, JPanel, JDialog, JFrame, JApplet and their awt counterparts) be altered to include the below line? I'd suggest putting this in the white editable part rather than the blue uneditable part of the generated code. public static final long serialVersionUID = 0; Mark McKay http://www.kitfox.com
SVUID in Swing classes is not a good idea IMO. It can silence some tools but can also cause some troubles. It is meant to help you keep the compatibility but compatibility is not guaranteed here. And if you are not going to serialize it anyway than it just polutes the code.
*** This issue has been marked as a duplicate of 70746 ***