package diploma;

import javax.swing.*;
import java.awt.Dimension;
import javax.swing.BorderFactory;
import java.awt.event.KeyEvent;

public class EditManualPanel extends JPanel {
		JEditorPane comandaEditorPane;
		JButton editManButton;
	public EditManualPanel() {
		setLayout(new BoxLayout(this, BoxLayout.X_AXIS));
		setOpaque(true);
		comandaEditorPane = new JEditorPane();
		comandaEditorPane.setContentType("text/html");
		comandaEditorPane.setEditable(false);
		JScrollPane comSqlScPane = new JScrollPane(comandaEditorPane, 
				JScrollPane.VERTICAL_SCROLLBAR_ALWAYS, 
				JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
		comSqlScPane.setPreferredSize(new Dimension(450, 60));
		comSqlScPane.setMaximumSize(new Dimension(550, 80));
		editManButton = new JButton("Editeazã comanda");
		editManButton.setMnemonic(KeyEvent.VK_E);
		add(comSqlScPane);
		add(Box.createHorizontalStrut(10));
		add(Box.createHorizontalGlue());
		add(editManButton);
		setBorder(BorderFactory.createCompoundBorder(
			BorderFactory.createCompoundBorder(
				BorderFactory.createEmptyBorder(4, 5, 2, 5),
				BorderFactory.createTitledBorder("Comandã MYSQL")), 
			BorderFactory.createEmptyBorder(3, 6, 4, 6))); 
	}
}
