1 / 4

SE-1021 Software Engineering II

SE-1021 Software Engineering II. Week 5, Class 3 Completing the Calculator GUI layout. How can we create this calculator layout?. 112344. 5. Modify the code below to put the operators above the buttons…. +. -. *. /. /// in the constructor… setLayout(new BorderLayout());

daryltaylor
Download Presentation

SE-1021 Software Engineering II

An Image/Link below is provided (as is) to download presentation Download Policy: Content on the Website is provided to you AS IS for your information and personal use and may not be sold / licensed / shared on other websites without getting consent from its author. Content is provided to you AS IS for your information and personal use only. Download presentation by click this link. While downloading, if for some reason you are not able to download a presentation, the publisher may have deleted the file from their server. During download, if you can't get a presentation, the file might be deleted by the publisher.

E N D

Presentation Transcript


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

  2. How can we create this calculator layout? 112344 5 Modify the code below to put the operators above the buttons… + - * / /// in the constructor… setLayout(new BorderLayout()); JPanel panel = createButtonPanel(); add(panel,BorderLayout.CENTER); 3 1 2 6 4 5 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; } 9 7 8 0 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

More Related