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