Hello there. I'm making an airline ticket reservation program using Java and one of the features that I'll be using is a radio button and a combobox. How can I possibly link these two? particularly if the user clicks the "one-way-trip" button the combobox will get disabled. and when the user clicks the "round-trip" the combobox will be activated. ? like in the attached image. all i need is a code inside the if-else of the radio button when its clicked. Thanks for the great help Daniweb!

Does the combobox class have a method that will disable/enable it?
Can you call that method in a listener added to the radiobutton?