private void init(){
  Box mainVertical=Box.createVerticalBox();
  fillFieldValues();
  weightSizeMaxSlider.setMajorTickSpacing(25);
  weightSizeMaxSlider.setPaintTicks(true);
  weightSizeMaxSlider.setPaintLabels(true);
  weightSizeMinSlider.setMajorTickSpacing(25);
  weightSizeMinSlider.setPaintTicks(true);
  weightSizeMinSlider.setPaintLabels(true);
  addActionListeners();
  colorPanel.add(cbChangeColor);
  colorIndicator.setSize(20,20);
  colorPanel.add(colorIndicator);
  colorPanel.add(changeColorButton);
  setIndicatorColor();
  LabelledItemPanel guiPanel=new LabelledItemPanel();
  guiPanel.addItem("Color:",colorPanel);
  guiPanel.addItem("Weight size max",weightSizeMaxSlider);
  guiPanel.addItem("Weight size min",weightSizeMinSlider);
  mainVertical.add(guiPanel);
  mainVertical.add(new JSeparator(JSeparator.HORIZONTAL));
  LabelledItemPanel miscPanel=new LabelledItemPanel();
  miscPanel.addItem("Network time step",timeStepField);
  miscPanel.addItem("Synapse visibility threshold",tfSynapseVisibilityThreshold);
  nudgeAmountField.setColumns(3);
  miscPanel.addItem("Nudge Amount",nudgeAmountField);
  miscPanel.addItem("Wand radius",wandRadiusField);
  miscPanel.add(new JSeparator(JSeparator.HORIZONTAL));
  miscPanel.addItem("Use Subsampling for large neuron groups",cbUseSubSampling);
  miscPanel.addItem("Number of Subsamples / Subsampling Threshold",tfNumSubSamples);
  updateSubSamplingStuff();
  mainVertical.add(miscPanel);
  add(mainVertical);
}

private void init ( ) { Box mainVertical = Box . createVerticalBox ( ) ; fillFieldValues ( ) ; weightSizeMaxSlider . setMajorTickSpacing ( 25 ) ; weightSizeMaxSlider . setPaintTicks ( true ) ; weightSizeMaxSlider . setPaintLabels ( true ) ; weightSizeMinSlider . setMajorTickSpacing ( 25 ) ; weightSizeMinSlider . setPaintTicks ( true ) ; weightSizeMinSlider . setPaintLabels ( true ) ; addActionListeners ( ) ; colorPanel . add ( cbChangeColor ) ; colorIndicator . setSize ( 20 , 20 ) ; colorPanel . add ( colorIndicator ) ; colorPanel . add ( changeColorButton ) ; setIndicatorColor ( ) ; LabelledItemPanel guiPanel = new LabelledItemPanel ( ) ; guiPanel . addItem ( "Color:" , colorPanel ) ; guiPanel . addItem ( "Weight size max" , weightSizeMaxSlider ) ; guiPanel . addItem ( "Weight size min" , weightSizeMinSlider ) ; mainVertical . add ( guiPanel ) ; mainVertical . add ( new JSeparator ( JSeparator . HORIZONTAL ) ) ; LabelledItemPanel miscPanel = new LabelledItemPanel ( ) ; miscPanel . addItem ( "Network time step" , timeStepField ) ; miscPanel . addItem ( "Synapse visibility threshold" , tfSynapseVisibilityThreshold ) ; nudgeAmountField . setColumns ( 3 ) ; miscPanel . addItem ( "Nudge Amount" , nudgeAmountField ) ; miscPanel . addItem ( "Wand radius" , wandRadiusField ) ; miscPanel . add ( new JSeparator ( JSeparator . HORIZONTAL ) ) ; miscPanel . addItem ( "Use Subsampling for large neuron groups" , cbUseSubSampling ) ; miscPanel . addItem ( "Number of Subsamples / Subsampling Threshold" , tfNumSubSamples ) ; updateSubSamplingStuff ( ) ; mainVertical . add ( miscPanel ) ; add ( mainVertical ) ; }
this method initializes the components on the panel .
