posted 21 years ago
To answer your question about the combo box. You can't... At least not with the default JComboBox. You could do this by extending ComboBoxUI (or one of the many classes this class calls) to replace the JList that it is using with a series of JLabels in a JScrollPane. But I think that it's better to just rephrase the text in your JComboBox so it isn't so long. Most users aren't going to take the time to scroll through long sentences in a ComboBox. And if the text can't be cut down to fit, I'd use something like a series of JRadioButtons of JCheckBoxes in a ButtonGroup and put them in a JScrollPane.
-Nate
-Nate
Write once, run anywhere, because there's nowhere to hide! - /. A.C.