Be the first to like this
Create Java programs for the following two problems.
Write a Java application to display the following GUI. At this point you are only implementing the display. We are not ready to make the calculator actually do any calculations!
This program has the following requirements:
The size of the calculator is 250 x 250 pixels.
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.
The buttons should have at least 5 pixels of space between them.
The text on the buttons should be SanSerif size 16 and be bold.
Your application should be implemented in a single class. The main method of the class does nothing 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.
The class must inherit from JFrame as the following demonstrates: