Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

JComboBox - How to use the selectedItemChanged() method

843807Aug 13 2001 — edited Aug 13 2001
I am trying to find a way to call a specific function (that I wrote) when I select an item from a ComboBox.

The following method came to my attention
JComboBox.selectedItemChanged()
which is called when the selected item changes. Its default implementation notifies the item listeners.

This method is private so I can't override it.
Could you please let me know if there is anyway to call a function when the selected item is changed. (With or without using the method mentioned immetiatelly above)

Thanks,
Petros
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Sep 10 2001
Added on Aug 13 2001
1 comment
102 views