public JButton createCPTButton(){
actCPT = new AbstractAction("Create CPT"){
public void actionPerformed(ActionEvent e) {
useCPTBtn.setSelected(true);
useScriptBtn.setSelected(false);
CPSController controller = new CPSController(node);
String strConbined = "defineState( Continuous ," + textInputArea2.getText() +");"+ textInputArea1.getText();
String str = strConbined + " createCPT( "+ node.getName() +" );";
controller.compileWork(str);
CPS.getInstance().setScript(getProbabilityFunctionOwner(), strConbined );
PotentialTable auxTab = (PotentialTable) ((IRandomVariable) node).getProbabilityFunction();
GUIPotentialTable table = new GUIPotentialTable( auxTab );
table.showTable("CPT");