* Metal look and feel's getName() property does not distinguish between versions correctly.
* A bug has been submitted to the Sun Java bug database and will be reviewed.
*/
public static String getMetalTheme() {
try {
MetalLookAndFeel metalLNF = (MetalLookAndFeel)UIManager.getLookAndFeel();
Method getCurrentTheme = metalLNF.getClass().getMethod("getCurrentTheme", new Class[0]);
MetalTheme currentTheme = (MetalTheme)getCurrentTheme.invoke(metalLNF, new Object[0]);
return "Metal/" + currentTheme.getName();
} catch(NoSuchMethodException e) {
// must be Java 1.4 because getCurrentTheme() method does not exist
// therefore the theme of interest is "Steel"