private void selectFirstConfig() { if (isConfigListEmpty()) { disableDeleteButton(); } else { enableDeleteButton(); configList.setSelectedIndex(0); } }
private void selectLastConfig() { int lastIndex = configList.getItemCount() - 1; configList.setSelectedIndex(lastIndex); }