Java JFormattedTextField editor action list
import java.util.Arrays; import java.util.Comparator; import javax.swing.Action; import javax.swing.JFormattedTextField; import javax.swing.text.JTextComponent; public class Main { public static void main(String args[]) { JTextComponent component = new JFormattedTextField(); // Process action list Action actions[] = component.getActions(); int count = actions.length; for (int i = 0; i < count; i++) { System.out.printf("%28s : %s\n",actions[i].getValue(Action.NAME),actions[i].getClass().getName()); }/* w w w. j a v a2 s. com*/ } }