From 2a806db333426dd20f5abbfacaf7d3f327668ca6 Mon Sep 17 00:00:00 2001 From: Arfa Amer Butt <buttaa3@mcmaster.ca> Date: Thu, 17 Nov 2016 00:02:46 -0500 Subject: [PATCH] Tutorial now displays tutorial image and the back button --- Game_Code/src/view/Tutorial.java | 5 ++++- 1 file changed, 4 insertions(+), 1 deletion(-) diff --git a/Game_Code/src/view/Tutorial.java b/Game_Code/src/view/Tutorial.java index 082720e..9dac586 100644 --- a/Game_Code/src/view/Tutorial.java +++ b/Game_Code/src/view/Tutorial.java @@ -1,5 +1,6 @@ package view; +import java.awt.GridBagLayout; import java.awt.event.ActionListener; import javax.swing.ImageIcon; @@ -31,6 +32,7 @@ public class Tutorial extends JFrame{ * Setups for the window */ super("FaultInOurPong - Tutorial"); + this.setLayout(new GridBagLayout()); this.setSize(700,500); this.setResizable(false); this.setLocationRelativeTo(null); @@ -40,7 +42,8 @@ public class Tutorial extends JFrame{ */ this.add(new JLabel(img)); back = new JButton("Back"); - //this.add(back); + this.add(back); + this.setDefaultCloseOperation(EXIT_ON_CLOSE); } -- GitLab