【发布时间】:2016-01-28 11:48:25
【问题描述】:
我正在使用其中一种形式的标签。
如果在保存表单时发生任何错误,那么标签颜色应该会改变。
我使用的代码如下:
for(Integer tabIndex: errorTabIndex){
if(index==0){
tabs.setSelectedIndex(tabIndex);
}
Button c = (Button) tabs.getTabsContainer().getComponentAt(tabIndex);
c.setUIID("Tab_button_error");
c.repaint();
index++;
}
这段代码设置了新的 UIID,但是当我点击选项卡而不是坚持新的 UIID 样式时,它重置了以前的 UIID 样式。
【问题讨论】:
-
为语法高亮添加了java标签
标签: java codenameone