JPanel panel = new JPanel();
panel.setLayout(new BorderLayout());
panel.setBorder(new EtchedBorder());
panel.add(new JLabel("ModelName:"), BorderLayout.NORTH);
JTextField field = new JTextField(graph.getModel().getModelName(), 50);
field.addActionListener(new ActionListener() {
public void actionPerformed(ActionEvent e) {
if (!graph.getModel().getModelName().equals(e.getActionCommand())) {
// GuiUtils.updateGraphModelName(getState(),
// graph.getModel().getModelId(), e.getActionCommand());