public SRNCreationDialog(final NetworkPanel panel){
  this.panel=panel;
  GridBagConstraints gbc=new GridBagConstraints();
  setTitle("Build Simple Recurrent Network");
  gbc.anchor=GridBagConstraints.NORTHWEST;
  gbc.fill=GridBagConstraints.HORIZONTAL;
  srnPanel.setMyNextItemRow(1);
  gbc.gridy=srnPanel.getMyNextItemRow();
  gbc.gridx=0;
  sectionSeparator("Network Parameters",gbc,1);
  tfNumInputs.setColumns(5);
  srnPanel.addItem("Number of input nodes:",tfNumInputs);
  srnPanel.addItem("Hidden Neuron Type:",hiddenNeuronTypes,2);
  srnPanel.addItem("Number of hidden nodes:",tfNumHidden);
  srnPanel.addItem("Output Neuron Type:",outputNeuronTypes,2);
  srnPanel.addItem("Number of output nodes:",tfNumOutputs);
  fillFieldValues();
  Action helpAction=new ShowHelpAction("Pages/Network/network/srn.html");
  addButton(new JButton(helpAction));
  setContentPane(srnPanel);
}

public SRNCreationDialog ( final NetworkPanel panel ) { this . panel = panel ; GridBagConstraints gbc = new GridBagConstraints ( ) ; setTitle ( "Build Simple Recurrent Network" ) ; gbc . anchor = GridBagConstraints . NORTHWEST ; gbc . fill = GridBagConstraints . HORIZONTAL ; srnPanel . setMyNextItemRow ( 1 ) ; gbc . gridy = srnPanel . getMyNextItemRow ( ) ; gbc . gridx = 0 ; sectionSeparator ( "Network Parameters" , gbc , 1 ) ; tfNumInputs . setColumns ( 5 ) ; srnPanel . addItem ( "Number of input nodes:" , tfNumInputs ) ; srnPanel . addItem ( "Hidden Neuron Type:" , hiddenNeuronTypes , 2 ) ; srnPanel . addItem ( "Number of hidden nodes:" , tfNumHidden ) ; srnPanel . addItem ( "Output Neuron Type:" , outputNeuronTypes , 2 ) ; srnPanel . addItem ( "Number of output nodes:" , tfNumOutputs ) ; fillFieldValues ( ) ; Action helpAction = new ShowHelpAction ( "Pages/Network/network/srn.html" ) ; addButton ( new JButton ( helpAction ) ) ; setContentPane ( srnPanel ) ; }
constructs a labeled item panel dialog for the creation of a simple recurrent network .
