Java Swing - O Reilly Hashtable, so that we (Best web hosting site)
Java Swing - O Reilly Hashtable, so that we can access any action we need by name. In this example, we then retrieve the “cut” action from the table using the DefaultEditorKit.cutAction constant: [1] The keen observer will notice that the properties table indicated that there were 47 actions available. One action is not defined as a constant, but is still available by the name “dump-model.” This action just calls dump() on the document of the currently focused JTextComponent (assuming it’s an AbstractDocument), causing the model structure to be printed to System.err. Hashtable actionHash = new Hashtable(); Action[] actions = edKit.getActions(); for (int i=0; i