All Downloads are FREE. Search and download functionalities are using the official Maven repository.

net.sf.fmj.gui.controlpanelfactory.ControlPanelFactorySingleton Maven / Gradle / Ivy

There is a newer version: 1.0.2-jitsi
Show newest version
package net.sf.fmj.gui.controlpanelfactory;

/**
 * The global singleton {@link ControlPanelFactory} instance. All FMJ handlers
 * should use this to create their control panel components, if possible,
 * ensuring a consistent, configurable UI.
 *
 * @author Ken Larson
 *
 */
public final class ControlPanelFactorySingleton
{
    private static ControlPanelFactory instance = /*
                                                   * new
                                                   * SwingLookControlPanelFactory
                                                   * ();
                                                   */new StandardControlPanelFactory();

    public static ControlPanelFactory getInstance()
    {
        return instance;
    }

    public static void setInstance(ControlPanelFactory instance)
    {
        ControlPanelFactorySingleton.instance = instance;
    }

    private ControlPanelFactorySingleton()
    {
        super();
    }
}




© 2015 - 2024 Weber Informatics LLC | Privacy Policy