posted 21 years ago
I'm shure, there are many ways of doing this. One way is, that your JFrame listens for keys. Everytime "Enter" key is pressed, you can send a message to other listening components (JPanel, JInternalFrame). They can do something, when they catch this event. You may ask now, how do you add the components as a listener to your JFrame. One possibility would be the work with Observer and Observable. An other way would be using PropertyChangedEvent.
The only fact is (as I know), the JFrame is the only component, which knows all key events, no matter which component the focus has.