{"action":"created","comment":{"url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/comments/227197451","pull_request_review_id":167181381,"id":227197451,"node_id":"MDI0OlB1bGxSZXF1ZXN0UmV2aWV3Q29tbWVudDIyNzE5NzQ1MQ==","diff_hunk":"@@ -11,81 +11,64 @@\n  */\n \n package com.foundation.search.view;\n-\n-import java.awt.event.ActionListener;\n-import java.awt.event.ActionEvent;\n-import javax.swing.JButton;\n-import javax.swing.JFrame;\n-import javax.swing.JLabel;\n-import javax.swing.JTextField;\n-import javax.swing.JOptionPane;\n+import javax.swing.*;\n \n /**\n- * Class SearchView that will receive the data to search and will have communication with the controller\n+ * This class is the main class to communicate with the controller.\n+ * It contains the MainPanel and the settings of the Search window\n  *\n  * @author Emely LLanos\n  * @version 1.0.\n  */\n+public class SearchView extends JFrame{\n \n-public class SearchView extends JFrame implements ActionListener{\n-\n-    private JLabel nameLabel;\n-    private JTextField nameInput;\n-    private JLabel pathLabel;\n-    private JTextField pathInput;\n-    private JButton findButton;\n+    private MainPanel mainPanel;\n \n+    /**\n+     * The constructor of ResultsPanel class where the components are set\n+     * by invoking the setting() and init() method\n+     */\n     public SearchView() {\n         super();\n-        configureWindow();\n-        initializeComponents();\n+        setting();\n+        init();\n     }\n \n-    private void configureWindow() {\n+    /**\n+     * setting method will set the properties of the Search Window\n+     */\n+    private void setting() {\n+        mainPanel = new MainPanel();\n         this.setTitle(\"Search Files \");\n-        this.setSize(510, 410);\n+        this.setSize(700, 400);\n         this.setLocationRelativeTo(null);\n-        this.setLayout(null);\n-        this.setResizable(false);\n+        this.setResizable(true);\n         this.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);\n     }\n \n-    private void initializeComponents() {\n-        // creating the components\n-        nameLabel = new JLabel();\n-        nameInput = new JTextField();\n-        pathLabel = new JLabel();\n-        pathInput = new JTextField();\n-        findButton = new JButton();\n-        // configuring the components\n-        nameLabel.setText(\"Please input the name of the file to search\");\n-        nameLabel.setBounds(50, 40, 300, 25);\n-        nameInput.setBounds(380, 40, 100, 25);\n-        pathLabel.setText(\"Please input the path where you want to search\");\n-        pathLabel.setBounds(50, 70, 300, 25);\n-        pathInput.setBounds(380, 70, 100, 25);\n+    /**\n+     * init method adds the mainPanel and makes it visible\n+     */\n+    private void init() {\n \n-        findButton.setText(\"Search\");\n-        findButton.setBounds(150, 120, 200, 30);\n-        findButton.addActionListener(this);\n-        // adding the components to the window\n-        this.add(nameLabel);\n-        this.add(nameInput);\n-        this.add(pathLabel);\n-        this.add(pathInput);\n-        this.add(findButton);\n+        this.add(mainPanel);\n+        this.setVisible(true);\n     }\n \n-    @Override\n-    public void actionPerformed(ActionEvent e) {\n-        String name = nameInput.getText();\n-        String path = pathInput.getText();\n-        JOptionPane.showMessageDialog(this, \"I will search the file:  '\"\n-                + name + \"' in the following path: \" + path);\n+    /**\n+     * This method returns the mainPanel that this frame contains\n+     * in order to use it's available methods\n+     *\n+     * @return parameters\n+     */\n+    public JPanel getMainPanel(){","path":"src/main/java/com/foundation/search/view/SearchView.java","position":105,"original_position":105,"commit_id":"c897b55d7849683db467296e062b4e8e19c01447","original_commit_id":"c897b55d7849683db467296e062b4e8e19c01447","user":{"login":"maryfranz","id":43958881,"node_id":"MDQ6VXNlcjQzOTU4ODgx","avatar_url":"https://avatars0.githubusercontent.com/u/43958881?v=4","gravatar_id":"","url":"https://api.github.com/users/maryfranz","html_url":"https://github.com/maryfranz","followers_url":"https://api.github.com/users/maryfranz/followers","following_url":"https://api.github.com/users/maryfranz/following{/other_user}","gists_url":"https://api.github.com/users/maryfranz/gists{/gist_id}","starred_url":"https://api.github.com/users/maryfranz/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/maryfranz/subscriptions","organizations_url":"https://api.github.com/users/maryfranz/orgs","repos_url":"https://api.github.com/users/maryfranz/repos","events_url":"https://api.github.com/users/maryfranz/events{/privacy}","received_events_url":"https://api.github.com/users/maryfranz/received_events","type":"User","site_admin":false},"body":"Instead of JPanel, should it be of type MainPanel?","created_at":"2018-10-23T02:00:44Z","updated_at":"2018-10-23T02:00:44Z","html_url":"https://github.com/jpsandovaln/SearchFiles/pull/2#discussion_r227197451","pull_request_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2","author_association":"COLLABORATOR","_links":{"self":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/comments/227197451"},"html":{"href":"https://github.com/jpsandovaln/SearchFiles/pull/2#discussion_r227197451"},"pull_request":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2"}}},"pull_request":{"url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2","id":224839724,"node_id":"MDExOlB1bGxSZXF1ZXN0MjI0ODM5NzI0","html_url":"https://github.com/jpsandovaln/SearchFiles/pull/2","diff_url":"https://github.com/jpsandovaln/SearchFiles/pull/2.diff","patch_url":"https://github.com/jpsandovaln/SearchFiles/pull/2.patch","issue_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/2","number":2,"state":"open","locked":false,"title":"Refactoring SearchView and MainPanel to use Layouts instead and addin…","user":{"login":"emelyllanos","id":5807869,"node_id":"MDQ6VXNlcjU4MDc4Njk=","avatar_url":"https://avatars3.githubusercontent.com/u/5807869?v=4","gravatar_id":"","url":"https://api.github.com/users/emelyllanos","html_url":"https://github.com/emelyllanos","followers_url":"https://api.github.com/users/emelyllanos/followers","following_url":"https://api.github.com/users/emelyllanos/following{/other_user}","gists_url":"https://api.github.com/users/emelyllanos/gists{/gist_id}","starred_url":"https://api.github.com/users/emelyllanos/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/emelyllanos/subscriptions","organizations_url":"https://api.github.com/users/emelyllanos/orgs","repos_url":"https://api.github.com/users/emelyllanos/repos","events_url":"https://api.github.com/users/emelyllanos/events{/privacy}","received_events_url":"https://api.github.com/users/emelyllanos/received_events","type":"User","site_admin":false},"body":"…g 2 new classes to receive parameters and show results of the searching","created_at":"2018-10-22T22:56:32Z","updated_at":"2018-10-23T02:00:44Z","closed_at":null,"merged_at":null,"merge_commit_sha":"4560e0f0f53ab6874f5cd3e38be44783c8bad5b6","assignee":null,"assignees":[],"requested_reviewers":[{"login":"shisova","id":43958970,"node_id":"MDQ6VXNlcjQzOTU4OTcw","avatar_url":"https://avatars1.githubusercontent.com/u/43958970?v=4","gravatar_id":"","url":"https://api.github.com/users/shisova","html_url":"https://github.com/shisova","followers_url":"https://api.github.com/users/shisova/followers","following_url":"https://api.github.com/users/shisova/following{/other_user}","gists_url":"https://api.github.com/users/shisova/gists{/gist_id}","starred_url":"https://api.github.com/users/shisova/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/shisova/subscriptions","organizations_url":"https://api.github.com/users/shisova/orgs","repos_url":"https://api.github.com/users/shisova/repos","events_url":"https://api.github.com/users/shisova/events{/privacy}","received_events_url":"https://api.github.com/users/shisova/received_events","type":"User","site_admin":false}],"requested_teams":[],"labels":[],"milestone":null,"commits_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2/commits","review_comments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2/comments","review_comment_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/comments{/number}","comments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/2/comments","statuses_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/statuses/c897b55d7849683db467296e062b4e8e19c01447","head":{"label":"jpsandovaln:search/View","ref":"search/View","sha":"c897b55d7849683db467296e062b4e8e19c01447","user":{"login":"jpsandovaln","id":35410949,"node_id":"MDQ6VXNlcjM1NDEwOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/35410949?v=4","gravatar_id":"","url":"https://api.github.com/users/jpsandovaln","html_url":"https://github.com/jpsandovaln","followers_url":"https://api.github.com/users/jpsandovaln/followers","following_url":"https://api.github.com/users/jpsandovaln/following{/other_user}","gists_url":"https://api.github.com/users/jpsandovaln/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsandovaln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsandovaln/subscriptions","organizations_url":"https://api.github.com/users/jpsandovaln/orgs","repos_url":"https://api.github.com/users/jpsandovaln/repos","events_url":"https://api.github.com/users/jpsandovaln/events{/privacy}","received_events_url":"https://api.github.com/users/jpsandovaln/received_events","type":"User","site_admin":false},"repo":{"id":152345708,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDU3MDg=","name":"SearchFiles","full_name":"jpsandovaln/SearchFiles","private":false,"owner":{"login":"jpsandovaln","id":35410949,"node_id":"MDQ6VXNlcjM1NDEwOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/35410949?v=4","gravatar_id":"","url":"https://api.github.com/users/jpsandovaln","html_url":"https://github.com/jpsandovaln","followers_url":"https://api.github.com/users/jpsandovaln/followers","following_url":"https://api.github.com/users/jpsandovaln/following{/other_user}","gists_url":"https://api.github.com/users/jpsandovaln/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsandovaln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsandovaln/subscriptions","organizations_url":"https://api.github.com/users/jpsandovaln/orgs","repos_url":"https://api.github.com/users/jpsandovaln/repos","events_url":"https://api.github.com/users/jpsandovaln/events{/privacy}","received_events_url":"https://api.github.com/users/jpsandovaln/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jpsandovaln/SearchFiles","description":null,"fork":false,"url":"https://api.github.com/repos/jpsandovaln/SearchFiles","forks_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/forks","keys_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/teams","hooks_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/hooks","issue_events_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/events{/number}","events_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/events","assignees_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/assignees{/user}","branches_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/branches{/branch}","tags_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/tags","blobs_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/statuses/{sha}","languages_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/languages","stargazers_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/stargazers","contributors_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/contributors","subscribers_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/subscribers","subscription_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/subscription","commits_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/contents/{+path}","compare_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/merges","archive_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/downloads","issues_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues{/number}","pulls_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls{/number}","milestones_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/milestones{/number}","notifications_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/labels{/name}","releases_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/releases{/id}","deployments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/deployments","created_at":"2018-10-10T01:40:50Z","updated_at":"2018-10-10T01:40:52Z","pushed_at":"2018-10-22T22:56:33Z","git_url":"git://github.com/jpsandovaln/SearchFiles.git","ssh_url":"git@github.com:jpsandovaln/SearchFiles.git","clone_url":"https://github.com/jpsandovaln/SearchFiles.git","svn_url":"https://github.com/jpsandovaln/SearchFiles","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"base":{"label":"jpsandovaln:develop","ref":"develop","sha":"39faa5ef06b517c1ca709181f10f8003d9beb18b","user":{"login":"jpsandovaln","id":35410949,"node_id":"MDQ6VXNlcjM1NDEwOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/35410949?v=4","gravatar_id":"","url":"https://api.github.com/users/jpsandovaln","html_url":"https://github.com/jpsandovaln","followers_url":"https://api.github.com/users/jpsandovaln/followers","following_url":"https://api.github.com/users/jpsandovaln/following{/other_user}","gists_url":"https://api.github.com/users/jpsandovaln/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsandovaln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsandovaln/subscriptions","organizations_url":"https://api.github.com/users/jpsandovaln/orgs","repos_url":"https://api.github.com/users/jpsandovaln/repos","events_url":"https://api.github.com/users/jpsandovaln/events{/privacy}","received_events_url":"https://api.github.com/users/jpsandovaln/received_events","type":"User","site_admin":false},"repo":{"id":152345708,"node_id":"MDEwOlJlcG9zaXRvcnkxNTIzNDU3MDg=","name":"SearchFiles","full_name":"jpsandovaln/SearchFiles","private":false,"owner":{"login":"jpsandovaln","id":35410949,"node_id":"MDQ6VXNlcjM1NDEwOTQ5","avatar_url":"https://avatars3.githubusercontent.com/u/35410949?v=4","gravatar_id":"","url":"https://api.github.com/users/jpsandovaln","html_url":"https://github.com/jpsandovaln","followers_url":"https://api.github.com/users/jpsandovaln/followers","following_url":"https://api.github.com/users/jpsandovaln/following{/other_user}","gists_url":"https://api.github.com/users/jpsandovaln/gists{/gist_id}","starred_url":"https://api.github.com/users/jpsandovaln/starred{/owner}{/repo}","subscriptions_url":"https://api.github.com/users/jpsandovaln/subscriptions","organizations_url":"https://api.github.com/users/jpsandovaln/orgs","repos_url":"https://api.github.com/users/jpsandovaln/repos","events_url":"https://api.github.com/users/jpsandovaln/events{/privacy}","received_events_url":"https://api.github.com/users/jpsandovaln/received_events","type":"User","site_admin":false},"html_url":"https://github.com/jpsandovaln/SearchFiles","description":null,"fork":false,"url":"https://api.github.com/repos/jpsandovaln/SearchFiles","forks_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/forks","keys_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/keys{/key_id}","collaborators_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/collaborators{/collaborator}","teams_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/teams","hooks_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/hooks","issue_events_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/events{/number}","events_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/events","assignees_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/assignees{/user}","branches_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/branches{/branch}","tags_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/tags","blobs_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/blobs{/sha}","git_tags_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/tags{/sha}","git_refs_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/refs{/sha}","trees_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/trees{/sha}","statuses_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/statuses/{sha}","languages_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/languages","stargazers_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/stargazers","contributors_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/contributors","subscribers_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/subscribers","subscription_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/subscription","commits_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/commits{/sha}","git_commits_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/git/commits{/sha}","comments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/comments{/number}","issue_comment_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/comments{/number}","contents_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/contents/{+path}","compare_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/compare/{base}...{head}","merges_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/merges","archive_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/{archive_format}{/ref}","downloads_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/downloads","issues_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues{/number}","pulls_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls{/number}","milestones_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/milestones{/number}","notifications_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/notifications{?since,all,participating}","labels_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/labels{/name}","releases_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/releases{/id}","deployments_url":"https://api.github.com/repos/jpsandovaln/SearchFiles/deployments","created_at":"2018-10-10T01:40:50Z","updated_at":"2018-10-10T01:40:52Z","pushed_at":"2018-10-22T22:56:33Z","git_url":"git://github.com/jpsandovaln/SearchFiles.git","ssh_url":"git@github.com:jpsandovaln/SearchFiles.git","clone_url":"https://github.com/jpsandovaln/SearchFiles.git","svn_url":"https://github.com/jpsandovaln/SearchFiles","homepage":null,"size":71,"stargazers_count":0,"watchers_count":0,"language":null,"has_issues":true,"has_projects":true,"has_downloads":true,"has_wiki":true,"has_pages":false,"forks_count":0,"mirror_url":null,"archived":false,"open_issues_count":1,"license":null,"forks":0,"open_issues":1,"watchers":0,"default_branch":"master"}},"_links":{"self":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2"},"html":{"href":"https://github.com/jpsandovaln/SearchFiles/pull/2"},"issue":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/2"},"comments":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/issues/2/comments"},"review_comments":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2/comments"},"review_comment":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/comments{/number}"},"commits":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/pulls/2/commits"},"statuses":{"href":"https://api.github.com/repos/jpsandovaln/SearchFiles/statuses/c897b55d7849683db467296e062b4e8e19c01447"}},"author_association":"COLLABORATOR"}}
{"actor":{"display_login":"maryfranz"}}