public DrawingFrame(GnomonDrawing gnomon, DialDrawing dial) {
		 	
			//Initiliazing variables
			this.gnomon = gnomon;
			this.dial = dial;
			
			//Getting the width and height of screen
			this.width = Toolkit.getDefaultToolkit().getScreenSize().width;
			this.height = Toolkit.getDefaultToolkit().getScreenSize().height;
			
			//Creating tabpane, menu bar, and file menu
			tab = new JTabbedPane();
			JMenuBar menubar = new JMenuBar();
			JMenu menu1 = new JMenu ("File");
			
			
			//Adding Panels in tab
			tab.addTab("Gnomon", this.gnomon);
			tab.addTab("Sundial", this.dial);
		    
			
			
			//add the menu functions to the listener
			print.addActionListener(this);
			save.addActionListener(this);
			exit.addActionListener(this);
			
			//Add the menu items in the menu
			menu1.add(print);
			menu1.add(save);
			menu1.add(exit);
			//Add the menu in the menu bar
			menubar.add(menu1);
			
			//Add the menubar in the frame
			this.setJMenuBar(menubar);
			//Add the tabs in the frame
			this.setContentPane(tab);
			this.setDefaultCloseOperation(EXIT_ON_CLOSE);
		    this.setSize(this.width, this.height);
		    this.setVisible(true);
	}