
193Uitools
callbacks. Remember that Java uses 0-based indexing, so tab #1 is actually the second tab.
HTML is accepted just as in other Swing components:
% Get the underlying Java reference using FindJObj
jTabGroup = findjobj('class','tabgroup');
% A direct alternative for getting jTabGroup
jTabGroup = getappdata(handle(hTabGroup),'JTabbedPane');
% Another direct alternative for getting jTabGroup
callback = get(getappdata(tab1,'TabGroupChildListener'),'Callback');
jTabGroup = callback{3}.getComponent;
% Now use the Java reference to set the title, tooltip etc.
jTabGroup.setTitleAt(1,'Tab #2');
jTabGroup.setTitleAt(1,'<html><b><i><font size=+2>Tab ...