ActionMap « Event « Java Swing Q&A





1. Java Swing ActionMap keys    stackoverflow.com

I'm coming up the learning curve for Swing and am reading about InputMap and ActionMap. The O'Reilly book on Swing says the keys for ActionMap can be any Object, but by ...

2. Are the names of default actions in Swing component's ActionMap standardized?    stackoverflow.com

Say I have a standard Swing component like JSlider, but I want to slightly adjust the input map. Default input maps and action map are installed by look and feel, and ...

3. How does a swing component makes a look up in its ActionMap from it's inputMap using the intermediate Object reference    stackoverflow.com

I've been reading about registering the "Action" objects with multiple components, and I came across the recipe of registering (binding) an Action object to a Keystroke object. In the pursuit I ...

4. Swing problem with InputMap/ActionMap    stackoverflow.com

I want my JTextField to process the text not only when ENTER is pressed, but also when SPACE is pressed. You can see in the code below that I associated the ...

5. Java Swing: Using ActionMap    stackoverflow.com

I've seen a post earlier that recommends favoring Actions over listeners. I am not so familiar with the ActionMap. What are the disadvantages of the each approach? I like to make ...

6. ActionMap/InputMap    coderanch.com

7. KeyMap/ActionMap question    java-forums.org

Greetings, I though I knew how KeyMaps and ActionMaps work; obviously I don't ... Suppose I want to track what a user has typed in a JTextArea. I change the default action in the KeyMap and make it point to my Action. All works fine. Also suppose I don't want the user to type, say, the up arrow key. I defined ...