Changing the Look and Feel


You can change the Java Look and Feel used by RText.


To change the Look and Feel, from the Format menu, select Look and Feel. A popup menu will appear, allowing you to select a Look and Feel from all Look and Feels supported by your JVM.


You can also configure RText to use 3rd party Look and Feels, such as JGoodies (http://www.jgoodies.com). To use a 3rd party Look and Feel:

  1. In the directory in which RText is installed, open the file lnfs/lookandfeels.xml. This is a configuration file read by RText whenever it starts. Any Look and Feels specified in it will be available in RText.
  2. Add a line for the Look and Feel you'd like to use as follows:
    <LookAndFeel name="<name>" class="<class>" jar="lnfs/<jar>"/>
    where <name> is the name of the Look and Feel as it will appear in RText's Look and Feel menu, <class> is the fully-qualified class name of the Look and Feel, and <jar> is the name of the Jar file containing the Look.
  3. Add the Jar file you specified above into the lnfs/ directory.
An example lookandfeels.xml specifying the JGoodies Look and Feel would be:
<ThirdPartyLookAndFeels>
   <LookAndFeel name="JGoodies Plastic"
       class="com.jgoodies.looks.plastic.PlasticLookAndFeel"
       jar="lnfs/looks-1.3.jar"/>
</ThirdPartyLookAndFeels>
 
The next time RText is started, your Look should be available from the Look and Feel menu!