I've just noticed that a JButton
does not change it text to the NAME
value of the coupled Action
object when at least the following 2 things are true:
- the button's
preferredSize
property is not the default value. - the button's
text
property is not the default of "" (empty).
It could be that there are other combinations of property values that make the button ignore the name of the action, however when I put one or the other on default, it works.
I'll state the obvious that the action is properly registered, and the hideActionText
property is false. Additionally, I should say that I set these properties via the properties panel in the Netbeans GUI designer.
A few google searches brought up nothing. Is this normal behaviour and can it be resolved?