Commit 39fd926f authored by Trisha Gee's avatar Trisha Gee
Browse files

[Ch15] Button1 north button HUGE

parent e7144c9d
Loading
Loading
Loading
Loading
+3 −1
Changes for src/main/java/ch15/Button1.java: 3 added lines, 1 removed line.
Original line number Diff line number Diff line
@@ -11,7 +11,9 @@ public class Button1 {

  public void go() {
    JFrame frame = new JFrame();
    JButton button = new JButton("There is no spoon...");
    JButton button = new JButton("Click This!");
    Font bigFont = new Font("serif", Font.BOLD, 28);
    button.setFont(bigFont);
    frame.getContentPane().add(BorderLayout.NORTH, button);
    frame.setSize(200, 200);
    frame.setVisible(true);