private void txtSearchKeyTyped(java.awt.event.KeyEvent evt) {
if (jComboSelection.getSelectedIndex() == 0)
{
if (txtSearch.getText().length() == 4)
{
} else if (txtSearch.getText().length() == 5)
{
txtSearch.remove(5);
}
}
}
This is running twice; i.e trying to delete index 5 twice == error :/ .. can someone tell me how you can make it run once please? ... and is this the best way to do it?