void () { remove(myAddPanel); remove(myAddLabel); int i = 1; for (TaskButton tag : myTags) { if (tag.isVisible() && tag.myTask != null) { tag.myOrder = i++; tag.updateButton(); } add(tag); } add(myAddPanel); add(myAddLabel); updateAddLabel(); }