Sunday, October 16, 2016

UI elements in a User Interface will not respond to the user while execution if a thread is not implemented. Here I will explain how to create a thread so that User Interface will keep responding to the user even when the execution is happening.

Create a class outside the Jframe class
class Multi3 implements Runnable{ 

public void run(){ 
    Url url= new Url();
    url.openurl(javaframe.textField.getText());
}
}

Call the Thread from any actionlistener like below

Multi3 m1=new Multi3(); 
                Thread t1 =new Thread(m1);
                t1.start();  

0 comments:

Post a Comment

>

Selenium useful links

Powered by Blogger.

Featured Post

Benefits of having a user Interface for a Selenium Automation Suite/Regression Suite

Once you are able to work independently on Selenium scripting, another important task is how to ease your automation test execution. There a...

Video

Popular Posts

Our Facebook Page