<HTML> <BODY bgcolor=ffffff> <P> <TABLE width=100% cellspacing=0 cellpadding=0> <TR> <TD> <FONT size=-1><B>CalHTMLPane v2.0 Guide</B></FONT> </TD> <TD align=right> <FONT size=-1><B>Example Tag Usage</B></FONT> </TD> </TR> </TABLE> <HR width=100% size=1 color=black> <P> <FONT size=+1><B>2: Forms</B></FONT> <P> <BLOCKQUOTE> <P> <B>Attr: accesskey</B><BR> <P> <TABLE border cellpadding=6 align=center> <TR> <TD> <B>Synopsis:</B><BR> Use this attribute to give a keyboard accelerator to a form component. <P>For form buttons created with the INPUT tag the button text will show the accelerator underlined. <P>For other controls the U (underline) tag can be used to mark the key accelerator. <P>Note that the LABEL tag can be used to pass focus to another form component by using the <B>for</B> attribute (see HTML4.0 spec). <P> </TD> </TR> <TR> <TD> <B>Example:</B> <P> <table align=center bgcolor=ffffdd cellspacing=0 cellpadding=4 rules=none bordercolor=black frame=border> <tr> <td><FONT color=navy> <P align=center><BR> <INPUT type=button value="Press me" accesskey="P"> <BR> Your <U>n</U>ame: <INPUT type=text accesskey=n><BR> <P align=center><BR> <LABEL bgcolor=white for=mycombo accesskey='c'><U>C</U>omposer</LABEL><BR> <SELECT id=mycombo><BR> <code> </code><OPTION>Mozart<BR> <code> </code><OPTION>Schubert<BR> <code> </code><OPTION>Bach<BR> </SELECT><BR> </td> </tr> </table> <P> <TR><TD> <B>Rendering:</B> <FONT color=red size=-1>Note: Java 1.2 has a bug (no. 4159610) relating to this example. If the textfield has focus and an accelerator is used for a different control, the accelerator character will show within the textfield</FONT> <P align=center> <INPUT type=button value="Press me" accesskey="P"> Your <U>n</U>ame: <INPUT type=text accesskey=n> <P align=center> <LABEL bgcolor=white for=mycombo accesskey='c'><U>C</U>omposer</LABEL> <SELECT id=mycombo> <OPTION>Mozart <OPTION>Schubert <OPTION>Bach </SELECT> <BR> <BR> </TD> </TR> </TABLE> </BLOCKQUOTE> <TABLE align=center width=50%> <TR> <TD align=center> <A href="../CalGuide.html">Guide Index</A> | <A href="../javadoc/overview-tree.html"> JavaDoc</A> | <A href="guide-Forms-labeltag.html"> Previous</A> | <A href="guide-Frames-iframe.html"> Next</A> </TD> </TR> </TABLE> </BODY> </HTML>