com.sun.speech.engine.synthesis
Class SynthesizerSelector

java.lang.Object
  extended bycom.sun.speech.engine.synthesis.SynthesizerSelector

public class SynthesizerSelector
extends java.lang.Object

GUI that displays a list of Synthesizer names in a dialog box. When the user makes a selection, the selected SynthesizerModeDesc is returned to the caller.


Constructor Summary
SynthesizerSelector()
           
 
Method Summary
static javax.speech.synthesis.SynthesizerModeDesc getSynthesizerModeDesc(java.awt.Component component, java.lang.String appName)
          Asks Central for a list of available synthesizers.
 
Methods inherited from class java.lang.Object
clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
 

Constructor Detail

SynthesizerSelector

public SynthesizerSelector()
Method Detail

getSynthesizerModeDesc

public static javax.speech.synthesis.SynthesizerModeDesc getSynthesizerModeDesc(java.awt.Component component,
                                                                                java.lang.String appName)
Asks Central for a list of available synthesizers. If there are none, returns null. If there is only one, returns it. Otherwise, pops up an input dialog that gives the user a choice.

Parameters:
component - the component for JOptionPane.showInputDialog
appName - the title for the input dialog
Returns:
a SynthesizerModeDesc representing the synthesizer to use.