Win a copy of Re-engineering Legacy Software this week in the Refactoring forum
or Docker in Action in the Cloud/Virtualization forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

custom jcomboxeditor fires automatic jcombox actionperform action

 
antonio espinosa
Ranch Hand
Posts: 30
Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
as the tittle says when i select an item from the jcombobox pop up menu nothing bad happens but when i come back to the editor(to type text again) then action performed event fires immediately for no reason.

i create a custom jcombox model and editor (and founded some lines of code that augmented the problem an automatic fired action event).

the example (sscce)


my editor


my model



 
antonio espinosa
Ranch Hand
Posts: 30
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
i just did this for getting help forgive me (but still i don't get help)
 
antonio espinosa
Ranch Hand
Posts: 30
Netbeans IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
now i fixed the problem and modified the behavior which i didn't wanted (when you type text in a editable combobox the first occurrence in the list is placed as the text in the editor) i also modified some other problems which fired jcombobox action performed events for no reason. all of this problems where in the model and one at the editor.


and the model(stores data in an arrayList)


i would be glad to see the inspection of this code for improvements, i hope some body can use this and save some time
 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic