> ...what i need is that when a button is
> pressed it does the same thing as if a certain key is
> pressed so that my media player
Do you mean something like Windows Media
Player(a), as opposed to the JMF(b)?
>..thinks the key is
> being pressed.
a) For native applications, the java.awt.Robot
class might help here.
It has methods to move the mouse, make
mouseclicks and send key events.
For this method to work, the location of the media
player needs to be known to the Robot (so it can
click in the right places to make it active and give
it keyboard focus, for example).
b) For Java based apps., like JMF, the strategy
outlined by the first respondent is the best.
Access the buttons and such direct through Java.