This preview shows pages 1–2. Sign up to view the full content.
This preview has intentionally blurred sections. Sign up to view the full version.View Full Document
Unformatted text preview: • On pressing “*” button, product would be displayed in the answer field Procedure: Create a class “SmallCalculator” . JFrame will be the super class of this class and this class will also implement the ActionListener interface to implement the event handler. Add attributes of type JButton, JTextField and JLabel to Design the above interface. Layout Manager for the above GUI is FlowLayout. You can choose some other Layout also. You can also add attributes and methods to implement the functionality. Create a Test(Main) Class to run the show....
View Full Document
- Spring '11
- Java Programming