{"action":"created","issue":{"url":"https://api.github.com/repos/lunduniversity/introprog/issues/31","repository_url":"https://api.github.com/repos/lunduniversity/introprog","labels_url":"https://api.github.com/repos/lunduniversity/introprog/issues/31/labels{/name}","comments_url":"https://api.github.com/repos/lunduniversity/introprog/issues/31/comments","events_url":"https://api.github.com/repos/lunduniversity/introprog/issues/31/events","html_url":"https://github.com/lunduniversity/introprog/issues/31","id":153752171,"number":31,"title":"Add additional behavior to SimpleWindow so that it does not do a system.exit() when last window is closed.","user":{"login":"ErikBjare","id":1405370,"avatar_url":"https://avatars.githubusercontent.com/u/1405370?v=3","gravatar_id":"","url":"https://api.github.com/users/ErikBjare","html_url":"https://github.com/ErikBjare","followers_url":"https://api.github.com/users/ErikBjare/followers","following_url":"https://api.github.com/users/ErikBjare/following{/other_user}","gists_url":"https://api.github.com/users/ErikBjare/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikBjare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikBjare/subscriptions","organizations_url":"https://api.github.com/users/ErikBjare/orgs","repos_url":"https://api.github.com/users/ErikBjare/repos","events_url":"https://api.github.com/users/ErikBjare/events{/privacy}","received_events_url":"https://api.github.com/users/ErikBjare/received_events","type":"User","site_admin":false},"labels":[],"state":"open","locked":false,"assignee":{"login":"ErikBjare","id":1405370,"avatar_url":"https://avatars.githubusercontent.com/u/1405370?v=3","gravatar_id":"","url":"https://api.github.com/users/ErikBjare","html_url":"https://github.com/ErikBjare","followers_url":"https://api.github.com/users/ErikBjare/followers","following_url":"https://api.github.com/users/ErikBjare/following{/other_user}","gists_url":"https://api.github.com/users/ErikBjare/gists{/gist_id}","starred_url":"https://api.github.com/users/ErikBjare/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/ErikBjare/subscriptions","organizations_url":"https://api.github.com/users/ErikBjare/orgs","repos_url":"https://api.github.com/users/ErikBjare/repos","events_url":"https://api.github.com/users/ErikBjare/events{/privacy}","received_events_url":"https://api.github.com/users/ErikBjare/received_events","type":"User","site_admin":false},"milestone":null,"comments":6,"created_at":"2016-05-09T11:01:58Z","updated_at":"2016-05-09T19:57:53Z","closed_at":null,"body":"Was discussed on the lunch meeting 2016-05-09.\r\n\r\nThe issue regards a change in behavior as following: Add additional behavior to SimpleWindow so that it does not do a system.exit() when last window is closed.\r\n\r\nShould not affect existing code using the SimpleWindow class.\r\n\r\nProposed solution is to implement a setter that can be used to disable the behavior.\r\n\r\nAdded code:\r\n\r\n    private boolean exitOnClose = true;   // The existing behavior\r\n    public static void setExitOnClose(boolean exitOnClose) {\r\n        this.exitOnClose = exitOnClose;\r\n    }\r\n\r\nModifications to the event handler for the close event is also required.\r\n\r\nGustav has been assigned to give feedback and review the PR.\r\n\r\nSorry for the messy issue, it was rushed."},"comment":{"url":"https://api.github.com/repos/lunduniversity/introprog/issues/comments/217971533","html_url":"https://github.com/lunduniversity/introprog/issues/31#issuecomment-217971533","issue_url":"https://api.github.com/repos/lunduniversity/introprog/issues/31","id":217971533,"user":{"login":"bjornregnell","id":3601817,"avatar_url":"https://avatars.githubusercontent.com/u/3601817?v=3","gravatar_id":"","url":"https://api.github.com/users/bjornregnell","html_url":"https://github.com/bjornregnell","followers_url":"https://api.github.com/users/bjornregnell/followers","following_url":"https://api.github.com/users/bjornregnell/following{/other_user}","gists_url":"https://api.github.com/users/bjornregnell/gists{/gist_id}","starred_url":"https://api.github.com/users/bjornregnell/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/bjornregnell/subscriptions","organizations_url":"https://api.github.com/users/bjornregnell/orgs","repos_url":"https://api.github.com/users/bjornregnell/repos","events_url":"https://api.github.com/users/bjornregnell/events{/privacy}","received_events_url":"https://api.github.com/users/bjornregnell/received_events","type":"User","site_admin":false},"created_at":"2016-05-09T19:57:53Z","updated_at":"2016-05-09T19:57:53Z","body":"Fixed now. Have a look here and tell me if something looks strange:\r\nhttps://github.com/lunduniversity/introprog/commit/fd7d52df1fb7cfb50e70e1a0b19d96ef6c9111a7"}}