Javabase LogoExample of changing parameter name
  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 TreeMenu 1.0//EN" "http://www.javabase.co.uk/TreeMenu/TreeMenu.dtd">
<Menu textcolor="5555FF" tooltiptext="Tooltip" name="First\Item" mouseovertextcolor="0000FF" fill="false" gap="4">
   <Item url="http://news.bbc.co.uk/"/>
   <SubMenu>
      <Item tooltiptext="Go Search!" url="http://www.google.com/"/>
      <Item tooltiptext="Tooltip" url="http://www.yahoo.com/"/>
   </SubMenu>
   <Item url="http://java.sun.com/"/>
</Menu>

 

Example 2
Source menu file
Javabase Applet
Menu source
<?xml version = "1.0" encoding="UTF-8" standalone="no"?>
<!DOCTYPE Menu PUBLIC "-//Javabase//DTD TreeMenu 1.0//EN" "http://www.javabase.co.uk/TreeMenu/TreeMenu.dtd">
<Menu textcolor="5555FF" tooltiptext="Tooltip" name="Second\Item" mouseovertextcolor="0000FF" fill="false" gap="4">
   <Item url="http://news.bbc.co.uk/"/>
   <SubMenu>
      <Item tooltiptext="Go Search!" url="http://www.google.com/"/>
      <Item tooltiptext="Tooltip" url="http://www.yahoo.com/"/>
   </SubMenu>
   <Item url="http://java.sun.com/"/>
</Menu>
Multi-line String
This parameter allows you to supply text with optional line breaks. Line breaksshould be indicated with a double backslash: "\".

 

For example if this value is set to "Line 1\Line2" then the text will appearlike this:

 

Line1

 

Line2

 

Notice that the accompanying justification parameter can be used to specifyhow these lines of text are aligned

 

Back to other parameters