• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Thread

 
Hasitha Randika
Ranch Hand
Posts: 50
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i'm doing a mobile application where i can connect to google takl through my phone. there i'm declaring a text wit 200 inputs but when the chat goes on i want to increse the capacity of the text field can any one help me???


public class GetReply extends Thread {

public void run() {

status = true;
while (status) {
if (getTextField3().getString().length() < 50) {
reply = chat.getHistory();
textField3.setString(reply);
System.out.println(reply);
System.out.println(getTextField3().getString().length());
} else {
textField3.delete(0, getTextField3().getString().length());
status = false;
status =true;
// textField3.setString(textField3.);

}
}
try {
GetReply.sleep(2000);
} catch (InterruptedException ex) {
ex.printStackTrace();
}
}
}
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic