public CommonTurnoutOperationConfig(TurnoutOperation op){
  super(op);
  myOp=(CommonTurnoutOperation)op;
  maxTriesSpinner=new JSpinner();
  intervalSpinner=new JSpinner();
  Box vbox=Box.createVerticalBox();
  Box hbox1=Box.createHorizontalBox();
  Box hbox2=Box.createHorizontalBox();
  vbox.add(hbox2);
  vbox.add(hbox1);
  vbox.add(Box.createVerticalGlue());
  hbox1.add(new JLabel(Bundle.getMessage("Interval")));
  hbox1.add(Box.createHorizontalGlue());
  intervalSpinner.setMinimumSize(new Dimension(100,20));
  intervalSpinner.setModel(new SpinnerNumberModel(myOp.getInterval(),CommonTurnoutOperation.minInterval,CommonTurnoutOperation.maxInterval,CommonTurnoutOperation.intervalStepSize));
  hbox1.add(intervalSpinner);
  hbox2.add(new JLabel(Bundle.getMessage("TimesToTry")));
  hbox2.add(Box.createHorizontalGlue());
  maxTriesSpinner.setMinimumSize(new Dimension(100,20));
  maxTriesSpinner.setModel(new SpinnerNumberModel(myOp.getMaxTries(),CommonTurnoutOperation.minMaxTries,CommonTurnoutOperation.maxMaxTries,1));
  hbox2.add(maxTriesSpinner);
  Box hbox3=Box.createHorizontalBox();
  hbox3.add(Box.createHorizontalStrut(150));
  vbox.add(hbox3);
  add(vbox);
}

public CommonTurnoutOperationConfig ( TurnoutOperation op ) { super ( op ) ; myOp = ( CommonTurnoutOperation ) op ; maxTriesSpinner = new JSpinner ( ) ; intervalSpinner = new JSpinner ( ) ; Box vbox = Box . createVerticalBox ( ) ; Box hbox1 = Box . createHorizontalBox ( ) ; Box hbox2 = Box . createHorizontalBox ( ) ; vbox . add ( hbox2 ) ; vbox . add ( hbox1 ) ; vbox . add ( Box . createVerticalGlue ( ) ) ; hbox1 . add ( new JLabel ( Bundle . getMessage ( "Interval" ) ) ) ; hbox1 . add ( Box . createHorizontalGlue ( ) ) ; intervalSpinner . setMinimumSize ( new Dimension ( 100 , 20 ) ) ; intervalSpinner . setModel ( new SpinnerNumberModel ( myOp . getInterval ( ) , CommonTurnoutOperation . minInterval , CommonTurnoutOperation . maxInterval , CommonTurnoutOperation . intervalStepSize ) ) ; hbox1 . add ( intervalSpinner ) ; hbox2 . add ( new JLabel ( Bundle . getMessage ( "TimesToTry" ) ) ) ; hbox2 . add ( Box . createHorizontalGlue ( ) ) ; maxTriesSpinner . setMinimumSize ( new Dimension ( 100 , 20 ) ) ; maxTriesSpinner . setModel ( new SpinnerNumberModel ( myOp . getMaxTries ( ) , CommonTurnoutOperation . minMaxTries , CommonTurnoutOperation . maxMaxTries , 1 ) ) ; hbox2 . add ( maxTriesSpinner ) ; Box hbox3 = Box . createHorizontalBox ( ) ; hbox3 . add ( Box . createHorizontalStrut ( 150 ) ) ; vbox . add ( hbox3 ) ; add ( vbox ) ; }
create the config jpanel , if there is one , to configure this operation type
