Here you can find the source of resetPhaseBox(JComboBox phaseBox)
Parameter | Description |
---|---|
phaseBox | the phaseBox object which is to be reset. |
static void resetPhaseBox(JComboBox phaseBox)
//package com.java2s; //License from project: Open Source License import javax.swing.JComboBox; public class Main { /**/*from w ww .j ava2 s . c o m*/ * refreshing the drop down to include phases of the selected schema by clearing out * the previous items and adding new ones * @param phaseBox the phaseBox object which is to be reset. */ static void resetPhaseBox(JComboBox phaseBox) { if (!phaseBox.isEnabled()) phaseBox.setEnabled(true); while (phaseBox.getItemCount() != 1) { phaseBox.removeItemAt(phaseBox.getItemCount() - 1); } } }