From
Desing Patterns in the Motivation section for the Command pattern:
The application configures each MenuItem with an instance of a concrete Command subclass. When the user selects a MenuItem, the MenuItem calls Execute on its comment, and Execute carries out the operation.
In other words, yes.
Warning: I don't no much at all about Swing To see this applied, look in you JDK installation under the demo/jfc folder. You could look at the folder demo/jfc/notepad for example. Stylepad is a bit more advanced (it extends Notepad). You'll see that a javax.swing.Action is a Command. Be sure to check out Stylepad.properties and Notepad.properties under the resources folder. You'll notice references to Actions like "copy-to-clipboard" which aren't defined by either of these programs -- they're being reused from Swing.