2080 2

BIT401 ยท 2080 ยท 10 marks

Write a Java program to create a UI with three labels and three text boxes for First Number, Second Number and Result. Also put Four buttons (Add, Subtract, Multiply, and Divide) in the form and handle the event accordingly.

Write a Java program to create a UI with three labels and three text boxes for First Number, Second Number and Result. Also put Four buttons (Add, Subtract, Multiply, and Divide) in the form and handle the event accordingly.[10]

Advanced Java ProgrammingChapter 3: GUI Programming with AWT and SwingText boxes and text fields

Feature Description ---------------------- JFrame Main window container JLabel Display text labels for input fields JTextField Input fields for numbers; result field is non-editable JButton Four operation buttons ActionListener Interface to handle button click events GridLayout Arranges component...