Presentation is loading. Please wait.

Presentation is loading. Please wait.

SE-1021 Software Engineering II

Similar presentations


Presentation on theme: "SE-1021 Software Engineering II"— Presentation transcript:

1 SE-1021 Software Engineering II
5/23/2019 SE-1021 Software Engineering II Week 5, Class 3 Completing the Calculator GUI layout SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick Dr. Josiah Yoder

2 How can we create this calculator layout?
Modify the code below to put the operators above the buttons… 112344 5 + - * / 1 2 3 4 6 7 8 9 /// in the constructor… setLayout(new BorderLayout()); JPanel panel = createButtonPanel(); add(panel,BorderLayout.CENTER); public JPanel createOperationPanel() { JPanel panel = new JPanel(); panel.add(new JButton("+")); panel.add(new JButton("-")); panel.add(new JButton("*")); panel.add(new JButton("/")); return panel; } SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick

3 Get to know your classmates
Turn to a neighbor, and find out who traveled farther over Christmas break When you have determined who traveled farther, that person should raise his hand SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick

4 What do we need to do to get our GUI to respond?
In your groups of 2… Write a list of as many things that you can think of as possible to complete the GUI application. Favor quantity over quality SE-2811 Dr. Josiah Yoder Slide style: Dr. Hornick


Download ppt "SE-1021 Software Engineering II"

Similar presentations


Ads by Google