Angel Herráez a écrit :
Yes, it's just that the code is not done for it.However, I am seing that the submenus entries themselves don't accept an image (although there is the place for it). Any way to do them? I just assumed the same notation, e.g. In org.openscience.jmol.app.Jmol.java, try replacing the line n° 1173: JMenu menu = guimap.newJMenu(key); by the following lines : JMenu menu = guimap.newJMenu(key); ImageIcon f = JmolResourceHandler.getIconX(key + "Image"); if (f != null) { menu.setHorizontalTextPosition(SwingConstants.RIGHT); menu.setIcon(f); } Not 100% sure it works, but you can try. If it doesn't work, I will try to modify the code once you have committed the icons and properties. I was thinking of only some submenus for example, like the language submenu with language flags, the colors menus, ... Nico |
------------------------------------------------------------------------- This SF.Net email is sponsored by the Moblin Your Move Developer's challenge Build the coolest Linux based applications with Moblin SDK & win great prizes Grand prize is a trip for two to an Open Source event anywhere in the world http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________ Jmol-developers mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/jmol-developers
