public void actionPerformed(ActionEvent e){
		int buttnum = 0;
		for(int a = 0; a < butts.length; a++){
			if(e.getSource() == butts[a]){buttnum  = a;}
		}
		switch(buttnum){
			case 0:command = 300; fireucEvent(); break;//Select by Brush
			case 1:command = 301; fireucEvent(); break;//Select Rectangle
			case 2:command = 302; fireucEvent(); break;//select all
			case 3:command = 303; fireucEvent(); break;//invert selection
			case 4:command = 304; fireucEvent(); break;//deselect
		}
		}