Commit e7144c9d authored by Trisha Gee's avatar Trisha Gee
Browse files

[Ch15] Button1 north button

parent 86cec634
Loading
Loading
Loading
Loading
+2 −2
Changes for src/main/java/ch15/Button1.java: 2 added lines, 2 removed lines.
Original line number Diff line number Diff line
@@ -11,8 +11,8 @@ public class Button1 {

  public void go() {
    JFrame frame = new JFrame();
    JButton button = new JButton("click like you mean it");
    frame.getContentPane().add(BorderLayout.EAST, button);
    JButton button = new JButton("There is no spoon...");
    frame.getContentPane().add(BorderLayout.NORTH, button);
    frame.setSize(200, 200);
    frame.setVisible(true);
  }