public void animateToHeight(final int height){
		final int startFrameHeight = frame.getHeight();
		for( ActionListener aL : animationTimer.getActionListeners()){
        	animationTimer.removeActionListener(aL);
    	}
		animationTimer.addActionListener(new ActionListener(){
        	public void actionPerformed(ActionEvent event){
        		if(height > startFrameHeight){
					frame.setSize(frame.getWidth(),frame.getHeight()+10);
					if(frame.getHeight() >= height){
						animationTimer.stop();
					}
				}else{
					frame.setSize(frame.getWidth(),frame.getHeight()-10);
					if(frame.getHeight() <= height){
						animationTimer.stop();
					}
				}
			}
        });
        animationTimer.start();
	}