if(UIManager.getLookAndFeel().isSupportedLookAndFeel()){//使用系统的文件管理器 finalStringplatform= UIManager.getSystemLookAndFeelClassName(); // If the current Look & Feel does not match the platform Look & Feel, // change it so it does. if (!UIManager.getLookAndFeel().getName().equals(platform)) { try { UIManager.setLookAndFeel(platform); } catch (Exception exception) { exception.printStackTrace(); } } }