java - Can Anyone Tell me How to get system date in Jtextfield? -


t2=new jtextfield(5); this.add(t2); t2.setbounds(450,50,100,20); 

this query !! knows answer?

try like:

date date = new date();//you use calander , formatter if need date in particular format. t2.settext(date.tostring()); 

Comments

Popular posts from this blog

java - Could not locate OpenAL library -

c++ - Delete matches in OpenCV (Keypoints and descriptors) -

sorting - opencl Bitonic sort with 64 bits keys -