From: Erik V. <eri...@hc...> - 2007-07-28 16:09:17
|
I have added a new config file called games.properties, in which the available games are listed with comments about the status of each one. The file contains a short comment (Note) and a long one (Description). The Note is added to the game name in the dropdown (it must be separated by at least one space - the game name is retrieved by truncation at the first space). The Description is too long to fit there, and was intended to appear as a tooltip, but that does not work. (To make the tooltip, I changed the text into a JLabel, subclassed to have toString() return the label text, and put the description as a tooltip into that label. It seems the JComboBox suppresses the tooltips of its components). Unless someone finds a way to use the Description text, it could stay as a comment in the config file. Erik Vos |