The civil war and the late 1800s

what future of the untied states helped industry grow quickly in the country after the civil war? 1. the united states had worlds best engineers. 2. american workers worked harder then european workers. Part I Design a class called MyJFrame to produce output similar to Figures I - IV Figure I – Create a frame that is inherited from the class JFrame. The frame must contain only a title. Size the frame according to your liking. St the background color and foreground color to your liking. Figure II - Create a menu bar object and set it in place. Next, add menu choices onto the menu bar as shown. Figure III – For the menu choice File, add menu items as shown in Figures III. Place separators where indicated in the Figure. Figure IV – For the menu choice Tools, create a cascading menu for the menu choice Edit. This submenu must contain menu items as shown in the Figure. Design a class called DisplayText that accepts two strings - the first string represents the name of a file, and the second string, the contents of the file, which must be displayed in an editable scrollable pane. Note: when File- New is selected, the output should be similar to Figure V. Figure V Note: when File- ListFiles is selected, the output should be similar to Figure VI. Figure VI Use the class called BasicFile from assignment 3, to select and read file and load its contents as shown in Figure Figure VII. Figure VII Further requirements – in the class DisplayText (a) Write a method called selectText(). This method captures any text that is selected by the mouse. (b) Write a method called insertText(String, int) that inserts the text that was capture by selectText() and places the text wherever in the text you want it to be placed. (c) Implement the Copy – Paste option, that it can copy from one window and paste to another window. Part II Continuing your graphical interface program add four buttons to your frame as shown below. Figure VIII You may want to consider the following as guide: Buttons gridx gridy Insets fill gridwidth Drawing 0 0 0, 40, 0, 150 Close 2 0 Image 0 1 50, 225, 50, 150 Browser 0 2 0, 125, 0, 125 HORIZONTAL 3 Remember this is only a guide – these constraints are relative to the frame size. Adding Further Functionality to your GUI Continuing your graphical interface program, do the following: • Create an anonymous WindowListener class such that when you click the close button on your frame, a child frame (JOptionPane) appears, similar to Figure IX - the application must also terminate. Figure IX The Browser • Write a class called Browser that downloads information from a website when the horizontal button marked Browser on your frame is pressed, as in Figure X Design your code so that when a document is being downloaded, the cursor changes to another style, and after the information is loaded, it changes back to its original style. . Figure X • Write a class called MyGraphics.java, when the image button on your frame is pressed, a new frame appears as shown in Figure below. In carrying out this exercise bear the following in mind: • Use the class JFrame to create your drawing. • Create the star and the front of the house using the class Polygon • Create the door of the house using the method fillRect. Finish the house using freehand drawing. Use freehand drawing for the tree also. • Use the Font class to write the label - use a font that you like- a style and size that are appealing to you. • In your presentation, choose colors that appeal to you also. YOU ARE NOT RESPONSIBLE FOR ADDING FUNCTIONALITIES TO THE OPTIONS – SORT and SEARCH