src/demo/share/applets/Clock/example1.html
author dl
Sat, 10 Feb 2018 09:17:53 -0800
changeset 48842 a5a2e4770524
parent 47216 71c04702a3d5
permissions -rw-r--r--
8190324: ThreadPoolExecutor should not specify a dependency on finalization Reviewed-by: martin, psandoz, alanb, rriggs, dholmes
Ignore whitespace changes - Everywhere: Within whitespace: At end of lines:
2
90ce3da70b43 Initial load
duke
parents:
diff changeset
     1
<HTML>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     2
  <HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     3
    <TITLE>A Clock (1.6)</TITLE>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     4
  </HEAD>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     5
  <BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     6
    <h1>A Clock (1.6)</h1>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     7
    <hr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     8
    <applet code="Clock.class" width=170 height=150>
90ce3da70b43 Initial load
duke
parents:
diff changeset
     9
      alt="Your browser understands the &lt;APPLET&gt; tag but isn't running the applet, for some reason."
90ce3da70b43 Initial load
duke
parents:
diff changeset
    10
      Your browser is completely ignoring the &lt;APPLET&gt; tag!
90ce3da70b43 Initial load
duke
parents:
diff changeset
    11
</applet>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    12
      <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    13
        The clock applet now has three parameters; the background
90ce3da70b43 Initial load
duke
parents:
diff changeset
    14
        color (bgcolor), the main foreground color (the hands and
90ce3da70b43 Initial load
duke
parents:
diff changeset
    15
        dial) (fgcolor1) and the secondary foreground color (the
90ce3da70b43 Initial load
duke
parents:
diff changeset
    16
        seconds hand and numbers) (fgcolor2).  These three parameters
90ce3da70b43 Initial load
duke
parents:
diff changeset
    17
        are hexadecimal RGB numbers (like the ones used for the body
90ce3da70b43 Initial load
duke
parents:
diff changeset
    18
        bgcolor tag in HTML).  For example:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    19
      <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    20
        &lt;applet code="Clock.class" width=170 height=150&gt;<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    21
        &lt;param name=bgcolor  value="000000"&gt;<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    22
        &lt;param name=fgcolor1 value="ff0000"&gt;<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    23
        &lt;param name=fgcolor2 value="ff00ff"&gt;<br>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    24
        &lt;/applet&gt;<p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    25
        would give you a black background, a red dial and hands, and purple numbers.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    26
      <p>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    27
        For those who don't convert to hexadecimal easily, here are some common
90ce3da70b43 Initial load
duke
parents:
diff changeset
    28
        values:
90ce3da70b43 Initial load
duke
parents:
diff changeset
    29
      <ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    30
        <li>black = 000000
90ce3da70b43 Initial load
duke
parents:
diff changeset
    31
        <li>blue = 0000ff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    32
        <li>cyan = 00ffff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    33
        <li>darkGray = 404040
90ce3da70b43 Initial load
duke
parents:
diff changeset
    34
        <li>gray = 808080
90ce3da70b43 Initial load
duke
parents:
diff changeset
    35
        <li>green = 00ff00
90ce3da70b43 Initial load
duke
parents:
diff changeset
    36
        <li>lightGray = c0c0c0
90ce3da70b43 Initial load
duke
parents:
diff changeset
    37
        <li>magenta = ff00ff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    38
        <li>orange = ffc800
90ce3da70b43 Initial load
duke
parents:
diff changeset
    39
        <li>pink = ffafaf
90ce3da70b43 Initial load
duke
parents:
diff changeset
    40
        <li>red = ff0000
90ce3da70b43 Initial load
duke
parents:
diff changeset
    41
        <li>white = ffffff
90ce3da70b43 Initial load
duke
parents:
diff changeset
    42
        <li>yellow = ffff00
90ce3da70b43 Initial load
duke
parents:
diff changeset
    43
      </ul>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    44
      <hr>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    45
      <a href="Clock.java">The source</a>.
90ce3da70b43 Initial load
duke
parents:
diff changeset
    46
  </BODY>
90ce3da70b43 Initial load
duke
parents:
diff changeset
    47
</HTML>