• Post Reply Bookmark Topic Watch Topic
  • New Topic

Is there a way to force a button event to happen.  RSS feed

 
joe vasher
Ranch Hand
Posts: 37
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

I can't get the ball rolling in my program til I actually send my first text to get my client sending and receiving. Not sure what I'm doing wrong.. (working on figuring this out) But in the mean time, is there a way I can force a button press or event to get things moving?


I have attempted button.notify() which seems to not do much.
 
Matthew Brown
Bartender
Posts: 4568
9
  • Likes 2
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Assuming you're using a JButton, look at the doClick() method.

notify() is the method inherited from Object for use in multi-threading, so it wouldn't be much use to you here.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!