public void selectVariableAndSetValueInSearchTab(String variableNameEndsWith, double value) {
    JPanelFixture searchPanel = focusedWindow.panel("SearchPanel");
    JPanelFixture searchVarListVarPanel = searchPanel.panel("Search");

    JSpinnerNameEndsWithMatcher matcher = new JSpinnerNameEndsWithMatcher(variableNameEndsWith);

    JSpinnerFixture spinner = searchVarListVarPanel.spinner(matcher);

    spinner.click();
    spinner.enterTextAndCommit(String.valueOf(value));
  }
  public void selectVariableInSearchTab(String variableNameEndsWith) {
    JPanelFixture searchPanel = focusedWindow.panel("SearchPanel");
    JPanelFixture searchVarListVarPanel = searchPanel.panel("Search");

    JSpinnerNameEndsWithMatcher matcher = new JSpinnerNameEndsWithMatcher(variableNameEndsWith);

    // Focusing the spinner seems to do the trick, though this seems hackish and brittle.

    JSpinnerFixture spinner = searchVarListVarPanel.spinner(matcher);
    spinner.focus();
  }