public static SparseConnectionPanel createSparsityAdjustmentPanel(Sparse connection,NetworkPanel networkPanel){
  SparseConnectionPanel sap=new SparseConnectionPanel(connection,networkPanel);
  sap.fillFieldValues();
  sap.initializeSparseSlider();
  sap.addChangeListeners();
  sap.addActionListeners();
  sap.initializeLayout();
  return sap;
}

public static SparseConnectionPanel createSparsityAdjustmentPanel ( Sparse connection , NetworkPanel networkPanel ) { SparseConnectionPanel sap = new SparseConnectionPanel ( connection , networkPanel ) ; sap . fillFieldValues ( ) ; sap . initializeSparseSlider ( ) ; sap . addChangeListeners ( ) ; sap . addActionListeners ( ) ; sap . initializeLayout ( ) ; return sap ; }
create the sparsity based connection panel .
