• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

clicking buttons programatically

 
Ravikanth thota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
hi,

i have a webpage developed using html consisting of few buttons. normally we will click the buttons manually either by using mouse or keyboard.
i need a help regarding how should i click those buttons programatically. that is when ever we execute a java program the button action should be performed same as when we clicked it manually.

thanks.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
button.doClick();
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
rk thota wrote:hi,

i have a webpage developed using html consisting of few buttons. normally we will click the buttons manually either by using mouse or keyboard.
i need a help regarding how should i click those buttons programatically. that is when ever we execute a java program the button action should be performed same as when we clicked it manually.

thanks.

Is this about Swing or some other toolkit?
 
Ravikanth thota
Greenhorn
Posts: 24
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Darryl Burke wrote:
rk thota wrote:hi,

i have a webpage developed using html consisting of few buttons. normally we will click the buttons manually either by using mouse or keyboard.
i need a help regarding how should i click those buttons programatically. that is when ever we execute a java program the button action should be performed same as when we clicked it manually.

thanks.

Is this about Swing or some other toolkit?


actually the file which i have is .htm file with few buttons in it. need to perform a button action programatically.
 
Darryl Burke
Bartender
Posts: 5125
11
Java Netbeans IDE Opera
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So, this question doesn't have anything to do with Swing / AWT / SWT / JFace?

Does it have anything to do with Java?
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic