Eclipse Community Forums
Forum Search:

Search      Help    Register    Login    Home
Home » Eclipse Projects » Standard Widget Toolkit (SWT) » Blank DateTime widget
Blank DateTime widget [message #520145] Thu, 11 March 2010 10:08 Go to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2010
Junior Member
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?
Re: Blank DateTime widget [message #520509 is a reply to message #520145] Fri, 12 March 2010 16:18 Go to previous messageGo to next message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
Registered: July 2009
Senior Member
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?
Re: Blank DateTime widget [message #521405 is a reply to message #520509] Wed, 17 March 2010 14:15 Go to previous messageGo to next message
No real name is currently offline No real nameFriend
Messages: 2
Registered: March 2010
Junior Member
Thx for the answer.
I will use the DateChooser component from nebula library.
Re: Blank DateTime widget [message #529252 is a reply to message #520509] Fri, 23 April 2010 15:08 Go to previous messageGo to next message
Eclipse UserFriend
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 Go to previous message
Grant Gayed is currently offline Grant GayedFriend
Messages: 2151
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
>
Previous Topic:Dropdown always above CCombo
Next Topic:Buttons don't display until window is resized
Goto Forum:
  


Current Time: Sun Dec 21 14:27:22 GMT 2014

Powered by FUDForum. Page generated in 0.02242 seconds
.:: Contact :: Home ::.

Powered by: FUDforum 3.0.2.
Copyright ©2001-2010 FUDforum Bulletin Board Software