Is it possible to implement this drop-down box in a Java Swing application? I kept searching for this from the web, but I cant find relevant info. I cant make the optgroup function in neither JComboBox nor JList. Tell me how to do it, if you have this experience.
Thanks in advance!
<select>
<optgroup label="Swedish Cars">
<option value="volvo">Volvo</option>
<option value="saab">Saab</option>
</optgroup>
<optgroup label="German Cars">
<option value="mercedes">Mercedes</option>
<option value="audi">Audi</option>
</optgroup>
</select>