Avatar of valleytech
valleytech
Flag for United States of America

asked on 

click action

hi,
 Right now my program works perfectly when user clicks on a button and close when it finishes . However, I want it run automatically without a click by using
if( instance.jButton1 != null)
{
      instance.jButton1.doClick();
}
System.exit(1);

However, it doesn't work now.I don't know why. Please help. Thank you.
Java

Avatar of undefined
Last Comment
Mick Barry

8/22/2022 - Mon