Depends on the component, and what you mean by faking a mouse click. You can call doClick() on any button and the button will perform the action specified by its action listener. If you want to do this sort of thing in order to test your components I would suggest that you pull the action of the component out into a separte method that you can call programatically and not worry about the wheather the listener is working. If you do want to test the listener then you can try AWT Robot class(lots of fun!).
--- "\" \"" <[EMAIL PROTECTED]> wrote: > > Hi All: > > Is there a easy way to fake a mouse click on a > component? > > Thanks. > > > > --------------------------------- > Do You Yahoo!? > Yahoo! Health - Feel better, live better > > To change your membership options, refer to: > http://www.sys-con.com/java/list.cfm > __________________________________________________ Do You Yahoo!? Yahoo! Health - Feel better, live better http://health.yahoo.com To change your membership options, refer to: http://www.sys-con.com/java/list.cfm
