()
| 177 | } |
| 178 | |
| 179 | private void setLookandFeel() throws Exception { |
| 180 | if (PacketProxyUtility.getInstance().isUnix()) { |
| 181 | |
| 182 | System.setProperty("awt.useSystemAAFontSettings", "on"); |
| 183 | System.setProperty("swing.aatext", "true"); |
| 184 | } |
| 185 | |
| 186 | for (LookAndFeelInfo clInfo : UIManager.getInstalledLookAndFeels()) { |
| 187 | |
| 188 | if ("Nimbus".equals(clInfo.getName())) { |
| 189 | |
| 190 | UIManager.setLookAndFeel(clInfo.getClassName()); |
| 191 | break; |
| 192 | } |
| 193 | } |
| 194 | |
| 195 | // フォント設定をデフォルトに復元(シンタックスハイライト機能による影響を防ぐため) |
| 196 | FontManager.getInstance().restoreUIFont(); |
| 197 | FontManager.getInstance().restoreFont(); |
| 198 | |
| 199 | UIManager.getLookAndFeelDefaults().put("defaultFont", FontManager.getInstance().getUIFont()); |
| 200 | // OptionPaneのロケール |
| 201 | JOptionPane.setDefaultLocale(I18nString.getLocale()); |
| 202 | |
| 203 | setIconForWindows(); |
| 204 | addShortcutForWindows(); |
| 205 | addShortcutForMac(); |
| 206 | addDockIconForMac(); |
| 207 | } |
| 208 | |
| 209 | /** |
| 210 | * Windowsにアイコンを表示する |
no test coverage detected