I am upgrading a Java project from Java 8 to Java 11. One applet uses SwingX 1.6.3; the Swing version is not being changed at this time.
The applet UI has a Swing JComboBox
that gets dynamically populated. When the user selects a music file, the combo box loads the rest of the tracks from the appropriate album. The combo box uses a custom renderer that extends DefaultListCellRenderer
to show the track titles in its list.
In Java 8, this control properly renders the text tiles of the tracks. The applet uses Jide 3.5.6 LookAndFeelFactory
with XERTO_STYLE
.
In Java 11, this control displays a few musical notes, that bear no resemblance to the music. The applet uses Jide 3.7.15 VSNET_STYLE
. The list cell renderer has not been changed. I have not found any graphical resource that resembles musical notes. It seems the renderer is displaying an icon (from an unknown source) instead of the desired string.
I’ve traced through the custom renderer and determined it is setting the correct track titles and passing these to a call to the javax.swing.ListCellRenderer
method getListCellRendererComponent
. I believe nothing else going into this call has changed.
So why would the displayed component switch from text to a graphic, and how do I switch it back?