Article View: borland.public.jbuilder.java.swing
Article #11360Re: Beginner needs help!!!!!!
From: Jonathan
Date: Tue, 15 Jun 1999 00:00
Date: Tue, 15 Jun 1999 00:00
26 lines
1088 bytes
1088 bytes
you can try this Calendar cal = Calendar.getInstance(); DateFormat df = DateFormat.getTimeInstance(); <someComponent>.setText(df.format(cal.getTime())); don't forget to import import java.util.Calendar; import java.text.DateFormat; good luck stix8 wrote in message <1103_929446721@pavilion>... >Can anyone one tell me how to check the time and date on the host pc and insert it into the gui of an application I am building. >This may sound like a silly question but I am only just starting out and cannot find any reference to doing this anywhere. > >Thanks, >Conrad
Technical Details
Message-ID:
<7k5mdr$k8t13@forums.borland.com>Path:
arc1-ca.pugleaf.net!unknown!not-for-mailReferences:
<1103_929446721@pavilion>Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit X-Google-Thread: 111d45,9defff95ba52607d X-Google-Attributes: gid111d45,public From: "Jonathan" <plaskowj@logica.com> Subject: Re: Beginner needs help!!!!!! Date: 1999/06/15 Message-ID: <7k5mdr$k8t13@forums.borland.com> X-Deja-AN: 489854314 References: <1103_929446721@pavilion> Organization: Another Netscape Collabra Server User X-MimeOLE: Produced By Microsoft MimeOLE V4.72.3110.3 Newsgroups: borland.public.jbuilder.java.swing