aspose file tools*
The moose likes Swing / AWT / SWT and the fly likes custom jcomboxeditor fires automatic jcombox actionperform action Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login


Win a copy of Spring in Action this week in the Spring forum!
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "custom jcomboxeditor fires automatic jcombox actionperform action" Watch "custom jcomboxeditor fires automatic jcombox actionperform action" New topic
Author

custom jcomboxeditor fires automatic jcombox actionperform action

antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

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



Darryl Burke
Bartender

Joined: May 03, 2008
Posts: 4640
    
    5

Please BeForthrightWhenCrossPostingToOtherSites
http://www.java-forums.org/awt-swing/80504-custom-jcomboxeditor-fires-automatic-jcombox-actionperform-action.html
http://stackoverflow.com/questions/17935590/custom-jcomboxeditor-fires-automatic-jcombox-actionperform-action


luck, db
There are no new questions, but there may be new answers.
antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

i just did this for getting help forgive me (but still i don't get help)
antonio espinosa
Ranch Hand

Joined: Jul 30, 2012
Posts: 30

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
 
I agree. Here's the link: http://aspose.com/file-tools
 
subject: custom jcomboxeditor fires automatic jcombox actionperform action