private VamixWindow() {
		
		//if download button is pressed, open a new frame
		_download.addActionListener(new ActionListener() {
			
			JFrame downloadFrame = null;
			
			public void actionPerformed(ActionEvent e) {
				
				//if download was pressed and no frame came up, open the frame
				if(downloadFrame == null){
					downloadFrame = new DownloadFrame();
				}

				downloadFrame.setVisible(!downloadFrame.isVisible());
				
			}
		});
		
		//when the play button is pressed, open a new PlayFrame
		_play.addActionListener(new ActionListener() {
			
			JFrame playFrame = null;
			
			public void actionPerformed(ActionEvent e) {
				if(playFrame == null || playFrame.isVisible() == false){
					JFileChooser chooseFile = new JFileChooser();
					//filter the file types
					FileNameExtensionFilter filter = new FileNameExtensionFilter("Audio & Video files", "mp4", "avi"
							, "mp3", "mov", "aac", "mkv");
					chooseFile.setFileFilter(filter);
					
					//set directory to be current directory
					File dir = new File(System.getProperty("user.dir"));
					chooseFile.setCurrentDirectory(dir);
					int result = chooseFile.showDialog(null, null);

					if (chooseFile.getSelectedFile() == null) {
						try {
							_dirPath = null;
							playFrame.dispose();
						} catch (NullPointerException arg0) {
							// do nothing
						}
					} else if(result == JFileChooser.APPROVE_OPTION) {
						if(chooseFile.getSelectedFile() != null){

							_dirPath = chooseFile.getSelectedFile().getAbsolutePath();
							
						}
					}
					if (_dirPath != null) {
						// open a new PlayFrame
						playFrame = new PlayFrame(_dirPath);
					}
				}
			}
		});
		
		//when the extract option is chosen, open a new ExtractFrame
		_extract.addActionListener(new ActionListener(){

			JFrame extractFrame = null;
			@Override
			public void actionPerformed(ActionEvent e) {
				if(extractFrame == null){
					extractFrame = new ExtractFrame();
				}
				extractFrame.setVisible(!extractFrame.isVisible());
			}
					
		});
		
		//when Help button is clicked, open the ReadMe window
		_readme.addActionListener(new ActionListener(){

			@Override
			public void actionPerformed(ActionEvent arg0) {
				ReadMe readme = new ReadMe();
				readme.setVisible(true);
			}
					
		});
		
	}