Paper Writing Services main method of the class does notng more than create an object of the class. The constructor of the class creates and

Abstract
a single class. The main method of the class does notng more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed. 6. The class must inherit from JFrame as the following demonstrates: public myGUI extends JFrame { … }

Week 3 Programming Assignment Create Java programs for the following two problems. 1. Write a Java application to display the following GUI. At ts point you are only implementing the display. We are not ready to make the calculator actually do any calculations! COMP274-Lab3_v2_Calculator Ts program has the following requirements: 1. The size of the calculator is 250 x 250 pixels. 2. The background and foreground color of the calculator buttons must alternate in a checker board pattern as shown above. You can choose any pair of colors for your foreground and background colors. 3. The buttons should have at least 5 pixels of space between them. 4. The text on the buttons should be SanSerif size 16 and be bold. 5. Your application should be implemented in a single class. The main method of the class does notng more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed. 6. The class must inherit from JFrame as the following demonstrates: public myGUI extends JFrame { … } The extends keyword specifies inheritance. Inside the class you can directly access methods of the JFrame class without specifying an object due to inheritance. So when you want to add sometng to the frame, simply say add(someComponent); You can specify the title of the window in your constructor by simply adding the following line as the first tng in your constructor. super(“Title of your window!”); 2. Write a Java application to display the following GUI. At ts point you are only implementing the display. COMP274-lab3_v2_Align Ts program has the following requirements: 1. The textfield should accommodate 3 characters. 2. The V1 and V2 labels should be next to the corresponding textfields. nt: Put each label and its adjacent text field into a panel, then put both panels into another panel! 3. The buttons should have 10 pixels horizontal spacing and 5 pixels vertical spacing. 4. For the layout of the JFrame, use FlowLayout( FlowLayout.CENTER, 10, 5). 5. Your application should be implemented in a single class. The main method of the class does notng more than create an object of the class. The constructor of the class creates and displays the GUI. The constructor may call other methods of the class if needed. 6. Do not use inheritance for ts program. Use a JFrame member variable as the main window object for ts program. Take screen shots of the output of programs 1 & 2. Paste the screen shots and your source code for your programs into a Word document. Please place tngs in the following order: Screen shot of problem 1. Code for probem 1. Screen shot of problem 2. Code for problem 2.

Sample references
  • (‘Benner, P. (1982). From novice to expert. AJN The American Journal of Nursing, 82(3),402-407.’,)
  • (‘Blackford, J. C., and F. J. Gilbert. 2007. pH variability and CO2 induced acidification in the North Sea. Journal of Marine Systems 64 (1-4):229-241.’,)
  • (‘Hu, P. S., and T. R. Reuscher. 2005. Summary of Travel Trends: 2001 National Household Travel Survey, Report FHWA-PL-07-010. Washington, DC: Federal Highway Administration, U.S. Department of Transportation.’,)
  • (‘Keith, D. W., J. F. Decarolis, D. C. Denkenberger, D. H. Lenschow, S. L. Malyshev, S. Pacala, and P. J. Rasch. 2004. The influence of large-scale wind power on global climate. Proceedings of the National Academy of Sciences of the United States of America 101(46):16115-16120.’,)

Need your ASSIGNMENT done? Use our paper writing service to score better and meet your deadline.


Click Here to Make an Order Click Here to Hire a Writer