Java Assignment
Java Assignment
Figure 1. Frame
Questions
a. Develop a Java program to construct a graphical user interface (GUI) as depicted in Figure 1, with
dimensions of 250 pixels by 300 pixels.
b. Attach an action listener to each button. When a button is clicked, calculate the corresponding
operation (addition, subtraction, multiplication, division, or modulo) on the values in the first and
second text fields. Display the result in the result text field. Implement an action listener for the
exit button to close the application window.
Good luck!