|
String original = tab.getTitleAt(tab.getSelectedIndex());
if(!(original.equals(original + "*"))){
tab.setTitleAt(tab.getSelectedIndex(),original + "*");
}
else{
tab.setTitleAt(tab.getSelectedIndex(),original);
}
I have also tried == instead of .equals . But i doesn't work.
__________________
Never give up! To view links or images in signatures your post count must be 10 or greater. You currently have 0 posts.
|