XML Tutorial Online Calendar
Version 1.6

Calendar's properties setLocation, setBackground, setBackgroundHighlight setBorder

Calendar has to be located within Widget control. setLocation is used to specify location of the Calendar within the Widget, as it is displayed in XML Source. setBackground is used to configure the background color. As you move mouse through the dates they get highlighted, which is affected by setBackgroundHighlight property. There are many choices of borders available for a calendar (none, flat, squareraised, squarelowered, roundraised, roundlowered, roundraisedthin, roundloweredthin, squareraisedthin, squareloweredthin, text groove, ridge, flat.). In our example setBorder property was set to "flat".

Refer to Reference for complete list of Properties.

See complete XML source for this applet.

HTML Source:
<html>
<body>
<applet archive="bamboo_1_5.jar" code="Loader.class" width=150 height=320>
<param name="loadgui" value="tutorials_calendar_currentdate.xml">
</applet>
</body>
</html>

tutorials_calendar_currentdate.XML Source:

<Widget setShape="0,0,150,400" setBackground="d8d0bb" setBorder="none">
<Calendar setLocation="10,25" setBorder="flat" setBackground="f8f4db" setBackgroundHighlight="d8d0bb"/>
<Calendar setLocation="10,25" setBorder="flat" setBackground="f8f4db" setBackgroundHighlight="d8d0bb"/>
</Widget>

[Home][Tutorial] [Demo]

Calendar
Today's date Set date Disable