No Style for my DatePicker

149 views
Skip to first unread message

Josse

unread,
Feb 26, 2009, 7:52:06 AM2/26/09
to Google Web Toolkit
Hello I would like tu use a DatePicker but I can't have a style
applied to it.
I put a DateBox to have it :

Label lDebutModif = new Label("Modif entre le : ");
DateBox dbDebutModif = new DateBox();
Label lFinModif = new Label("Et le : ");
DateBox dbFinModif = new DateBox();


and I inherit incubator in my module :

<inherits name='com.google.gwt.gen2.datepicker.DatePicker'/>

My dateBox and my DatePicker are shown but there is no style at all
applied to my DatePicker.

Help.

Arthur Kalmenson

unread,
Feb 26, 2009, 4:47:48 PM2/26/09
to Google-We...@googlegroups.com
I think you have to take the CSS out of the example date picker
project. Perhaps GWT 1.6 comes with the CSS done already.

--
Arthur Kalmenson

Sumit Chandel

unread,
Feb 27, 2009, 6:41:08 PM2/27/09
to Google-We...@googlegroups.com
Hi Josse,

Indeed, you will need to use the CSS from the GWT incubator project to have the styles applied to your DatePicker widget.

The DatePicker CSS is included in the standard CSS theme, so once it goes final you can look forward to using it out of the box with styles applied.

Hope that helps,
-Sumit Chandel

Jason Essington

unread,
Mar 2, 2009, 11:56:33 AM3/2/09
to Google-We...@googlegroups.com
indeed, GWT 1.6 does come with 3 different sets of CSS HOWEVER you
would have to import one of the "themes" in your project to get them

<inherits name='com.google.gwt.user.theme.chrome.Chrome'/>

For instance.

-jason
Reply all
Reply to author
Forward
0 new messages