|
|
|
Re: Blank DateTime widget [message #529252 is a reply to message #520509] |
Fri, 23 April 2010 15:08 |
Eclipse User |
|
|
|
Originally posted by: mike.dean.hsc.utah.edu
Is it possible to SET the DateTime to current? When I use this and a new
form is instantiated, it is already set to current time, but I want the user
to be able to refresh the widget to the current time.
- Mike
On 3/12/10 10:18 AM, in article hndph0$qke$1@build.eclipse.org, "Grant
Gayed" <grant_gayed@ca.ibm.com> wrote:
> Hi,
>
> This is not currently supported, the existing request for this is
> https://bugs.eclipse.org/bugs/show_bug.cgi?id=178362 .
>
> Grant
>
>
> <chewb0504@yahoo.fr> wrote in message news:hnafe7$chf$1@build.eclipse.org...
>> Hello,
>>
>> I use the DateTime widget in my application.
>> I instanciate it as following:
>> new DateTime (parent, SWT.BORDER | SWT.DROP_DOWN);
>> Can I load this widget with no default value rather than the current date?
>
>
--
J. Michael Dean, M.D., M.B.A.
University of Utah School of Medicine
Salt Lake City, Utah
|
|
|
Re: Blank DateTime widget [message #529865 is a reply to message #529252] |
Tue, 27 April 2010 13:50 |
Grant Gayed Messages: 2150 Registered: July 2009 |
Senior Member |
|
|
To do this you need to get the current date/time from Java with a line like
below, and then set the DateTime control's values accordingly.
Calendar calendar = Calendar.getInstance();
Grant
"J. Michael Dean" <mike.dean@hsc.utah.edu> wrote in message
news:C7F7140E.3D138%mike.dean@hsc.utah.edu...
> Is it possible to SET the DateTime to current? When I use this and a new
> form is instantiated, it is already set to current time, but I want the
user
> to be able to refresh the widget to the current time.
>
> - Mike
>
>
>
> On 3/12/10 10:18 AM, in article hndph0$qke$1@build.eclipse.org, "Grant
> Gayed" <grant_gayed@ca.ibm.com> wrote:
>
> > Hi,
> >
> > This is not currently supported, the existing request for this is
> > https://bugs.eclipse.org/bugs/show_bug.cgi?id=178362 .
> >
> > Grant
> >
> >
> > <chewb0504@yahoo.fr> wrote in message
news:hnafe7$chf$1@build.eclipse.org...
> >> Hello,
> >>
> >> I use the DateTime widget in my application.
> >> I instanciate it as following:
> >> new DateTime (parent, SWT.BORDER | SWT.DROP_DOWN);
> >> Can I load this widget with no default value rather than the current
date?
> >
> >
>
> --
> J. Michael Dean, M.D., M.B.A.
> University of Utah School of Medicine
> Salt Lake City, Utah
>
|
|
|
Powered by
FUDForum. Page generated in 0.03229 seconds