public void addMoveButton(){
     panel=0;		

     final JButton BackButton = new JButton("назад");
     BackButton.setPreferredSize(new Dimension(220,60));
     BackButton.setFont(arrFont);
     BackButton.setEnabled(false);
     final JButton ForwardButton = new JButton("вперёд");
     ForwardButton.setPreferredSize(new Dimension(220,60));
     ForwardButton.setFont(arrFont);
    if(p==0) ForwardButton.setEnabled(false);
     BackButton.addActionListener(new ActionListener() { 
			public void actionPerformed(ActionEvent ev) {
				Layout(--panel);
				ForwardButton.setEnabled(true);
				if(panel>0) BackButton.setEnabled(true);
				else BackButton.setEnabled(false);
			} 
		});
   
     ForwardButton.addActionListener(new ActionListener() { 
			public void actionPerformed(ActionEvent ev) { 
				
				Layout(++panel);
				BackButton.setEnabled(true);
				if(panel==p) ForwardButton.setEnabled(false);
				else BackButton.setEnabled(true);
			} 
		});	
     
     MovePanel.add(BackButton);
     MovePanel.add(ForwardButton);
	}