File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes clicking buttons programatically Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "clicking buttons programatically" Watch "clicking buttons programatically" New topic
Author

clicking buttons programatically

Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
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

Joined: Jun 09, 2003
Posts: 4632
button.doClick();
Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4664
    
    5

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?


luck, db
There are no new questions, but there may be new answers.
Ravikanth thota
Greenhorn

Joined: Apr 09, 2012
Posts: 24
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

Joined: May 03, 2008
Posts: 4664
    
    5

So, this question doesn't have anything to do with Swing / AWT / SWT / JFace?

Does it have anything to do with Java?
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: clicking buttons programatically