From: Sherif Elnabarawy on 20 Apr 2010 10:35 i need to change the tab button's background color other than this white color to match the background of the gui .. unfortunately i have to do this .. any help to edit this java object ?! Thanks in advance , Sherif Elnabarawy.
From: Sherif Elnabarawy on 20 Apr 2010 10:36 i need to change the tab button's background color other than this white color to match the background of the gui .. unfortunately i have to do this .. any help to edit this java object ?! Thanks in advance , Sherif Elnabarawy.
From: Yair Altman on 20 Apr 2010 15:59 "Sherif Elnabarawy" <sherif223(a)hotmail.com> wrote in message <hqke4m$lf4$1(a)fred.mathworks.com>... > i need to change the tab button's background color other than this white color to match the background of the gui .. > unfortunately i have to do this .. > any help to edit this java object ?! > > > Thanks in advance , > Sherif Elnabarawy. Theoretically, you would set the BackgroundColor property of the tab object - unfortunately this property is read-only (='none'). Theoretically again, you would get the Java handle of the tab-group using FindJObj utility (this returns a javahandle_withcallbacks.com.mathworks.hg.peer.FigureComponentContainer), move down the component's hierarchy to find the JTabbedPane component (a com.mathworks.hg.peer.UITabGroupPeer$1 object) and use its setBackgroundAt(tabIndex,jColor) method to set the background color. Unfortunately again, it seems that MathWorks modified com.mathworks.hg.peer.UITabGroupPeer$1 so that the white background remains and cannot be modified. Bottom line - I don't know how this can be done. I will be happy to learn if someone does find a way to do this. Yair Altman http://UndocumentedMatlab.com
|
Pages: 1 Prev: return variables in GUIDE GUI Next: generating a pseudorandom order of trials |