View Single Post
  #2 (permalink)  
Old 10-06-2008, 06:07 PM
Norm's Avatar
Norm Norm is offline
Senior Member
 
Join Date: Jun 2008
Location: Heredia, Costa Rica
Posts: 2,225
Norm is on a distinguished road
Quote:
String title = tab.getTitleAt(tab.getSelectedIndex());
String update = title + "*";
The problem is here.
What if title currently has an "*" at the end? This code will always add another "*".
You need to save the original title in a variable. Then either use the original or the original + "*" when you setTitle
Reply With Quote