public static void selectMe(ItemController other){ if (item != null) { item.deselect (); if (item.name != other.name) { item = other; text = item.getText(); } else { item = null; text = "none"; } } else { item = other; text = item.getText(); } }
public static void selectMe(ItemController other) { if (item != null) { item.deselect(); if (item.name != other.name) { item = other; text = item.getText(); } else { item = null; text = "none"; } } else { item = other; text = item.getText(); } }