|
uD.PctText = uicontrol('Style','Edit',...
'Units','Normalized',...
'Position',sPos,...
'ForegroundColor',[1.0 1.0 0.8],...
'BackgroundColor',get(figure,'Color'),...
'FontSize',10,...
'String','0.0');
jPct = findjobj(uD.PctText);
I can see get(jPct.Border) has a pre-defined color:
LineColor = [0.670588 0.678431 0.701961]
I attempt to change it using set(jPct.Border,'LineColor',[0 0 0]). This gives no errors or warnings however when I look back into get(jPct.Border) LineColor remains unchanged, and the border in the GUI around the edit box is still gray.
Sorry if this is basic, I have never used Java before.
|