Java™ - a simple hover class

This is the applet in action:


          

showing the same applet with another border:


          

The applet internally creates three images for the three possible states: one for the normal state, another one for the "hovered" state (lightened), and a third one for the state, when the button is down. So there should be no delay or flickering when the mouse is moved over the button.


param name
param value
param meaning
foreground
FFFFFF
the font color is white
background
3366CC
spezifies the color of the button canvas
hovercolor
82ADE2
color of the canvas, when the mouse button is down
font
14, Arial, BOLD
font size, font name and (optional)
font style (BOLD and/or ITALIC)
target
FrameName
is the name of the target frame
text
test button 2
is the button text
url
page.html
specifies the page to be opened
framecol
30
the smaller the value, the darker the 3D-border


Download info:
icon  Download the compiled java applet below:
        mirror 1 is server online   download online     (file size: 301 Moved Permanently bytes, last modified: 01.01.1970)
        mirror 2 is server online  
icon  Download the source code of the java applet below:
        mirror 1 is server online   download online     (file size: 301 Moved Permanently bytes, last modified: 01.01.1970)
        mirror 2 is server online  
icon  Download and see the documented source code as PDF below:
        mirror 1 is server online   download online     (file size: 97.90 kB, last modified: 06.12.2009)
        mirror 2 is server online   download online     (file size: 301 Moved Permanently bytes, last modified: 01.01.1970)
        mirror 3 is server online  

If you need more information on how to embed a Java™ applet using XHTML compliant code have a look at the document 04_content_java_embed.php.


last update: 2009-12-30 - 19:51:18.
copyright © by Klaus Burgstaller 2009