/usr/share/doc/openjdk-11-jre-headless/demo/applets/Clock/example1.html is in openjdk-11-demo 10.0.1+10-3ubuntu1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 | <HTML>
<HEAD>
<TITLE>A Clock (1.6)</TITLE>
</HEAD>
<BODY>
<h1>A Clock (1.6)</h1>
<hr>
<applet code="Clock.class" width=170 height=150>
alt="Your browser understands the <APPLET> tag but isn't running the applet, for some reason."
Your browser is completely ignoring the <APPLET> tag!
</applet>
<p>
The clock applet now has three parameters; the background
color (bgcolor), the main foreground color (the hands and
dial) (fgcolor1) and the secondary foreground color (the
seconds hand and numbers) (fgcolor2). These three parameters
are hexadecimal RGB numbers (like the ones used for the body
bgcolor tag in HTML). For example:
<p>
<applet code="Clock.class" width=170 height=150><br>
<param name=bgcolor value="000000"><br>
<param name=fgcolor1 value="ff0000"><br>
<param name=fgcolor2 value="ff00ff"><br>
</applet><p>
would give you a black background, a red dial and hands, and purple numbers.
<p>
For those who don't convert to hexadecimal easily, here are some common
values:
<ul>
<li>black = 000000
<li>blue = 0000ff
<li>cyan = 00ffff
<li>darkGray = 404040
<li>gray = 808080
<li>green = 00ff00
<li>lightGray = c0c0c0
<li>magenta = ff00ff
<li>orange = ffc800
<li>pink = ffafaf
<li>red = ff0000
<li>white = ffffff
<li>yellow = ffff00
</ul>
<hr>
<a href="Clock.java">The source</a>.
</BODY>
</HTML>
|