Web hosting asp - * @param endTime - the end time of

* @param endTime - the end time of the phoneme in msec * @param phone - the phoneme string */ public AnimationEvent(int endTime, String phone) { this.endTime = endTime; this.phone = phone; } } Listing 5.1 (Continued) Creating a New Class To create the AnimationEvent class, 1. Create the com.sun.speech.freetts.relp package in the DukeSpeaks project by pressing the Create a Java Package button on the workbench s toolbar. 2. Before creating new classes you should complete the code-generation template for constructors by adding the Constructor headline. You do this under Window > Preferences > Java > Code Style > Code Templates > Comments > Constructors. 3. After entering the package name and pressing Finish, create the new class AnimationEvent. To do so, click the Create a Java Class button on the workbench s toolbar. Enter the name of the class (AnimationEvent) and press the Finish button. 4. Start entering code. You don t have to enter much: you need only create the two fields endTime and phone, and you must modify the constructor as shown above. When creating comments you can make use of the Source > Add JavaDoc Comment context function. If you apply this function on the constructor, Eclipse will create a Javadoc comment in front of the constructor. (The same function can be invoked by entering the string /** in a new line in front of the constructor and then pressing the Enter key.) You only have to complete the text strings after @param endTime and after @param phone. Creating a New Interface Then you can create the AnimationListener interface in the same package. This one is also quite simple. Listing 5.2 shows the code for the AnimationListener.java interface. package com.sun.speech.freetts.relp; public interface AnimationListener { /** * Method processAnimationEvent. * @param e AnimationEvent object */ public void processAnimationEvent(AnimationEvent e); } Listing 5.2 76 Chapter 5
Thailand is divided into 75 provinces , which are gathered into 5 groups of provinces by location. There are also 2 special governed districts: the capital Bangkok and Pattaya. However Pattaya is still part of Chonburi Province. Some Thai people still count Bangkok as one province, making Thailand a 76-province country.All our thai web hosting accounts have spam filter, virus scanner and frontpage extensions preinstalled. Check more in Thai Web Hosting section.

Leave a Reply