public void update(){
			try{
				Integer.parseInt(buynumber.getText());}
			catch(NumberFormatException nf){
				return;
			}
			try{
				Integer.parseInt(sellnumber.getText());}
			catch(NumberFormatException nf){
				return;
			}
			calcStats();
			refresh();
		}