FileDocCategorySizeDatePackage
ControlComponentFactory.javaAPI DocExample562Mon Jan 09 11:02:00 GMT 2006None

ControlComponentFactory

public class ControlComponentFactory extends Object

Fields Summary
Constructors Summary
private ControlComponentFactory()

super();
Methods Summary
public static javax.swing.JComponentgetComponentFor(javax.sound.sampled.Control control)

        System.out.println (control.getType().getClass());
        if (control instanceof BooleanControl)
            return new BooleanControlComponent ((BooleanControl) control);
        else if (control instanceof FloatControl)
            return new FloatControlComponent ((FloatControl) control);
        return new JLabel ("unsupported");