Skip to content
Snippets Groups Projects
Commit 2a806db3 authored by Arfa Butt's avatar Arfa Butt
Browse files

Tutorial now displays tutorial image and the back button

parent 097e88de
No related branches found
No related tags found
No related merge requests found
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);
}
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment