Hello.
I have a JButton.
I want to do : pressing the button.
(by programming code)
How can I do that ?
Thanks :)
javayahtzee@gmail.com - 10 Aug 2007 16:09 GMT
> Hello.
> I have a JButton.
[quoted text clipped - 4 lines]
>
> Thanks :)
There is one simple way that I know of..
Try the line 'buttonName.doClick();'
that should do the trick.
Roedy Green - 10 Aug 2007 20:51 GMT
>I have a JButton.
>I want to do : pressing the button.
>(by programming code)
see http://mindprod.com/jgloss/jbutton.html#SIMULATE

Signature
Roedy Green Canadian Mind Products
The Java Glossary
http://mindprod.com