I am updating text field after certain time.
Here is my code:
ActionListener task = new ActionListener() {
public void actionPerformed(ActionEvent e) {
try {
tip1.setText(ad1.tip1());
tip2.setText(ad1.tip2());
tip3.setText(ad1.tip3());
} catch (Exception e1) {
// TODO Auto-generated catch block
e1.printStackTrace();
}
}
};
new javax.swing.Timer(1000, task).start();
my application respose very slow using this code.