This code i have learnt and applied in my project but its nt getting the system time. When i run it ordinary it got the sys time but when i applied it on a gui it didnt work. This is a thread.
public void dateTime() { datetimeThread = new Thread(this);