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

node.js - How to mock a third-party api calls in the backend -

node.js - Why do I get "SOCKS connection failed. Connection not allowed by ruleset" for some .onion sites? -

matlab - 0-by-1 sym - What do I need to change in order to get proper symbolic results? -