@Override
		public void actionPerformed(ActionEvent e) {
			JMenuItem source = (JMenuItem) e.getSource();
			if(source.equals(toolbox)){
				tb.setVisible(!tb.isShowing());
			}else if(source.equals(figlist)){
				fl.setVisible(!fl.isShowing());
			}else if(source.equals(percent25) || source.equals(percent50)){
				p.setMagnifyingLevel(Double.parseDouble(source.getText().substring(0, 2))/100);
			}else if(source.equals(percent) || source.equals(percent150) || source.equals(percent250)){
				p.setMagnifyingLevel(Double.parseDouble(source.getText().substring(0, 3))/100);
			}
		}