document.write('<div class="java5" style="font-family: monospace;"><span style="color: #808080; font-style: italic;">//Create the slider</span><br />');
document.write('<a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.html"><span style="color: #aaaadd; font-weight: bold;">JSlider</span></a> framesPerSecond = <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.html"><span style="color: #aaaadd; font-weight: bold;">JSlider</span></a><span style="color: #66cc66;">&#40;</span><a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JSlider.html"><span style="color: #aaaadd; font-weight: bold;">JSlider</span></a>.<span style="color: #006600;">VERTICAL</span>, <span style="color: #cc66cc;">0</span>, <span style="color: #cc66cc;">30</span>, FPS_INIT<span style="color: #66cc66;">&#41;</span>;<br />');
document.write('framesPerSecond.<span style="color: #006600;">addChangeListener</span><span style="color: #66cc66;">&#40;</span><span style="color: #000000; font-weight: bold;">new</span> SliderListener<span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('framesPerSecond.<span style="color: #006600;">setMajorTickSpacing</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('framesPerSecond.<span style="color: #006600;">setPaintTicks</span><span style="color: #66cc66;">&#40;</span><span style="color: #b13366;">true</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('<br />');
document.write('<span style="color: #808080; font-style: italic;">//Create the label table</span><br />');
document.write('<a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Hashtable.html"><span style="color: #aaaadd; font-weight: bold;">Hashtable</span></a> labelTable = <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/java/util/Hashtable.html"><span style="color: #aaaadd; font-weight: bold;">Hashtable</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('labelTable.<span style="color: #006600;">put</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html"><span style="color: #aaaadd; font-weight: bold;">Integer</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">0</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.html"><span style="color: #aaaadd; font-weight: bold;">JLabel</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Stop&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;<br />');
document.write('labelTable.<span style="color: #006600;">put</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html"><span style="color: #aaaadd; font-weight: bold;">Integer</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">3</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.html"><span style="color: #aaaadd; font-weight: bold;">JLabel</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Slow&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;<br />');
document.write('labelTable.<span style="color: #006600;">put</span><span style="color: #66cc66;">&#40;</span> <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/java/lang/Integer.html"><span style="color: #aaaadd; font-weight: bold;">Integer</span></a><span style="color: #66cc66;">&#40;</span> <span style="color: #cc66cc;">30</span> <span style="color: #66cc66;">&#41;</span>, <span style="color: #000000; font-weight: bold;">new</span> <a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/JLabel.html"><span style="color: #aaaadd; font-weight: bold;">JLabel</span></a><span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;Fast&quot;</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#41;</span>;<br />');
document.write('framesPerSecond.<span style="color: #006600;">setLabelTable</span><span style="color: #66cc66;">&#40;</span> labelTable <span style="color: #66cc66;">&#41;</span>;<br />');
document.write('<br />');
document.write('framesPerSecond.<span style="color: #006600;">setPaintLabels</span><span style="color: #66cc66;">&#40;</span><span style="color: #b13366;">true</span><span style="color: #66cc66;">&#41;</span>;<br />');
document.write('framesPerSecond.<span style="color: #006600;">setBorder</span><span style="color: #66cc66;">&#40;</span><a target="_blank"&nbsp; href="http://java.sun.com/j2se/1.5.0/docs/api/javax/swing/BorderFactory.html"><span style="color: #aaaadd; font-weight: bold;">BorderFactory</span></a>.<span style="color: #006600;">createEmptyBorder</span><span style="color: #66cc66;">&#40;</span><span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">0</span>,<span style="color: #cc66cc;">10</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>;</div>');
document.write('<br />&nbsp;<br /><div style="font-size: 12px">Brought to you by the community at <a href="http://www.bytemycode.com/snippets/snippet/75/1/" target="_blank">byteMyCode</a>.</div>');
