MATLAB: Two knob slider for a GUI or app

appui

Hello,
For sorting out timing events I need a slider with two knobs, see picture taken from internet. Anyone a suggestion or a trick how implement this (UIspace) efficient in a matlab UI or App. Now it is implemented with two sliders: one for the min value and one for the max value. This is not so space efficient when you need of 10 these slider pairs.
Thanks,
Patrick

Best Answer

Thanks Adam and Peter for your suggestions. I build the following code, had some troubles to find the position properties of the RangeSlider. So this is what I need...
Patrick
function tryoutrangeslider2
Labels = {'January','February','March','April','May'};
Mins = [1 1 1 1 1];
Maxs = [31 28 31 30 31];
hF = figure;
for i=1:length(Labels)
% more direct instantiation
% jRS = com.jidesoft.swing.RangeSlider(0,100,20,70); %min,max,low,high
% [jRangeSlider{i}, hRangeSlider{i}] = javacomponent(jRS,[0,0,200,80],hF);%posx,posy,width,height
jRS = com.jidesoft.swing.RangeSlider;
[jRangeSlider{i}, hRangeSlider{i}] = javacomponent(jRS,[],hF);
% modify rangeslider position
set(hRangeSlider{i},'Position',[100,11+(i-1)*80,200,80])
% modify range slider properties
set(jRangeSlider{i},'Maximum',Maxs(i),...
'Minimum',Mins(i),...
'LowValue',10,...
'HighValue',20,...
'Name',Labels{i},...
'MajorTickSpacing',5,...
'MinorTickSpacing',1, ...
'PaintTicks',true,...
'PaintLabels',true, ...
'StateChangedCallback',{@jRangeSlider_Callback,i});
% add text label
uicontrol(hF,'Style','Text','Position',[5,53+(i-1)*80,100,15],'String',Labels{i})
end
end
function jRangeSlider_Callback(jRangeSlider,event,i)
disp([jRangeSlider.Name ' ,extra parameter =' num2str(i)])
end
%