RESOLVED (jComboBox, JTextField, jFileChooser) as table editor
resolved! I overrode the getCellEditorValue() and it started to work problem free.
In the attached code below, for multiple rows of same table column, I am trying to set an Editable comboBox as editor for first row ( so that the user can select from the available choices or type its own), a filechooser for second row and the default textFiled for the rest of rows.
The Problem: and steps to reproduce it:
1- Run the code, 2- click on second row and choose a folder (the row turns yellow) 3- now click on first row to select the type of movie (just click , no need to type anything or to choose) 4- now make another click back on second row(Folder selection)
you will see the contents of this row will be copied to first row?!
I know there are many things that I did not do right, perhaps handling swings which are not thread safe, handling references and so on. I was wondering if you guys can help me to fix this bug and turn this code to something solid.