Posts by Lucas Durigan • 17 points
4 posts
-
0
votes1
answer76
viewsQ: Indexoutofbounds when filling an Abstracttablemodel
I have a AbstractTableModel who owns a List filled by a method that searches the data in the database. The method that fills the List has two overloads: one without any parameter (that searches all…
-
0
votes1
answer1097
viewsQ: Set selected Combobox item as clicked on jTable
I am trying to fill in the form fields as per the item clicked on jTable. Text fields are normally filled in, but the combobox remains at the selected default value. //método que preenche a comboBox…
-
0
votes1
answer2116
viewsQ: Popular Jcombobox with Strings and Ids brought from the database
I need a popular JComboBox with the data brought from a table in my Mysql Database, but I don’t know how to leave an item attached to the corresponding ID. Example: ID 1 refers to the ADM profile…
-
1
votes1
answer303
viewsQ: Error when comparing an Edittext to a String
I am trying to compare the text inserted in an Edittext with an item in my Arraylist, but the condition is never true. int aux=-1; for (int i = 0; i < lista2.size(); i++) { if…