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.
Steps to duplicate: Create a new Java Desktop Application Drag a JButton onto the form Right click=>Properties set the text value to anything (i.e. "Click Me!") Now Right click on the button and click on Set Action Select create new action from the drop down list Fill in the form's action method and hit ok. The text that you had typed disappeared. This was probably the first bug I found when writing code for my Java class. I am a newbie programmer to Java, so I wasn't initially aware that I had to type my text value into the Text box under Basic Attributes. This value should automatically pull from the properties of the JButton (or whatever other control) that you right clicked on. All other fields that can be simultaneously set in both the Properties window and the Set Action dialog box should also automatically be populated as well. It is a very easy bug to work around once you are aware of it. However, it took me an extra 10 minutes or so to figure out what happened to the text.
Firstly: This behavior is as designed. You doesn't fill any text during action creation and therefore no text is loaded for button from resources. This is more enhancement than bug.
*** This issue has been marked as a duplicate of 80967 ***
just for correction. I will create enhancement for feature you has described in the second part of your description. It's good idea
the number of enhancement is 129085 ... just for clarification
Now manually set properties like text, icon, mnenonic, ... will not be overwritten while setting new javax.swing.Action property value.
Fixed Modified files: http://hg.netbeans.org/main/rev/74a2f5d4a7ef
Integrated into 'main-golden', available in build *200808060201* on http://bits.netbeans.org/dev/nightly/ Changeset: http://hg.netbeans.org/main/rev/74a2f5d4a7ef User: Jiri Vagner <jvagner@netbeans.org> Log: #128897 - Manually set properties will not be overwritten by action