CalHTMLPane v2.0 Guide Example Tag Usage


2: Forms

Tag: INPUT (text)
Tag: INPUT (password)
Tag: TEXTAREA

Default Rendering (no color modification, size=18):

 uicontrol backgroundwhite background
lookandfeel
threedee
flush
 light backgrounddark background
lookandfeel
threedee
flush

Setting color attributes:

<TABLE border=2 cellspacing=2 cellpadding=5 bgcolor=gray>
  <COLGROUP span=2 align=center></COLGROUP>
  <TR>
    <TH><FONT color=white>threedee</FONT></TH>
    <TH><FONT color=white>flush</FONT></TH>
  </TR>
  <TR>
    <TD><TEXTAREA rows=4 style=threedee
      bgcolor=gray>Some sample text</TEXTAREA></TD>
    <TD><TEXTAREA rows=4 style=flush bordercolor=maroon
      text=yellow>Some sample text</TEXTAREA></TD>
  <TR>
</TABLE>

Rendering:
threedeeflush

Implementation Notes:
  • Note that the background color of text components is set with the bordercolor
    attribute.
  • Input into textfields can be constrained using the maxlength attribute
  • Swing's JTextArea normally allows tabbing within it, but this has been changed
    within the CalPane to allow for consistent keyboard navigation
Guide Index  |  JavaDoc  |  Previous  |  Next