import java.awt.*;
import javax.swing.*;

/**
This class is used to create checkboxes by passing the name, font, toolTip and whether the checkbox is selected
**/
class TdfCheckBox extends JCheckBox
{
	/** constructor with no argument **/
	public TdfCheckBox ()
	{
		super ();
	}
	
	
	/** constructor with name,font, tooltip and isSelected as parameters **/
	public TdfCheckBox (String name, Font f, String toolTip, boolean isSelected)
	{
		setFont (f);
		setText (name);
		setToolTipText (toolTip);
		setSelected (isSelected);
	}
	
	/** method to check whether the checkbox is selected **/
	public boolean checkSelection ()
	{
		return isSelected ();
	}
}
	
