Javabase LogoExample of changing parameter tooltiptextcolor
  Home
  Applets
    Menus
    Site Mapping
    Scrollers
    FX Menus
    Image FX
  FAQ
  Register
  Contact
Back to other parameters

 

Example 1
Source menu file
Javabase Applet
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Menu PUBLIC "-//Javabase//DTD ToolTipMenu 1.0//EN" "http://www.javabase.co.uk/ToolTipMenu/ToolTipMenu.dtd">
<Menu tooltiptextcolor="000000" gap="2">
   <Item tooltiptext="1st Tooltip" url="http://www.google.com" name="First\Item"/>
   <Separator/>
   <Item tooltiptext="2nd Tooltip" url="http://www.yahoo.com" name="Item"/>
</Menu>

 

Example 2
Source menu file
Javabase Applet
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Menu PUBLIC "-//Javabase//DTD ToolTipMenu 1.0//EN" "http://www.javabase.co.uk/ToolTipMenu/ToolTipMenu.dtd">
<Menu tooltiptextcolor="0000AA" gap="2">
   <Item tooltiptext="1st Tooltip" url="http://www.google.com" name="First\Item"/>
   <Separator/>
   <Item tooltiptext="2nd Tooltip" url="http://www.yahoo.com" name="Item"/>
</Menu>
Specifying Colors by RGB values
As in HTML, colors for menus can be specified using their Red,Green and Blue components in hexadecimal notation. These values are written with the following syntax:

"RRGGBB"

RR is red value, GG the green value, and BB the blue value. The best way to go about getting color in this form is to use a graphics program to chose one and then look at it's red, green and blue components.

 

Color help

 

Back to other parameters