public final void setFrame()
			{
				try
					{
						if (icons.size() == 0)
							icons.add(ImageIO.read(Frame.class.getResource("/logo.png")));
					}
				catch (IOException e)
					{
						System.out.println("LOGO not located");
					}

				addComponentListener(TCode.input);

				if (TCode.frameWidth == 0)
					TCode.frameWidth = TCode.screenWidth;
				if (TCode.frameHeight == 0)
					TCode.frameHeight = TCode.screenHeight;

				setTitle();
				setBounds((TCode.screenWidth / 2) - (TCode.frameWidth / 2), (TCode.screenHeight / 2) - (TCode.frameHeight / 2), TCode.frameWidth, TCode.frameHeight);
				super.setIconImages(icons);
				setUndecorated(!framed);

				// Manage WindowEvents
				setDefaultCloseOperation(DO_NOTHING_ON_CLOSE);
				addWindowListener(new WindowAdapter() {
					// Open an exit dialogue box if the user tries to exit
					public void windowClosing(WindowEvent event)
						{
							int answer = JOptionPane.showConfirmDialog(null, "Are you sure you want to quit?", "Exit program?", JOptionPane.YES_NO_OPTION);
							if (answer == JOptionPane.YES_OPTION)
								{
									System.exit(0);
								}
						}
				});

				setResizable(resizable);

				setVisible(true);

				TCode.canvasWidth = getWidth() - getInsets().left - getInsets().right;
				TCode.canvasHeight = getHeight() - getInsets().top - getInsets().bottom;
			}