Say I wanted to add a JComboBox (or more general a JPanel, perhaps?) to a JRadioButton, what would be the easiest way to do it?
Pseudo-wise, a radio button group where one of them includes multiple choices would look something like:
O The weather
O Parties
O {meta, pseudo}-science
O Animals
where the {} would be a dropdown list. The trick here is that if one clicks either the dropdown list or the label ‘-science’ the radio button would be actived and showing the UI border and all of that fancy stuff.
Thanks 🙂
I hate giving answers like this, but in this case I feel it is best…
This seems like a very non-standard UI component. It would be much better UX if you just did:
Users will not be familiar with the type of component you are proposing, and it is very inconsistent with the other options in the list. I highly recommend using a more standard convention.
Against my better judgement, I present you with
ComboBoxRadioButton:It is not complete, nor do I suggest using it, but it looks like what you want.