I got a JComboBox and a AppXHyperlink, both in separate classes. I’d like to set the hyperlink text with the selected item from the JComboBox (to know what I’ve selected). Is there an easy way for doing this? By using actionPerformed ?
I got a JComboBox and a AppXHyperlink, both in separate classes. I’d like to
Share
You can hold the reference of hyperlink in combobox, and change its text with action performed.
Or you can fireEvent about changing hyperlink that will be update in your hyperlink class by listener, look into pattern Observer.