Loading src/main/java/ch15/Button1.java +3 −1 Changes for src/main/java/ch15/Button1.java: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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); Loading Loading
src/main/java/ch15/Button1.java +3 −1 Changes for src/main/java/ch15/Button1.java: 3 added lines, 1 removed line. Original line number Diff line number Diff line Loading @@ -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); Loading