public static void main(String[] args) { try { System.out.println(XPUtils.isXPStyleOn()); } catch (UnsupportedOperationException e) { System.out.println("Unknown XP style because " + e.getMessage()); } try { System.out.println(XPUtils.getColorName()); } catch (UnsupportedOperationException e) { System.out.println("Unknown XP color because " + e.getMessage()); } System.out.println(XPUtils.getXPStyleDll()); } }