I have the String for a combobox item, but when the user clicks the table, the combobox must automatically select the category of that certain item. However, I came across that there is no getIndex function as I put below. How can I retrieve the index from this string?
private void TabelaMouseClicked(java.awt.event.MouseEvent evt) {
// Click na tabela para selecionar produto:
if (Tabela.getSelectedRow() != -1){
txt_descricao.setText(Tabela.getValueAt(Tabela.getSelectedRow(), 1).toString());
cb_marca.getIndexOf("teste");
}
}