Well, it took me a while to find this.
In short, they don't seem to be standardized (a lot), and they don't see documented (a lot).
The LookAndFeel class is the key. This is the hierarchy:
LookAndFeel
BasicLookAndFeel
- MetalLookAndFeel
- MotifLookAndFeel
- WindowsLookAndFeel
- MultiLookAndFeel
In the BasicLookAndFeel class, you can find default mappings for actions and key bindings that will be inherited by all other classes. So you can consider this class standard. You can see that when you create the object "by default", approximately like 498 for Java 1.4.2_17.
Additional bindings and key rewriting can be found at developers such as WindowsLookAndFeel.
Some of the Standarized names can be found in the DefaultEditorKit class as static fields. They seem to be safe to use and reassign. Their use can be seen in the WindowsLookAndFeel and MotifLookAndFeel classes. I would be sure that these actions would remain constant.
In short, the actions defined in DefaultEditorKit are unlikely to change. However, the key bindings completely change between L & F implementations. Extract the action from the map using DefaultEditorKit.something, and it should work in different versions. An example from DefaultEditorAction that you could use with JSlider:
public static final String selectionForwardAction = "selection-forward";
Mario ortegΓ³n
source share