{"id":79271,"date":"2021-12-03T01:40:43","date_gmt":"2021-12-03T01:40:43","guid":{"rendered":"https:\/\/papersspot.com\/blog\/2021\/12\/03\/homework-modify-mvc-gui-application-you-should-work-in-eclipse-or-another\/"},"modified":"2021-12-03T01:40:43","modified_gmt":"2021-12-03T01:40:43","slug":"homework-modify-mvc-gui-application-you-should-work-in-eclipse-or-another","status":"publish","type":"post","link":"https:\/\/papersspot.com\/blog\/2021\/12\/03\/homework-modify-mvc-gui-application-you-should-work-in-eclipse-or-another\/","title":{"rendered":"Homework: Modify MVC GUI Application You should work in Eclipse or another"},"content":{"rendered":"<p>Homework: Modify MVC GUI Application<\/p>\n<p> You should work in Eclipse or another Java code compiler.<\/p>\n<p> An MVC GUI Application<\/p>\n<p> For this assignment, instead of creating a new project, you will\u00a0import\u00a0a project already set-up for you. First you need to download the project,\u00a0DemoGUI3.zip, to your computer. Click on this\u00a0download link\u00a0(http:\/\/web.cse.ohio-state.edu\/) and save the file somewhere on your hard drive where you can easily find it. Make sure that you\u00a0do not\u00a0expand this archive. If your browser automatically expands downloaded zip archives, that&#8217;s OK too. Just pay attention to the special instructions in the following few steps. You may want to make a note of where you saved it.<\/p>\n<p> Import your new project by following these steps:<\/p>\n<p> From the\u00a0File\u00a0menu select\u00a0Import&#8230;.<\/p>\n<p> In the new window, expand\u00a0General\u00a0and select\u00a0Existing Projects into Workspace. Click\u00a0Next.<\/p>\n<p> Click on the radio button next to\u00a0Select archive file\u00a0and then click the\u00a0Browse&#8230;\u00a0button. (If the archive was expanded when you downloaded the file to your own computer, click on\u00a0Select root directory&#8230;\u00a0instead.)<\/p>\n<p> In the file selection window, find the\u00a0DemoGUI3.zip\u00a0file and select it. (If your browser expanded the archive, find the\u00a0DemoGUI3\u00a0directory instead.) Click\u00a0OK.<\/p>\n<p> Click\u00a0Finish.<\/p>\n<p> Explore the new project and all its components. The\u00a0DemoGUI3\u00a0program is a simple MVC application where each major component (model, view, and controller) is composed of an interface describing the behavior and a class implementing the behavior. You can also open the\u00a0doc\/index.html\u00a0file in a browser to review the documentation of all the components.<\/p>\n<p> Run the application and make sure you understand completely what it does, how each component contributes to the observed behavior, and how the various components communicate and interact with each other.<\/p>\n<p> Once you are comfortable with the\u00a0DemoGUI3\u00a0application, you can move on to the next step.<\/p>\n<p> Updated MVC GUI Application<\/p>\n<p> You need to modify the demo application so that it satisfies the following new requirements:<\/p>\n<p> There are 3 buttons:\u00a0Reset,\u00a0Append, and\u00a0Undo;<\/p>\n<p> Reset\u00a0clears both input and output text areas;<\/p>\n<p> Append\u00a0appends the contents of the input text area to the end of the text in the output text area, and clears the input text area;<\/p>\n<p> Undo\u00a0reverts the output text area to the state before the last append and replaces the input text area with the text removed from the output;<\/p>\n<p> The application supports unlimited\u00a0undos, i.e., all appends can be undone.<\/p>\n<p> Follow these steps:<\/p>\n<p> Download the\u00a0AppendUndoGUI.zip\u00a0(http:\/\/web.cse.ohio-state.edu\/software\/common\/AppendUndoGUI.zip) file and import a new project from it.<\/p>\n<p> Explore the new project and all its components. You will find the main class\u00a0AppendUndoGUI.java\u00a0and the interfaces updated to support the new functionality of the application. You can open the\u00a0doc\/index.html\u00a0file in a browser to review the documentation for the components provided.<\/p>\n<p> Your task is to provide the three classes:\u00a0AppendUndoModel1,\u00a0AppendUndoView1, and\u00a0AppendUndoController1\u00a0so that they implement the corresponding interfaces. The easiest way to get started is to copy the\u00a0DemoModel1.java,\u00a0DemoView1.java, and\u00a0DemoController1.java\u00a0files from the\u00a0DemoGUI3\u00a0project into the\u00a0src\u00a0directory of the\u00a0AppendUndoGUI\u00a0project, rename them appropriately, and then edit them until all compiler errors are gone and their behavior matches the corresponding interfaces.<br \/> Note 1: do not modify the given interfaces in any way.<br \/> Note 2: if you cannot get everything compiling and\/or working it is OK. You will get a chance to complete this task in lab with help from the instructors. However, you should try to get as far as you can on your own.<\/p>\n<p> An executable demo version of the modified application is available. To run the demo, download the demo archive,\u00a0append-undo-gui.zip, to your computer. Click on this\u00a0download link\u00a0(http:\/\/web.cse.ohio-state.edu\/software\/common\/append-undo-gui.zip) and save the file somewhere on your hard drive where you can easily find it. Make sure that you\u00a0do not\u00a0expand this archive. If your browser automatically expands downloaded zip archives, that&#8217;s OK too. Just pay attention to the special instructions in the following few steps. You may want to make a note of where you saved it.<\/p>\n<p> Import your new project in Eclipse by following these steps:<\/p>\n<p> From the\u00a0File\u00a0menu select\u00a0Import&#8230;.<\/p>\n<p> In the new window, expand\u00a0General\u00a0and select\u00a0Existing Projects into Workspace. Click\u00a0Next.<\/p>\n<p> Click on the radio button next to\u00a0Select archive file\u00a0and then click the\u00a0Browse&#8230;\u00a0button. (If the archive was expanded when you downloaded the file to your own computer, click on\u00a0Select root directory&#8230;\u00a0instead.)<\/p>\n<p> In the file selection window, find the\u00a0append-undo-gui.zip\u00a0file and select it. (If your browser expanded the archive, find the\u00a0append-undo-gui\u00a0directory instead.) Click\u00a0OK.<\/p>\n<p> Click\u00a0Finish.<\/p>\n<p> To run the program, find the\u00a0RunAppendUndo.java\u00a0file in the\u00a0src\u00a0folder in the project and run it as usual as a Java Application.<\/p>\n<p> For your homework, turn in text files of the code from the three files\u00a0AppendUndoModel1.java,\u00a0AppendUndoView1.java, and\u00a0AppendUndoController1.java.<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Homework: Modify MVC GUI Application You should work in Eclipse or another Java code compiler. An MVC GUI Application For this assignment, instead of creating a new project, you will\u00a0import\u00a0a project already set-up for you. First you need to download the project,\u00a0DemoGUI3.zip, to your computer. Click on this\u00a0download link\u00a0(http:\/\/web.cse.ohio-state.edu\/) and save the file somewhere on [&hellip;]<\/p>\n","protected":false},"author":1,"featured_media":0,"comment_status":"closed","ping_status":"closed","sticky":false,"template":"","format":"standard","meta":{"footnotes":""},"categories":[1],"tags":[10],"class_list":["post-79271","post","type-post","status-publish","format-standard","hentry","category-research-paper-writing","tag-writing"],"_links":{"self":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/79271","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/users\/1"}],"replies":[{"embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/comments?post=79271"}],"version-history":[{"count":0,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/posts\/79271\/revisions"}],"wp:attachment":[{"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/media?parent=79271"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/categories?post=79271"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/papersspot.com\/blog\/wp-json\/wp\/v2\/tags?post=79271"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}