{"action":"created","comment":{"url":"https://api.github.com/repos/tomo1995/Homework/pulls/comments/34170219","id":34170219,"diff_hunk":"@@ -0,0 +1,49 @@\n+package task1;\n+\n+\n+import java.awt.Font;\n+import java.awt.GridLayout;\n+\n+import javax.swing.JFrame;\n+import javax.swing.JLabel;\n+import javax.swing.JSlider;\n+import javax.swing.event.ChangeEvent;\n+import javax.swing.event.ChangeListener;\n+\n+public class AdjustableFontSize extends JFrame {\n+\tprivate JSlider slider = new JSlider(8, 100);\n+\tprivate JLabel text = new JLabel(\"Text\");\n+\n+\tpublic static void main(String[] args) {\n+\t\tnew AdjustableFontSize();\n+\t}\n+/**\n+ * Default constructor.\n+ * We use slider to control size of Font.\n+ */\n+\tpublic AdjustableFontSize() {\n+\n+\t\tsetLayout(new GridLayout(2, 0));\n+\t\tadd(text);\n+\t\ttext.setFont(new Font(\"Serif\", Font.BOLD, 25));\n+\t\tslider.addChangeListener(new Change());\n+\t\tadd(slider);\n+\t\ttext.setHorizontalAlignment(JLabel.CENTER);\n+\t\tsetTitle(\"Nul\");\n+\t\tsetSize(500, 300);\n+\t\tsetLocationRelativeTo(null);\n+\t\tsetDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n+\t\tsetVisible(true);\n+\t}\n+/**\n+ * Change listener is implemented because of slider.\n+ */\n+\tprivate class Change implements ChangeListener {\n+\n+\t\t@Override\n+\t\tpublic void stateChanged(ChangeEvent e) {\n+\t\t\ttext.setFont(new Font(\"Serif\", Font.BOLD, slider.getValue()));\n+\t\t}\n+\n+\t}\n+}","path":"ba.bitcamp.guihomework/src/task1/AdjustableFontSize.java","position":49,"original_position":49,"commit_id":"1316d65a455faec04f862546854cb5b179d1ab6f","original_commit_id":"1316d65a455faec04f862546854cb5b179d1ab6f","user":{"login":"nejra","id":3843133,"avatar_url":"https://avatars.githubusercontent.com/u/3843133?v=3","gravatar_id":"","url":"https://api.github.com/users/nejra","html_url":"https://github.com/nejra","followers_url":"https://api.github.com/users/nejra/followers","following_url":"https://api.github.com/users/nejra/following{/other_user}","gists_url":"https://api.github.com/users/nejra/gists{/gist_id}","starred_url":"https://api.github.com/users/nejra/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/nejra/subscriptions","organizations_url":"https://api.github.com/users/nejra/orgs","repos_url":"https://api.github.com/users/nejra/repos","events_url":"https://api.github.com/users/nejra/events{/privacy}","received_events_url":"https://api.github.com/users/nejra/received_events","type":"User","site_admin":false},"body":":+1: ","created_at":"2015-07-08T16:49:58Z","updated_at":"2015-07-08T16:49:58Z","html_url":"https://github.com/tomo1995/Homework/pull/4#discussion_r34170219","pull_request_url":"https://api.github.com/repos/tomo1995/Homework/pulls/4","_links":{"self":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/comments/34170219"},"html":{"href":"https://github.com/tomo1995/Homework/pull/4#discussion_r34170219"},"pull_request":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/4"}}},"pull_request":{"url":"https://api.github.com/repos/tomo1995/Homework/pulls/4","id":39205921,"html_url":"https://github.com/tomo1995/Homework/pull/4","diff_url":"https://github.com/tomo1995/Homework/pull/4.diff","patch_url":"https://github.com/tomo1995/Homework/pull/4.patch","issue_url":"https://api.github.com/repos/tomo1995/Homework/issues/4","number":4,"state":"open","locked":false,"title":"Solved all tasks","user":{"login":"tomo1995","id":12545916,"avatar_url":"https://avatars.githubusercontent.com/u/12545916?v=3","gravatar_id":"","url":"https://api.github.com/users/tomo1995","html_url":"https://github.com/tomo1995","followers_url":"https://api.github.com/users/tomo1995/followers","following_url":"https://api.github.com/users/tomo1995/following{/other_user}","gists_url":"https://api.github.com/users/tomo1995/gists{/gist_id}","starred_url":"https://api.github.com/users/tomo1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomo1995/subscriptions","organizations_url":"https://api.github.com/users/tomo1995/orgs","repos_url":"https://api.github.com/users/tomo1995/repos","events_url":"https://api.github.com/users/tomo1995/events{/privacy}","received_events_url":"https://api.github.com/users/tomo1995/received_events","type":"User","site_admin":false},"body":"Zadacu sam uradio najbolje sto sam znao. Mislim da je dosta dobro odradjena. ","created_at":"2015-07-04T10:22:17Z","updated_at":"2015-07-08T16:49:58Z","closed_at":null,"merged_at":null,"merge_commit_sha":"cb011908254d6ca8cafe7ba77da04a966448c54a","assignee":null,"milestone":null,"commits_url":"https://api.github.com/repos/tomo1995/Homework/pulls/4/commits","review_comments_url":"https://api.github.com/repos/tomo1995/Homework/pulls/4/comments","review_comment_url":"https://api.github.com/repos/tomo1995/Homework/pulls/comments{/number}","comments_url":"https://api.github.com/repos/tomo1995/Homework/issues/4/comments","statuses_url":"https://api.github.com/repos/tomo1995/Homework/statuses/1316d65a455faec04f862546854cb5b179d1ab6f","head":{"label":"tomo1995:homeworkweekend7","ref":"homeworkweekend7","sha":"1316d65a455faec04f862546854cb5b179d1ab6f","user":{"login":"tomo1995","id":12545916,"avatar_url":"https://avatars.githubusercontent.com/u/12545916?v=3","gravatar_id":"","url":"https://api.github.com/users/tomo1995","html_url":"https://github.com/tomo1995","followers_url":"https://api.github.com/users/tomo1995/followers","following_url":"https://api.github.com/users/tomo1995/following{/other_user}","gists_url":"https://api.github.com/users/tomo1995/gists{/gist_id}","starred_url":"https://api.github.com/users/tomo1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomo1995/subscriptions","organizations_url":"https://api.github.com/users/tomo1995/orgs","repos_url":"https://api.github.com/users/tomo1995/repos","events_url":"https://api.github.com/users/tomo1995/events{/privacy}","received_events_url":"https://api.github.com/users/tomo1995/received_events","type":"User","site_admin":false},"repo":{"id":37861856,"name":"Homework","full_name":"tomo1995/Homework","owner":{"login":"tomo1995","id":12545916,"avatar_url":"https://avatars.githubusercontent.com/u/12545916?v=3","gravatar_id":"","url":"https://api.github.com/users/tomo1995","html_url":"https://github.com/tomo1995","followers_url":"https://api.github.com/users/tomo1995/followers","following_url":"https://api.github.com/users/tomo1995/following{/other_user}","gists_url":"https://api.github.com/users/tomo1995/gists{/gist_id}","starred_url":"https://api.github.com/users/tomo1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomo1995/subscriptions","organizations_url":"https://api.github.com/users/tomo1995/orgs","repos_url":"https://api.github.com/users/tomo1995/repos","events_url":"https://api.github.com/users/tomo1995/events{/privacy}","received_events_url":"https://api.github.com/users/tomo1995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomo1995/Homework","description":"I place my homework here...","fork":false,"url":"https://api.github.com/repos/tomo1995/Homework","forks_url":"https://api.github.com/repos/tomo1995/Homework/forks","keys_url":"https://api.github.com/repos/tomo1995/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomo1995/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomo1995/Homework/teams","hooks_url":"https://api.github.com/repos/tomo1995/Homework/hooks","issue_events_url":"https://api.github.com/repos/tomo1995/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/tomo1995/Homework/events","assignees_url":"https://api.github.com/repos/tomo1995/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/tomo1995/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/tomo1995/Homework/tags","blobs_url":"https://api.github.com/repos/tomo1995/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomo1995/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomo1995/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomo1995/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomo1995/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/tomo1995/Homework/languages","stargazers_url":"https://api.github.com/repos/tomo1995/Homework/stargazers","contributors_url":"https://api.github.com/repos/tomo1995/Homework/contributors","subscribers_url":"https://api.github.com/repos/tomo1995/Homework/subscribers","subscription_url":"https://api.github.com/repos/tomo1995/Homework/subscription","commits_url":"https://api.github.com/repos/tomo1995/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomo1995/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomo1995/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomo1995/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomo1995/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/tomo1995/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomo1995/Homework/merges","archive_url":"https://api.github.com/repos/tomo1995/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomo1995/Homework/downloads","issues_url":"https://api.github.com/repos/tomo1995/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/tomo1995/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/tomo1995/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/tomo1995/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomo1995/Homework/labels{/name}","releases_url":"https://api.github.com/repos/tomo1995/Homework/releases{/id}","created_at":"2015-06-22T14:59:15Z","updated_at":"2015-06-29T10:02:41Z","pushed_at":"2015-07-07T09:49:31Z","git_url":"git://github.com/tomo1995/Homework.git","ssh_url":"git@github.com:tomo1995/Homework.git","clone_url":"https://github.com/tomo1995/Homework.git","svn_url":"https://github.com/tomo1995/Homework","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"base":{"label":"tomo1995:master","ref":"master","sha":"0b003c536727bb1989e139d6dceb786673fe05e9","user":{"login":"tomo1995","id":12545916,"avatar_url":"https://avatars.githubusercontent.com/u/12545916?v=3","gravatar_id":"","url":"https://api.github.com/users/tomo1995","html_url":"https://github.com/tomo1995","followers_url":"https://api.github.com/users/tomo1995/followers","following_url":"https://api.github.com/users/tomo1995/following{/other_user}","gists_url":"https://api.github.com/users/tomo1995/gists{/gist_id}","starred_url":"https://api.github.com/users/tomo1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomo1995/subscriptions","organizations_url":"https://api.github.com/users/tomo1995/orgs","repos_url":"https://api.github.com/users/tomo1995/repos","events_url":"https://api.github.com/users/tomo1995/events{/privacy}","received_events_url":"https://api.github.com/users/tomo1995/received_events","type":"User","site_admin":false},"repo":{"id":37861856,"name":"Homework","full_name":"tomo1995/Homework","owner":{"login":"tomo1995","id":12545916,"avatar_url":"https://avatars.githubusercontent.com/u/12545916?v=3","gravatar_id":"","url":"https://api.github.com/users/tomo1995","html_url":"https://github.com/tomo1995","followers_url":"https://api.github.com/users/tomo1995/followers","following_url":"https://api.github.com/users/tomo1995/following{/other_user}","gists_url":"https://api.github.com/users/tomo1995/gists{/gist_id}","starred_url":"https://api.github.com/users/tomo1995/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/tomo1995/subscriptions","organizations_url":"https://api.github.com/users/tomo1995/orgs","repos_url":"https://api.github.com/users/tomo1995/repos","events_url":"https://api.github.com/users/tomo1995/events{/privacy}","received_events_url":"https://api.github.com/users/tomo1995/received_events","type":"User","site_admin":false},"private":false,"html_url":"https://github.com/tomo1995/Homework","description":"I place my homework here...","fork":false,"url":"https://api.github.com/repos/tomo1995/Homework","forks_url":"https://api.github.com/repos/tomo1995/Homework/forks","keys_url":"https://api.github.com/repos/tomo1995/Homework/keys{/key_id}","collaborators_url":"https://api.github.com/repos/tomo1995/Homework/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/tomo1995/Homework/teams","hooks_url":"https://api.github.com/repos/tomo1995/Homework/hooks","issue_events_url":"https://api.github.com/repos/tomo1995/Homework/issues/events{/number}","events_url":"https://api.github.com/repos/tomo1995/Homework/events","assignees_url":"https://api.github.com/repos/tomo1995/Homework/assignees{/user}","branches_url":"https://api.github.com/repos/tomo1995/Homework/branches{/branch}","tags_url":"https://api.github.com/repos/tomo1995/Homework/tags","blobs_url":"https://api.github.com/repos/tomo1995/Homework/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/tomo1995/Homework/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/tomo1995/Homework/git/refs{/sha}","trees_url":"https://api.github.com/repos/tomo1995/Homework/git/trees{/sha}","statuses_url":"https://api.github.com/repos/tomo1995/Homework/statuses/{sha}","languages_url":"https://api.github.com/repos/tomo1995/Homework/languages","stargazers_url":"https://api.github.com/repos/tomo1995/Homework/stargazers","contributors_url":"https://api.github.com/repos/tomo1995/Homework/contributors","subscribers_url":"https://api.github.com/repos/tomo1995/Homework/subscribers","subscription_url":"https://api.github.com/repos/tomo1995/Homework/subscription","commits_url":"https://api.github.com/repos/tomo1995/Homework/commits{/sha}","git_commits_url":"https://api.github.com/repos/tomo1995/Homework/git/commits{/sha}","comments_url":"https://api.github.com/repos/tomo1995/Homework/comments{/number}","issue_comment_url":"https://api.github.com/repos/tomo1995/Homework/issues/comments{/number}","contents_url":"https://api.github.com/repos/tomo1995/Homework/contents/{+path}","compare_url":"https://api.github.com/repos/tomo1995/Homework/compare/{base}...{head}","merges_url":"https://api.github.com/repos/tomo1995/Homework/merges","archive_url":"https://api.github.com/repos/tomo1995/Homework/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/tomo1995/Homework/downloads","issues_url":"https://api.github.com/repos/tomo1995/Homework/issues{/number}","pulls_url":"https://api.github.com/repos/tomo1995/Homework/pulls{/number}","milestones_url":"https://api.github.com/repos/tomo1995/Homework/milestones{/number}","notifications_url":"https://api.github.com/repos/tomo1995/Homework/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/tomo1995/Homework/labels{/name}","releases_url":"https://api.github.com/repos/tomo1995/Homework/releases{/id}","created_at":"2015-06-22T14:59:15Z","updated_at":"2015-06-29T10:02:41Z","pushed_at":"2015-07-07T09:49:31Z","git_url":"git://github.com/tomo1995/Homework.git","ssh_url":"git@github.com:tomo1995/Homework.git","clone_url":"https://github.com/tomo1995/Homework.git","svn_url":"https://github.com/tomo1995/Homework","homepage":null,"size":240,"stargazers_count":0,"watchers_count":0,"language":"Java","has_issues":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"open_issues_count":2,"forks":0,"open_issues":2,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/4"},"html":{"href":"https://github.com/tomo1995/Homework/pull/4"},"issue":{"href":"https://api.github.com/repos/tomo1995/Homework/issues/4"},"comments":{"href":"https://api.github.com/repos/tomo1995/Homework/issues/4/comments"},"review_comments":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/4/comments"},"review_comment":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/tomo1995/Homework/pulls/4/commits"},"statuses":{"href":"https://api.github.com/repos/tomo1995/Homework/statuses/1316d65a455faec04f862546854cb5b179d1ab6f"}}}}