java - Netbeans code-gen woes: How to edit auto generated code? -
OK, here's a Netbeans issue, thanks to the auto-generated code from the GUI designer. I designed a GUI using the Netbeans UI Designer and it was compiled for Java 1.6 After finishing my UI, I realized that I had to do Java 1.4 and 1.6 not to do this. In an attempt to downgrade from 1.6 to 1.4, I changed the form properties to use the Swing Extensions Library and I got rid of the enhanced forloop and generics in my code and I am going through this final error:
The error method can not be applied to the getstring class org.jdesktop.application.ResourceMap given to the given types; Required: java.lang.String, java.lang.Object [] found: java.lang.String Reason: Variation in the length of the actual and formal logic lists
This code comes from the block This method was generated automatically by Netbeans, for calls:
resourceMap.getString ("panel.tabTitle");
Obviously, this might be sorted by writing:
resourceMap.getString ("panel.tabTitle", new object {String.class} );
I have come to know how I will make this change to Netbeen to generate this code. Tell me if you have seen this issue before and were able to solve it. Appreciate your help.
If you want to edit the code, open code with other editors just like Notepad or something else And if you delete
, you can edit the code via netbeans even before the auto is generated.
Comments
Post a Comment