Javabase LogoExample of changing parameter tooltipfontsize
  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 tooltipfontsize="8" 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 tooltipfontsize="16" 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 fonts
Fonts for a particular part of the menu (here called tooltipfontsize) are specified using three different parameters: the font's name, the font's size and the font's style.
tooltipfontsizename
This is the name of the font to use. Unfortunately, different fonts are available on different browsers.However, the following font names are usually available universally: Times, Dialog, SansSerif, Serif, Monospaced, Helvetica, TimesRoman, Courier, DialogInput and ZapfDingbats.
tooltipfontsizestyle
This is the point (pt) size of the font which you wish to use.
tooltipfontsizesize
This parameter can be used to specify the font style. It should be set to "" for the default style,"i" for italic, "b" for bold and "bi" for bold italic.

 

Back to other parameters