List of usage examples for java.awt Choice removeAll
public void removeAll()
From source file:mesquite.zephyr.lib.GarliRunner.java
public void preparePartitionChoice(Choice partitionChoice, int partitionScheme) { partitionChoice.removeAll(); switch (partitionScheme) { case partitionByCharacterGroups: ZephyrUtil.setPartitionChoice(data, partitionChoice); break;/*from w ww . j a v a 2 s . c o m*/ case partitionByCodonPosition: partitionChoice.addItem(codpos1Subset); partitionChoice.addItem(codpos2Subset); partitionChoice.addItem(codpos3Subset); partitionChoice.addItem(nonCodingSubset); break; case noPartition: partitionChoice.addItem("All Characters"); break; default: partitionChoice.addItem("All Characters"); } }