public TranslatePanel() {
		super();
		setPreferredSize(new Dimension(600, 400));
		
		BoxLayout layout = new BoxLayout(this, BoxLayout.Y_AXIS);
		//setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
		setLayout(layout);
		
		add(Box.createRigidArea(new Dimension(0,130)));
		
		errorMsgLabel = new JLabel(" ");
		errorMsgLabel.setAlignmentX(Component.CENTER_ALIGNMENT);
		errorMsgLabel.setForeground(Color.RED);
		add(errorMsgLabel);
		
		JPanel xmlNamePane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
		xmlNamePane.add(new JLabel("Enter the XML file name"));
		xmlNamePane.add(getXmlNameField());
		xmlNamePane.add(new JLabel("                                "));
		xmlNamePane.setAlignmentX(Component.CENTER_ALIGNMENT);
		add(xmlNamePane, layout);
		
		JPanel directoryPane = new JPanel(new FlowLayout(FlowLayout.TRAILING));
		directoryPane.add(new JLabel("Save to"));
		directoryPane.add(getPathField());
		directoryPane.add(new JLabel(" "));
		directoryPane.add(getBrowseButton());
		directoryPane.add(new JLabel("  "));
		directoryPane.setAlignmentX(Component.CENTER_ALIGNMENT);
		add(directoryPane, layout);
		
		JPanel bottomPanel = new JPanel(new FlowLayout(FlowLayout.TRAILING));
		bottomPanel.add(getTranslateButton());
		bottomPanel.add(getPrevButton());
		bottomPanel.add(new JLabel("                                "));
		bottomPanel.add(new JLabel("                                "));
		bottomPanel.setAlignmentX(Component.CENTER_ALIGNMENT);
		add(bottomPanel, layout);
		
		add(Box.createRigidArea(new Dimension(0,130)));
	}