public ProjectionPreferencesDialog(Projector projector){
  this.projector=projector;
  String toleranceToolTip="Only add a new datapoint if it is at least this " + "far from an existing datapoint in the high-dim space";
  JLabel toleranceLabel=new JLabel("New datapoint tolerance");
  tolerance.setToolTipText(toleranceToolTip);
  toleranceLabel.setToolTipText(toleranceToolTip);
  mainPanel.addItemLabel(toleranceLabel,tolerance);
  if (projector.getProjectionMethod() instanceof ProjectCoordinate) {
    mainPanel.addItem("Coordinate projection auto-find mode",autoFind);
  }
  fillFieldValues();
  setContentPane(mainPanel);
}

public ProjectionPreferencesDialog ( Projector projector ) { this . projector = projector ; String toleranceToolTip = "Only add a new datapoint if it is at least this " + "far from an existing datapoint in the high-dim space" ; JLabel toleranceLabel = new JLabel ( "New datapoint tolerance" ) ; tolerance . setToolTipText ( toleranceToolTip ) ; toleranceLabel . setToolTipText ( toleranceToolTip ) ; mainPanel . addItemLabel ( toleranceLabel , tolerance ) ; if ( projector . getProjectionMethod ( ) instanceof ProjectCoordinate ) { mainPanel . addItem ( "Coordinate projection auto-find mode" , autoFind ) ; } fillFieldValues ( ) ; setContentPane ( mainPanel ) ; }
construct the preference dialog .
