class DateRangeValidator implements Validator<String> {

        private final ComboBoxModel combo;

        public DateRangeValidator(ComboBoxModel comboBoxModel) {
            this.combo = comboBoxModel;
        }

        @Override
        public void validate(Problems prblms, String string, String t) {<FILL_FUNCTION_BODY>}

        public Class<String> modelType() {
            return String.class;
        }
    }

            Integer i = 0;
            try {
                i = Integer.parseInt(t);
            } catch (NumberFormatException e) {
                prblms.add("Number can't be parsed");
            }
            TimeUnit tu = getSelectedTimeUnit(combo);
            long timeInMilli = (long) getTimeInMilliseconds(t, tu);
            long limit = (long) (bounds.getHigh() - bounds.getLow());
            if (i < 1 || timeInMilli > limit) {
                String message = NbBundle.getMessage(DynamicSettingsPanel.class,
                    "DateRangeValidator.NotInRange", i, 1, tu.convert(limit, TimeUnit.MILLISECONDS));
                prblms.add(message);
            }
        
<methods>public void <init>() ,public void <init>(java.awt.LayoutManager) ,public void <init>(boolean) ,public void <init>(java.awt.LayoutManager, boolean) ,public javax.accessibility.AccessibleContext getAccessibleContext() ,public javax.swing.plaf.PanelUI getUI() ,public java.lang.String getUIClassID() ,public void setUI(javax.swing.plaf.PanelUI) ,public void updateUI() <variables>private static final java.lang.String uiClassID