{"action":"closed","issue":{"url":"https://api.github.com/repos/fourthline/mmlTools/issues/27","labels_url":"https://api.github.com/repos/fourthline/mmlTools/issues/27/labels{/name}","comments_url":"https://api.github.com/repos/fourthline/mmlTools/issues/27/comments","events_url":"https://api.github.com/repos/fourthline/mmlTools/issues/27/events","html_url":"https://github.com/fourthline/mmlTools/issues/27","id":52590983,"number":27,"title":"LookAndFeelの他OSサポート","user":{"login":"hnhr1995","id":9605306,"avatar_url":"https://avatars.githubusercontent.com/u/9605306?v=3","gravatar_id":"","url":"https://api.github.com/users/hnhr1995","html_url":"https://github.com/hnhr1995","followers_url":"https://api.github.com/users/hnhr1995/followers","following_url":"https://api.github.com/users/hnhr1995/following{/other_user}","gists_url":"https://api.github.com/users/hnhr1995/gists{/gist_id}","starred_url":"https://api.github.com/users/hnhr1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/hnhr1995/subscriptions","organizations_url":"https://api.github.com/users/hnhr1995/orgs","repos_url":"https://api.github.com/users/hnhr1995/repos","events_url":"https://api.github.com/users/hnhr1995/events{/privacy}","received_events_url":"https://api.github.com/users/hnhr1995/received_events","type":"User","site_admin":false},"labels":[],"state":"closed","locked":false,"assignee":null,"milestone":null,"comments":5,"created_at":"2014-12-21T09:40:14Z","updated_at":"2015-01-10T12:22:03Z","closed_at":"2015-01-10T12:22:03Z","body":"毎日、お疲れ様です。\r\n\r\nMacbookあったので、色々実験してみました。\r\nその中、今のLookAndFeel設定がWindows向けになったので他のOS互換が難いと思いました。\r\n\r\nそれで本論に行くと\r\n\r\nMabiicco.javaの\r\n\r\n\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\r\n\r\nを\r\n\r\n\t\t\tString OS_Name = System.getProperty(\"os.name\");\r\n\t\t\tSystem.out.println(OS_Name);\r\n\t\t\tswitch (OS_Name){\r\n\t\t\tcase \"Windows XP\":\r\n\t\t\tcase \"Windows Vista\":\r\n\t\t\tcase \"Windows 7\":\r\n\t\t\tcase \"Windows 8\":\r\n\t\t\tcase \"Windows 8.1\":\r\n\t\t\t\tUIManager.setLookAndFeel(\"com.sun.java.swing.plaf.windows.WindowsLookAndFeel\");\r\n\t\t\t\tbreak;\r\n\t\t\tcase \"Mac OS X\":\r\n\t\t\t\tUIManager.setLookAndFeel(\"com.apple.laf.AquaLookAndFeel\");\r\n\t\t\t\tbreak;\r\n\t\t\t}\r\n\r\nこんなように他OS別に整理して置くのが後のOS互換のためいいと思います。まぁ、今は仮として一気に書いたコードですからもっと簡単にする方法があるかも知れませんね。:)（Ubuntuがいまいなかったため、OS Xの例だけ書きました。）"}}