});
}
private Component buildBriefModePanel(UserPreferences prefs, ValueModel trigger)
{
SpinnerModelAdapter mdlSentences = new SpinnerModelAdapter(new BoundedRangeAdapter(
new BufferedValueModel(new PropertyAdapter(prefs, UserPreferences.PROP_BRIEF_SENTENCES),
trigger), 0, 1, 10));
JSpinner spSentences = new JSpinner(mdlSentences);
SpinnerModelAdapter mdlMaxLength = new SpinnerModelAdapter(new BoundedRangeAdapter(
new BufferedValueModel(new PropertyAdapter(prefs, UserPreferences.PROP_BRIEF_MAX_LENGTH),
trigger), 0, 100, 1000));
mdlMaxLength.setStepSize(100);
JSpinner spMaxLength = new JSpinner(mdlMaxLength);