• Post Reply Bookmark Topic Watch Topic
  • New Topic
programming forums Java Mobile Certification Databases Caching Books Engineering Micro Controllers OS Languages Paradigms IDEs Build Tools Frameworks Application Servers Open Source This Site Careers Other Pie Elite all forums
this forum made possible by our volunteer staff, including ...
Marshals:
  • Campbell Ritchie
  • Jeanne Boyarsky
  • Ron McLeod
  • Paul Clapham
  • Liutauras Vilda
Sheriffs:
  • paul wheaton
  • Rob Spoor
  • Devaka Cooray
Saloon Keepers:
  • Stephan van Hulst
  • Tim Holloway
  • Carey Brown
  • Frits Walraven
  • Tim Moores
Bartenders:
  • Mikalai Zaikin

custom jcomboxeditor fires automatic jcombox actionperform action

 
Ranch Hand
Posts: 30
Netbeans IDE
  • Likes 1
  • Mark post as helpful
  • send pies
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
    Number of slices to send:
    Optional 'thank-you' note:
  • 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
 
Consider Paul's rocket mass heater.
reply
    Bookmark Topic Watch Topic
  • New Topic