Important master state
By mryzl on Apr 22, 2010
JavaFX Composer comes with the concept of application states. State represents a set of property values. If you switch to another state, new values are assigned to all the components. Using states, it is easy to create multiple screens, zoom effects, sidebars, etc. Read more about states in NetBeans wiki. There is always one state - master state (<master> in the list of states). It is a global state and all states inherit values from master until they are re-defined in a particular state. We recommend to do most of the design in the master state, change individual states only if necessary.
One of the common mistakes is if you are designing an application where individual screens share a lot of components and accidentally switch to another state. Then all changes apply only to this particular state and have to be repeated in other states. To prevent such a situation, the IDE draws a red rectangle around the scene if non-master state is selected.
If you have added or modified the component in a non-master state and now you would like to move it to the master, simply select the component | right-click | Set component to master. In such a case, all property values of the component will be set to the master set.
If only some properties should be set in master state, simply use Set As Master and Reset to Master buttons on the property customizer in property sheet. Set As Master will set the current value to the master state, Reset to Master will make this property value to be inherited from the master state. --Martin