[SOLVED] Item too big for JComboBox
Is there a simple way to prevent the JComboBox from resizing in order to display a really long value? I have a combo box that displays the absolute path of a given file. The problem is that paths can get rather long. The panel my combo box is placed in has a minimum size, but no maximum size. So when the user resizes the window, it's possible that the combo box will grow along with the window.
I'd like the combo box to stay within the bounds of the container it's in. Maybe display elipses (...) and when the user hovers over the item, the full text is displayed as a hint. Any ideas?