net.sf.fmj.gui.controlpanelfactory.ControlPanelFactorySingleton Maven / Gradle / Ivy
Go to download
Show more of this group Show more artifacts with this name
Show all versions of fmj Show documentation
Show all versions of fmj Show documentation
Freedom for Media in Java
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();
}
}