CSC113_Tutorial8 - • On pressing “*” button, product...

Info iconThis preview shows pages 1–2. Sign up to view the full content.

View Full Document Right Arrow Icon
King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011 Tutorial#8 : GUI Write a small Calculator in Java that can perform Addition and Multiplication with following sample GUI. For more explanation, see the procedure after images. User enters numbers in the provided fields On pressing “+” butt on, sum would be displayed in the answer field
Background image of page 1

Info iconThis preview has intentionally blurred sections. Sign up to view the full version.

View Full DocumentRight Arrow Icon
King Saud University College of Computer and Information Systems, Department of Computer Science CSC 113: Java Programming-II, Spring2011 Tutorial#8 : GUI User enters numbers in the provided fields
Background image of page 2
This is the end of the preview. Sign up to access the rest of the 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

Page1 / 2

CSC113_Tutorial8 - • On pressing “*” button, product...

This preview shows document pages 1 - 2. Sign up to view the full document.

View Full Document Right Arrow Icon
Ask a homework question - tutors are online