Example usage for com.jgoodies.forms.layout Sizes PREFERRED

List of usage examples for com.jgoodies.forms.layout Sizes PREFERRED

Introduction

In this page you can find the example usage for com.jgoodies.forms.layout Sizes PREFERRED.

Prototype

ComponentSize PREFERRED

To view the source code for com.jgoodies.forms.layout Sizes PREFERRED.

Click Source Link

Document

Use the maximum of all component preferred sizes as column or row size.

Usage

From source file:com.spirit.medios.gui.panel.JPCampana.java

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    jtpCampana = new JideTabbedPane();
    panelCampana = new JPanel();
    lblCodigo = new JLabel();
    txtCodigo = new JTextField();
    lblNombre = new JLabel();
    lblCorporacion = new JLabel();
    txtCorporacion = new JTextField();
    btnBuscarCorporacion = new JButton();
    txtNombre = new JTextField();
    lblCliente = new JLabel();
    btnBuscarCliente = new JButton();
    txtCliente = new JTextField();
    lblFechaInicio = new JLabel();
    cmbFechaInicio = new DateComboBox();
    lblEstado = new JLabel();
    cmbEstado = new JComboBox();
    lblPublicoObjetivo = new JLabel();
    txtPublicoObjetivo = new JTextField();
    txtObservacion = new JTextField();
    lblObservacion = new JLabel();
    panelProductoCliente = new JPanel();
    spCbListProductos = new JScrollPane();
    cbListProductos = new CheckBoxList();
    btnSeleccionarTodo = new JButton();
    btnDeseleccionarTodo = new JButton();
    panelVersion = new JPanel();
    lblCodigoProducto2 = new JLabel();
    txtCodigoVersion = new JTextField();
    lblEstadoProducto2 = new JLabel();
    cmbEstadoVersion = new JComboBox();
    lblMarca2 = new JLabel();
    cmbProducto = new JComboBox();
    btnActualizarProductos = new JButton();
    lblComercial = new JLabel();
    txtNombreVersion = new JTextField();
    panelBotonesVersion = new JPanel();
    btnAgregarVersion = new JButton();
    btnActualizarVersion = new JButton();
    btnEliminarVersion = new JButton();
    spTblVersion = new JScrollPane();
    tblVersion = new JTable();
    panelDetalle = new JPanel();
    cmbZonaCliente = new JComboBox();
    lblParticipacion = new JLabel();
    txtParticipacion = new JTextField();
    lblRestante = new JLabel();
    txtRestante = new JTextField();
    txtDescripcionDetalle = new JTextField();
    spDetalleCampana = new JScrollPane();
    tableDetalleCampana = new JTable();
    lblZonaCliente = new JLabel();
    lblDescripcionDetalle = new JLabel();
    panel2 = new JPanel();
    btnEliminarDetalle = new JButton();
    btnAgregarDetalle = new JButton();
    panelBrief = new JPanel();
    lblTipoBrief = new JLabel();
    cmbTipoBrief = new JComboBox();
    lblURLDescripcion = new JLabel();
    txtURLBrief = new JTextField();
    btnAgregarArchivoBrief = new JButton();
    lblDescripcionBrief = new JLabel();
    spDescripcionBrief = new JScrollPane();
    txtDescripcionBrief = new JTextArea();
    panel3 = new JPanel();
    btnAgregarBrief = new JButton();
    btnActualizarBrief = new JButton();
    btnEliminarBrief = new JButton();
    spBrief = new JScrollPane();
    tableBrief = new JTable();
    panelArchivo = new JPanel();
    lblFechaArchivo = new JLabel();
    cmbTipoArchivo = new JComboBox();
    lblURLArchivo = new JLabel();
    cmbFechaArchivo = new DateComboBox();
    txtURLArchivo = new JTextField();
    btnAgregarURLArchivo = new JButton();
    spArchivo = new JScrollPane();
    tableArchivo = new JTable();
    lblTipoArchivo = new JLabel();
    panel4 = new JPanel();
    btnAgregarArchivo = new JButton();
    btnActualizarArchivo = new JButton();
    btnEliminarArchivo = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setLayout(new FormLayout("default:grow", "fill:default:grow"));

    //======== jtpCampana ========
    {//w w  w.  j  a  v a2  s  . com

        //======== panelCampana ========
        {
            panelCampana.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("max(default;50dlu):grow"),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.PREF_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));
            ((FormLayout) panelCampana.getLayout())
                    .setColumnGroups(new int[][] { { 1, 17 }, { 3, 9 }, { 5, 13 } });

            //---- lblCodigo ----
            lblCodigo.setText("C\u00f3digo:");
            panelCampana.add(lblCodigo, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(txtCodigo, cc.xy(5, 3));

            //---- lblNombre ----
            lblNombre.setText("Nombre:");
            panelCampana.add(lblNombre, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- lblCorporacion ----
            lblCorporacion.setText("Corporaci\u00f3n:");
            panelCampana.add(lblCorporacion,
                    cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(txtCorporacion, cc.xywh(5, 7, 5, 1));
            panelCampana.add(btnBuscarCorporacion,
                    cc.xywh(11, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
            panelCampana.add(txtNombre, cc.xywh(5, 5, 5, 1));

            //---- lblCliente ----
            lblCliente.setText("Cliente:");
            panelCampana.add(lblCliente, cc.xywh(3, 9, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(btnBuscarCliente,
                    cc.xywh(11, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
            panelCampana.add(txtCliente, cc.xywh(5, 9, 5, 1));

            //---- lblFechaInicio ----
            lblFechaInicio.setText("Fecha Inicio:");
            panelCampana.add(lblFechaInicio,
                    cc.xywh(3, 11, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(cmbFechaInicio, cc.xy(5, 11));

            //---- lblEstado ----
            lblEstado.setText("Estado:");
            panelCampana.add(lblEstado, cc.xywh(3, 13, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(cmbEstado, cc.xy(5, 13));

            //---- lblPublicoObjetivo ----
            lblPublicoObjetivo.setText("Grupo Objetivo:");
            panelCampana.add(lblPublicoObjetivo,
                    cc.xywh(3, 15, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelCampana.add(txtPublicoObjetivo, cc.xywh(5, 15, 9, 1));
            panelCampana.add(txtObservacion, cc.xywh(5, 17, 9, 1));

            //---- lblObservacion ----
            lblObservacion.setText("Observaci\u00f3n:");
            panelCampana.add(lblObservacion,
                    cc.xywh(3, 17, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
        }
        jtpCampana.addTab("General", panelCampana);

        //======== panelProductoCliente ========
        {
            panelProductoCliente.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

            //======== spCbListProductos ========
            {
                spCbListProductos.setViewportView(cbListProductos);
            }
            panelProductoCliente.add(spCbListProductos, cc.xywh(3, 3, 5, 7));

            //---- btnSeleccionarTodo ----
            btnSeleccionarTodo.setText("Seleccionar todo");
            panelProductoCliente.add(btnSeleccionarTodo, cc.xy(9, 3));

            //---- btnDeseleccionarTodo ----
            btnDeseleccionarTodo.setText("Deseleccionar todo");
            panelProductoCliente.add(btnDeseleccionarTodo, cc.xy(9, 5));
        }
        jtpCampana.addTab("Productos", panelProductoCliente);

        //======== panelVersion ========
        {
            panelVersion.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(12)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(60)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(170)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(Sizes.dluX(49)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(12)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(12)) }));

            //---- lblCodigoProducto2 ----
            lblCodigoProducto2.setText("C\u00f3digo:");
            panelVersion.add(lblCodigoProducto2,
                    cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelVersion.add(txtCodigoVersion, cc.xy(5, 3));

            //---- lblEstadoProducto2 ----
            lblEstadoProducto2.setText("Estado:");
            panelVersion.add(lblEstadoProducto2,
                    cc.xywh(7, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- cmbEstadoVersion ----
            cmbEstadoVersion.setModel(new DefaultComboBoxModel(new String[] { "ACTIVO", "INACTIVO" }));
            panelVersion.add(cmbEstadoVersion, cc.xywh(9, 3, 2, 1));

            //---- lblMarca2 ----
            lblMarca2.setText("Producto:");
            panelVersion.add(lblMarca2, cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelVersion.add(cmbProducto, cc.xywh(5, 5, 3, 1));
            panelVersion.add(btnActualizarProductos,
                    cc.xywh(9, 5, 1, 1, CellConstraints.LEFT, CellConstraints.FILL));

            //---- lblComercial ----
            lblComercial.setText("Comercial:");
            panelVersion.add(lblComercial, cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelVersion.add(txtNombreVersion, cc.xywh(5, 7, 3, 1));

            //======== panelBotonesVersion ========
            {
                panelBotonesVersion
                        .setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));
                panelBotonesVersion.add(btnAgregarVersion,
                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
                panelBotonesVersion.add(btnActualizarVersion,
                        cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
                panelBotonesVersion.add(btnEliminarVersion,
                        cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
            }
            panelVersion.add(panelBotonesVersion, cc.xywh(3, 11, 5, 1));

            //======== spTblVersion ========
            {
                spTblVersion.setPreferredSize(new Dimension(452, 100));

                //---- tblVersion ----
                tblVersion.setModel(new DefaultTableModel(new Object[][] {},
                        new String[] { "C\u00f3digo", "Producto", "Comercial", "Estado" }) {
                    boolean[] columnEditable = new boolean[] { false, true, false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                tblVersion.setPreferredScrollableViewportSize(new Dimension(450, 300));
                tblVersion.setAutoResizeMode(JTable.AUTO_RESIZE_SUBSEQUENT_COLUMNS);
                tblVersion.setAutoCreateColumnsFromModel(true);
                spTblVersion.setViewportView(tblVersion);
            }
            panelVersion.add(spTblVersion, cc.xywh(3, 13, 9, 5));
        }
        jtpCampana.addTab("Comerciales", panelVersion);

        //======== panelDetalle ========
        {
            panelDetalle.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(25)),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));
            panelDetalle.add(cmbZonaCliente, cc.xywh(5, 3, 3, 1));

            //---- lblParticipacion ----
            lblParticipacion.setText("Participaci\u00f3n (%):");
            panelDetalle.add(lblParticipacion,
                    cc.xywh(11, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- txtParticipacion ----
            txtParticipacion.setEditable(true);
            panelDetalle.add(txtParticipacion, cc.xy(13, 3));

            //---- lblRestante ----
            lblRestante.setText("Restante (%):");
            panelDetalle.add(lblRestante, cc.xywh(15, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- txtRestante ----
            txtRestante.setEditable(true);
            panelDetalle.add(txtRestante, cc.xy(17, 3));
            panelDetalle.add(txtDescripcionDetalle, cc.xywh(5, 5, 13, 1));

            //======== spDetalleCampana ========
            {

                //---- tableDetalleCampana ----
                tableDetalleCampana.setModel(new DefaultTableModel(new Object[][] {},
                        new String[] { "Zona", "Participacion %", "Descripcion" }) {
                    boolean[] columnEditable = new boolean[] { false, false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                tableDetalleCampana.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
                tableDetalleCampana.setPreferredScrollableViewportSize(new Dimension(450, 160));
                spDetalleCampana.setViewportView(tableDetalleCampana);
            }
            panelDetalle.add(spDetalleCampana,
                    cc.xywh(3, 11, 15, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //---- lblZonaCliente ----
            lblZonaCliente.setText("Zona:");
            panelDetalle.add(lblZonaCliente,
                    cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- lblDescripcionDetalle ----
            lblDescripcionDetalle.setText("Observaci\u00f3n:");
            panelDetalle.add(lblDescripcionDetalle,
                    cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //======== panel2 ========
            {
                panel2.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- btnEliminarDetalle ----
                btnEliminarDetalle.setText("E");
                panel2.add(btnEliminarDetalle, cc.xy(3, 1));

                //---- btnAgregarDetalle ----
                btnAgregarDetalle.setText("A");
                panel2.add(btnAgregarDetalle, cc.xy(1, 1));
            }
            panelDetalle.add(panel2, cc.xywh(3, 9, 15, 1));
        }
        jtpCampana.addTab("Zonas", panelDetalle);

        //======== panelBrief ========
        {
            panelBrief.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(Sizes.dluY(40)), FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

            //---- lblTipoBrief ----
            lblTipoBrief.setText("Tipo de Brief:");
            panelBrief.add(lblTipoBrief, cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelBrief.add(cmbTipoBrief, cc.xy(5, 3));

            //---- lblURLDescripcion ----
            lblURLDescripcion.setText("Brief:");
            panelBrief.add(lblURLDescripcion,
                    cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //---- txtURLBrief ----
            txtURLBrief.setEditable(false);
            panelBrief.add(txtURLBrief, cc.xywh(5, 5, 3, 1));
            panelBrief.add(btnAgregarArchivoBrief,
                    cc.xywh(9, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //---- lblDescripcionBrief ----
            lblDescripcionBrief.setText("Observaci\u00f3n:");
            panelBrief.add(lblDescripcionBrief,
                    cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //======== spDescripcionBrief ========
            {

                //---- txtDescripcionBrief ----
                txtDescripcionBrief.setLineWrap(true);
                txtDescripcionBrief.setWrapStyleWord(false);
                spDescripcionBrief.setViewportView(txtDescripcionBrief);
            }
            panelBrief.add(spDescripcionBrief,
                    cc.xywh(5, 7, 5, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel3 ========
            {
                panel3.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- btnAgregarBrief ----
                btnAgregarBrief.setText("A");
                panel3.add(btnAgregarBrief, cc.xy(1, 1));

                //---- btnActualizarBrief ----
                btnActualizarBrief.setText("U");
                panel3.add(btnActualizarBrief, cc.xy(3, 1));

                //---- btnEliminarBrief ----
                btnEliminarBrief.setText("D");
                panel3.add(btnEliminarBrief, cc.xy(5, 1));
            }
            panelBrief.add(panel3, cc.xywh(3, 13, 9, 1));

            //======== spBrief ========
            {

                //---- tableBrief ----
                tableBrief.setModel(new DefaultTableModel(new Object[][] {},
                        new String[] { "Tipo", "Descripcion", "URL" }) {
                    boolean[] columnEditable = new boolean[] { false, false, false };

                    @Override
                    public boolean isCellEditable(int rowIndex, int columnIndex) {
                        return columnEditable[columnIndex];
                    }
                });
                tableBrief.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
                spBrief.setViewportView(tableBrief);
            }
            panelBrief.add(spBrief, cc.xywh(3, 15, 9, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        jtpCampana.addTab("Briefs", panelBrief);

        //======== panelArchivo ========
        {
            panelArchivo.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(10)), FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(Sizes.dluX(10)) },
                    new RowSpec[] { new RowSpec(Sizes.dluY(12)), FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.DLUY8),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.dluY(70), FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, new RowSpec(Sizes.dluY(10)) }));

            //---- lblFechaArchivo ----
            lblFechaArchivo.setText("Fecha:");
            panelArchivo.add(lblFechaArchivo,
                    cc.xywh(3, 5, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelArchivo.add(cmbTipoArchivo, cc.xywh(5, 3, 3, 1));

            //---- lblURLArchivo ----
            lblURLArchivo.setText("Archivo:");
            panelArchivo.add(lblURLArchivo,
                    cc.xywh(3, 7, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));
            panelArchivo.add(cmbFechaArchivo, cc.xywh(5, 5, 3, 1));

            //---- txtURLArchivo ----
            txtURLArchivo.setEditable(false);
            panelArchivo.add(txtURLArchivo, cc.xywh(5, 7, 5, 1));
            panelArchivo.add(btnAgregarURLArchivo,
                    cc.xywh(11, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== spArchivo ========
            {

                //---- tableArchivo ----
                tableArchivo.setModel(
                        new DefaultTableModel(new Object[][] {}, new String[] { "Tipo", "Fecha", "URL" }) {
                            boolean[] columnEditable = new boolean[] { false, false, false };

                            @Override
                            public boolean isCellEditable(int rowIndex, int columnIndex) {
                                return columnEditable[columnIndex];
                            }
                        });
                tableArchivo.setAutoResizeMode(JTable.AUTO_RESIZE_ALL_COLUMNS);
                spArchivo.setViewportView(tableArchivo);
            }
            panelArchivo.add(spArchivo, cc.xywh(3, 13, 11, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //---- lblTipoArchivo ----
            lblTipoArchivo.setText("Tipo de Archivo:");
            panelArchivo.add(lblTipoArchivo,
                    cc.xywh(3, 3, 1, 1, CellConstraints.RIGHT, CellConstraints.DEFAULT));

            //======== panel4 ========
            {
                panel4.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- btnAgregarArchivo ----
                btnAgregarArchivo.setText("A");
                panel4.add(btnAgregarArchivo, cc.xy(1, 1));

                //---- btnActualizarArchivo ----
                btnActualizarArchivo.setText("U");
                panel4.add(btnActualizarArchivo, cc.xy(3, 1));

                //---- btnEliminarArchivo ----
                btnEliminarArchivo.setText("D");
                panel4.add(btnEliminarArchivo, cc.xy(5, 1));
            }
            panelArchivo.add(panel4, cc.xywh(3, 11, 11, 1));
        }
        jtpCampana.addTab("Archivos", panelArchivo);

    }
    add(jtpCampana, cc.xy(1, 1));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:cz.vity.freerapid.gui.dialogs.MultipleSettingsDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    //ResourceBundle bundle = ResourceBundle.getBundle("MultipleSettingsDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel iconLabel = new JLabel();
    titleLabel = new JLabel();
    JLabel labelSize = new JLabel();
    fieldSize = new JTextField();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JPanel optionsPanel = new JPanel();
    JLabel saveToLabel = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JXButtonPanel buttonBar = new JXButtonPanel();
    okButton = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {/*from   w w w  .ja  v  a2 s.  c om*/
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- iconLabel ----
            iconLabel.setName("iconLabel");

            //---- titleLabel ----
            titleLabel.setName("titleLabel");
            titleLabel.setFont(new Font("Tahoma", Font.BOLD, 12));

            //---- labelSize ----
            labelSize.setName("labelSize");

            //---- fieldSize ----
            fieldSize.setBorder(null);
            fieldSize.setOpaque(false);
            fieldSize.setEditable(false);

            //---- labelDescription ----
            labelDescription.setName("labelDescription");

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(descriptionArea);
            }

            //======== optionsPanel ========
            {

                //---- saveToLabel ----
                saveToLabel.setName("saveToLabel");
                saveToLabel.setLabelFor(comboPath);

                //---- comboPath ----
                comboPath.setEditable(true);

                //---- btnSelectPath ----
                btnSelectPath.setName("btnSelectPath");

                PanelBuilder optionsPanelBuilder = new PanelBuilder(new FormLayout(
                        new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                        RowSpec.decodeSpecs("default")), optionsPanel);

                optionsPanelBuilder.add(saveToLabel, cc.xy(1, 1));
                optionsPanelBuilder.add(comboPath, cc.xy(3, 1));
                optionsPanelBuilder.add(btnSelectPath, cc.xy(5, 1));
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(Sizes.dluX(49)), FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(min;70dlu)") },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.TOP, Sizes.PREFERRED, FormSpec.NO_GROW),
                            FormSpecs.RELATED_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC,
                            FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(50)),
                                    FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC }),
                    contentPanel);

            contentPanelBuilder.add(iconLabel,
                    cc.xywh(1, 1, 1, 5, CellConstraints.DEFAULT, CellConstraints.FILL));
            contentPanelBuilder.add(titleLabel, cc.xywh(3, 1, 5, 1));
            contentPanelBuilder.add(labelSize, cc.xy(3, 3));
            contentPanelBuilder.add(fieldSize, cc.xywh(5, 3, 3, 1));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 9, 7, 1));
            contentPanelBuilder.add(optionsPanel, cc.xywh(1, 11, 7, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

            //---- okButton ----
            okButton.setName("okButton");

            //---- cancelButton ----
            cancelButton.setName("cancelButton");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, ColumnSpec.decode("max(pref;42dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 3, 5 } });

            buttonBarBuilder.add(okButton, cc.xy(3, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(5, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
}

From source file:cz.vity.freerapid.gui.dialogs.NewLinksDialog.java

@SuppressWarnings({ "deprecation" })
private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner Open Source Project license - unknown
    //ResourceBundle bundle = ResourceBundle.getBundle("NewLinksDialog");
    JPanel dialogPane = new JPanel();
    JPanel contentPanel = new JPanel();
    JLabel labelLinks = new JLabel();
    JScrollPane scrollPane1 = new JScrollPane();
    urlsArea = ComponentFactory.getURLsEditorPane();
    JLabel labelSaveTo = new JLabel();
    comboPath = new JComboBox();
    btnSelectPath = new JButton();
    JLabel labelDescription = new JLabel();
    JScrollPane scrollPane2 = new JScrollPane();
    descriptionArea = ComponentFactory.getTextArea();
    JXButtonPanel buttonBar = new JXButtonPanel();
    btnPasteFromClipboard = new JButton();
    okButton = new JButton();
    btnStartPaused = new JButton();
    cancelButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    Container contentPane = getContentPane();
    contentPane.setLayout(new BorderLayout());

    //======== dialogPane ========
    {//from  ww  w  . j  a  v a2  s . co m
        dialogPane.setBorder(Borders.DIALOG);
        dialogPane.setLayout(new BorderLayout());

        //======== contentPanel ========
        {

            //---- labelLinks ----
            labelLinks.setName("labelLinks");
            labelLinks.setLabelFor(urlsArea);

            //======== scrollPane1 ========
            {
                scrollPane1.setViewportView(urlsArea);
            }

            //---- labelSaveTo ----
            labelSaveTo.setName("labelSaveTo");
            labelSaveTo.setLabelFor(comboPath);

            //---- comboPath ----
            comboPath.setEditable(true);

            //---- btnSelectPath ----
            btnSelectPath.setName("btnSelectPath");

            //---- labelDescription ----
            labelDescription.setName("labelDescription");
            labelDescription.setLabelFor(descriptionArea);

            //======== scrollPane2 ========
            {
                scrollPane2.setViewportView(descriptionArea);
            }

            PanelBuilder contentPanelBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.DEFAULT_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, FormSpecs.MIN_COLSPEC },
                    new RowSpec[] { FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormSpecs.LINE_GAP_ROWSPEC, FormSpecs.DEFAULT_ROWSPEC, FormSpecs.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL,
                                    Sizes.bounded(Sizes.PREFERRED, Sizes.dluY(40), Sizes.dluY(55)),
                                    FormSpec.DEFAULT_GROW) }),
                    contentPanel);

            contentPanelBuilder.add(labelLinks, cc.xy(1, 1));
            contentPanelBuilder.add(scrollPane1, cc.xywh(1, 3, 5, 1));
            contentPanelBuilder.add(labelSaveTo, cc.xy(1, 5));
            contentPanelBuilder.add(comboPath, cc.xy(3, 5));
            contentPanelBuilder.add(btnSelectPath, cc.xy(5, 5));
            contentPanelBuilder.add(labelDescription, cc.xy(1, 7));
            contentPanelBuilder.add(scrollPane2, cc.xywh(3, 7, 3, 1));
        }
        dialogPane.add(contentPanel, BorderLayout.CENTER);

        //======== buttonBar ========
        {
            buttonBar.setBorder(new EmptyBorder(12, 0, 0, 0));

            //---- btnPasteFromClipboard ----
            btnPasteFromClipboard.setName("btnPasteFromClipboard");

            //---- okButton ----
            okButton.setName("okButton");

            //---- btnStartPaused ----
            btnStartPaused.setName("btnStartPaused");

            //---- cancelButton ----
            cancelButton.setName("cancelButton");

            PanelBuilder buttonBarBuilder = new PanelBuilder(new FormLayout(
                    new ColumnSpec[] { FormSpecs.PREF_COLSPEC, FormSpecs.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormSpecs.UNRELATED_GAP_COLSPEC, FormSpecs.PREF_COLSPEC,
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"),
                            FormSpecs.LABEL_COMPONENT_GAP_COLSPEC, ColumnSpec.decode("max(pref;50dlu)"), },
                    RowSpec.decodeSpecs("fill:pref")), buttonBar);
            ((FormLayout) buttonBar.getLayout()).setColumnGroups(new int[][] { { 5, 9 } });

            buttonBarBuilder.add(btnPasteFromClipboard, cc.xy(1, 1));
            buttonBarBuilder.add(okButton, cc.xy(5, 1));
            buttonBarBuilder.add(btnStartPaused, cc.xy(7, 1));
            buttonBarBuilder.add(cancelButton, cc.xy(9, 1));
        }
        dialogPane.add(buttonBar, BorderLayout.SOUTH);
    }
    contentPane.add(dialogPane, BorderLayout.CENTER);
}

From source file:edu.byu.plugins.editors.panels.AccessionsBasicInfoPanel.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel11 = new JPanel();
    panel12 = new JPanel();
    label_accessionNumber1 = new JLabel();
    accessionNumber1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_1));
    accessionNumber2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_2));
    accessionNumber3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_3));
    accessionNumber4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_4));
    panel34 = new JPanel();
    label_accessionDate = new JLabel();
    accessionDate = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_DATE));
    panel2 = new JPanel();
    panel15 = new JPanel();
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    tableAccessionsResources = new DomainSortableTable();
    panel19 = new JPanel();
    linkResource = new JButton();
    removeResourceLink = new JButton();
    panel27 = new JPanel();
    label_resourceType = new JLabel();
    resourceType = ATBasicComponentFactory.createComboBox(detailsModel, Accessions.PROPERTYNAME_RESOURCE_TYPE,
            Accessions.class, 10);
    label_title = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE));
    label_repositoryName5 = new JLabel();
    scrollPane9 = new JScrollPane();
    physicalDescriptionsTable = new DomainSortableTable(ArchDescriptionPhysicalDescriptions.class);
    panel23 = new JPanel();
    addPhysicalDescription = new JButton();
    removePhysicalDescription = new JButton();
    panel14 = new JPanel();
    label_repositoryName = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel13 = new JPanel();
    label_repositoryName4 = new JLabel();
    scrollPane8 = new JScrollPane();
    dateTable = new DomainSortableTable(ArchDescriptionDates.class);
    panel22 = new JPanel();
    addDate = new JButton();
    removeDate = new JButton();
    label_repositoryName3 = new JLabel();
    scrollPane6 = new JScrollPane();
    deaccessionsTable = new DomainSortableTable(Deaccessions.class);
    panel18 = new JPanel();
    addDeaccessions = new JButton();
    removeDeaccession = new JButton();
    label_repositoryName2 = new JLabel();
    scrollPane7 = new JScrollPane();
    locationsTable = new DomainSortableTable(AccessionsLocations.class);
    panel26 = new JPanel();
    addButton = new JButton();
    removeLocationButton = new JButton();
    label_title2 = new JLabel();
    scrollPane43 = new JScrollPane();
    title2 = ATBasicComponentFactory/*from   w  ww.jav  a2  s  .c  o m*/
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setMinimumSize(new Dimension(640, 380));
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout(
            new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
            RowSpec.decodeSpecs("fill:default:grow")));
    ((FormLayout) getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

    //======== panel11 ========
    {
        panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel11.setBackground(new Color(200, 205, 232));
        panel11.setMinimumSize(new Dimension(200, 206));
        panel11.setPreferredSize(new Dimension(200, 278));
        panel11.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

        //======== panel12 ========
        {
            panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.setBackground(new Color(200, 205, 232));
            panel12.setMinimumSize(new Dimension(200, 22));
            panel12.setPreferredSize(new Dimension(200, 22));
            panel12.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow") },
                            RowSpec.decodeSpecs("default")));
            ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

            //---- label_accessionNumber1 ----
            label_accessionNumber1.setText("Accession No.");
            label_accessionNumber1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_accessionNumber1, Accessions.class,
                    Accessions.PROPERTYNAME_ACCESSION_NUMBER);
            panel12.add(label_accessionNumber1,
                    cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

            //---- accessionNumber1 ----
            accessionNumber1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(accessionNumber1, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- accessionNumber2 ----
            accessionNumber2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(accessionNumber2, cc.xy(5, 1));

            //---- accessionNumber3 ----
            accessionNumber3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(accessionNumber3, cc.xy(7, 1));

            //---- accessionNumber4 ----
            accessionNumber4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel12.add(accessionNumber4, cc.xy(9, 1));
        }
        panel11.add(panel12, cc.xy(1, 1));

        //======== panel34 ========
        {
            panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel34.setBackground(new Color(200, 205, 232));
            panel34.setPreferredSize(new Dimension(200, 22));
            panel34.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_accessionDate ----
            label_accessionDate.setText("Accession Date");
            label_accessionDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_accessionDate, Accessions.class,
                    Accessions.PROPERTYNAME_ACCESSION_DATE);
            panel34.add(label_accessionDate, cc.xy(1, 1));

            //---- accessionDate ----
            accessionDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            accessionDate.setColumns(10);
            panel34.add(accessionDate, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel11.add(panel34, cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

        //======== panel2 ========
        {
            panel2.setBorder(new BevelBorder(BevelBorder.LOWERED));
            panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel2.setBackground(new Color(182, 187, 212));
            panel2.setMinimumSize(new Dimension(200, 92));
            panel2.setPreferredSize(new Dimension(200, 119));
            panel2.setLayout(new FormLayout("default:grow", "fill:default:grow"));

            //======== panel15 ========
            {
                panel15.setOpaque(false);
                panel15.setBorder(Borders.DLU2_BORDER);
                panel15.setMinimumSize(new Dimension(200, 88));
                panel15.setPreferredSize(new Dimension(200, 115));
                panel15.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- OtherAccessionsLabel ----
                OtherAccessionsLabel.setText("Resources Linked to this accession");
                OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel15.add(OtherAccessionsLabel, cc.xy(1, 1));

                //======== scrollPane4 ========
                {
                    scrollPane4.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane4.setPreferredSize(new Dimension(200, 54));

                    //---- tableAccessionsResources ----
                    tableAccessionsResources.setPreferredScrollableViewportSize(new Dimension(450, 50));
                    tableAccessionsResources.setFocusable(false);
                    tableAccessionsResources.setSelectionBackground(Color.magenta);
                    scrollPane4.setViewportView(tableAccessionsResources);
                }
                panel15.add(scrollPane4, cc.xy(1, 3));

                //======== panel19 ========
                {
                    panel19.setOpaque(false);
                    panel19.setMinimumSize(new Dimension(100, 29));
                    panel19.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- linkResource ----
                    linkResource.setText("Link Resource");
                    linkResource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    linkResource.setOpaque(false);
                    linkResource.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            linkResourceActionPerformed(e);
                        }
                    });
                    panel19.add(linkResource, cc.xy(1, 1));

                    //---- removeResourceLink ----
                    removeResourceLink.setText("Remove Link");
                    removeResourceLink.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeResourceLink.setOpaque(false);
                    removeResourceLink.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeResourceLinkActionPerformed(e);
                        }
                    });
                    panel19.add(removeResourceLink, cc.xy(3, 1));
                }
                panel15.add(panel19, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            panel2.add(panel15, cc.xy(1, 1));
        }
        panel11.add(panel2, cc.xy(1, 5));

        //======== panel27 ========
        {
            panel27.setOpaque(false);
            panel27.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("default")));

            //---- label_resourceType ----
            label_resourceType.setText("Resource Type");
            label_resourceType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_resourceType, Accessions.class,
                    Accessions.PROPERTYNAME_RESOURCE_TYPE);
            panel27.add(label_resourceType, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- resourceType ----
            resourceType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            resourceType.setOpaque(false);
            panel27.add(resourceType, cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
        }
        panel11.add(panel27, cc.xy(1, 7));

        //---- label_title ----
        label_title.setText("Title");
        label_title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_title, Accessions.class, Accessions.PROPERTYNAME_TITLE);
        panel11.add(label_title, cc.xy(1, 9));

        //======== scrollPane42 ========
        {
            scrollPane42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane42.setPreferredSize(new Dimension(200, 68));
            scrollPane42.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

            //---- title ----
            title.setRows(4);
            title.setLineWrap(true);
            title.setWrapStyleWord(true);
            title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane42.setViewportView(title);
        }
        panel11.add(scrollPane42, cc.xy(1, 11));

        //---- label_repositoryName5 ----
        label_repositoryName5.setText("Physical Description");
        label_repositoryName5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel11.add(label_repositoryName5, cc.xy(1, 13));

        //======== scrollPane9 ========
        {
            scrollPane9.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane9.setPreferredSize(new Dimension(200, 104));

            //---- physicalDescriptionsTable ----
            physicalDescriptionsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            physicalDescriptionsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    physicalDescriptionMouseClicked(e);
                }
            });
            scrollPane9.setViewportView(physicalDescriptionsTable);
        }
        panel11.add(scrollPane9, cc.xywh(1, 15, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel23 ========
        {
            panel23.setBackground(new Color(231, 188, 251));
            panel23.setOpaque(false);
            panel23.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel23.setMinimumSize(new Dimension(100, 29));
            panel23.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

            //---- addPhysicalDescription ----
            addPhysicalDescription.setText("Add Description");
            addPhysicalDescription.setOpaque(false);
            addPhysicalDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addPhysicalDescription.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addPhysicalDescriptionActionPerformed();
                }
            });
            panel23.add(addPhysicalDescription, cc.xy(1, 1));

            //---- removePhysicalDescription ----
            removePhysicalDescription.setText("Remove Description");
            removePhysicalDescription.setOpaque(false);
            removePhysicalDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removePhysicalDescription.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removePhysicalDescriptionActionPerformed();
                }
            });
            panel23.add(removePhysicalDescription, cc.xy(3, 1));
        }
        panel11.add(panel23, cc.xywh(1, 17, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //======== panel14 ========
        {
            panel14.setOpaque(false);
            panel14.setLayout(new FormLayout(
                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                    RowSpec.decodeSpecs("default")));

            //---- label_repositoryName ----
            label_repositoryName.setText("Repository");
            label_repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            ATFieldInfo.assignLabelInfo(label_repositoryName, Accessions.class,
                    Accessions.PROPERTYNAME_REPOSITORY);
            panel14.add(label_repositoryName, cc.xy(1, 1));

            //---- repositoryName ----
            repositoryName.setEditable(false);
            repositoryName.setFocusable(false);
            repositoryName.setBorder(null);
            repositoryName.setOpaque(false);
            repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            repositoryName.setHorizontalAlignment(SwingConstants.LEFT);
            panel14.add(repositoryName, cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- changeRepositoryButton ----
            changeRepositoryButton.setText("Change Repository");
            changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            changeRepositoryButton.setOpaque(false);
            changeRepositoryButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    changeRepositoryButtonActionPerformed();
                }
            });
            panel14.add(changeRepositoryButton, cc.xy(5, 1));
        }
        panel11.add(panel14, cc.xy(1, 19));
    }
    add(panel11, cc.xy(1, 1));

    //======== panel13 ========
    {
        panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.setBackground(new Color(200, 205, 232));
        panel13.setPreferredSize(new Dimension(200, 317));
        panel13.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4), FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.19999999999999998) }));
        ((FormLayout) panel13.getLayout()).setRowGroups(new int[][] { { 9, 15, 21 } });

        //---- label_repositoryName4 ----
        label_repositoryName4.setText("Dates");
        label_repositoryName4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.add(label_repositoryName4, cc.xy(1, 1));

        //======== scrollPane8 ========
        {
            scrollPane8.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane8.setPreferredSize(new Dimension(200, 104));

            //---- dateTable ----
            dateTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            dateTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    dateTableMouseClicked(e);
                }
            });
            scrollPane8.setViewportView(dateTable);
        }
        panel13.add(scrollPane8, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel22 ========
        {
            panel22.setBackground(new Color(231, 188, 251));
            panel22.setOpaque(false);
            panel22.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel22.setMinimumSize(new Dimension(100, 29));
            panel22.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

            //---- addDate ----
            addDate.setText("Add Date");
            addDate.setOpaque(false);
            addDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addDate.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addDateActionPerformed(e);
                }
            });
            panel22.add(addDate, cc.xy(1, 1));

            //---- removeDate ----
            removeDate.setText("Remove Date");
            removeDate.setOpaque(false);
            removeDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDate.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDateActionPerformed(e);
                }
            });
            panel22.add(removeDate, cc.xy(3, 1));
        }
        panel13.add(panel22, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_repositoryName3 ----
        label_repositoryName3.setText("Deaccessions");
        label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel13.add(label_repositoryName3, cc.xy(1, 7));

        //======== scrollPane6 ========
        {
            scrollPane6.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane6.setPreferredSize(new Dimension(200, 104));

            //---- deaccessionsTable ----
            deaccessionsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
            deaccessionsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    deaccessionsTableMouseClicked(e);
                }
            });
            scrollPane6.setViewportView(deaccessionsTable);
        }
        panel13.add(scrollPane6, cc.xywh(1, 9, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel18 ========
        {
            panel18.setBackground(new Color(231, 188, 251));
            panel18.setOpaque(false);
            panel18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            panel18.setMinimumSize(new Dimension(100, 29));
            panel18.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

            //---- addDeaccessions ----
            addDeaccessions.setText("Add Deaccession");
            addDeaccessions.setOpaque(false);
            addDeaccessions.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addDeaccessions.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addDeaccessionsActionPerformed();
                }
            });
            panel18.add(addDeaccessions, cc.xy(1, 1));

            //---- removeDeaccession ----
            removeDeaccession.setText("Remove Deaccession");
            removeDeaccession.setOpaque(false);
            removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeDeaccession.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeDeaccessionActionPerformed();
                }
            });
            panel18.add(removeDeaccession, cc.xy(3, 1));
        }
        panel13.add(panel18, cc.xywh(1, 11, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_repositoryName2 ----
        label_repositoryName2.setText("Locations");
        label_repositoryName2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_repositoryName2, Accessions.class, Accessions.PROPERTYNAME_LOCATIONS);
        panel13.add(label_repositoryName2, cc.xy(1, 13));

        //======== scrollPane7 ========
        {
            scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane7.setPreferredSize(new Dimension(200, 64));

            //---- locationsTable ----
            locationsTable.setPreferredScrollableViewportSize(new Dimension(200, 60));
            locationsTable.addMouseListener(new MouseAdapter() {
                @Override
                public void mouseClicked(MouseEvent e) {
                    locationsTableMouseClicked(e);
                }
            });
            scrollPane7.setViewportView(locationsTable);
        }
        panel13.add(scrollPane7, cc.xywh(1, 15, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

        //======== panel26 ========
        {
            panel26.setOpaque(false);
            panel26.setLayout(
                    new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

            //---- addButton ----
            addButton.setText("Add Location");
            addButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            addButton.setOpaque(false);
            addButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    addLocationButtonActionPerformed(e);
                }
            });
            panel26.add(addButton, cc.xy(1, 1));

            //---- removeLocationButton ----
            removeLocationButton.setText("Remove Location");
            removeLocationButton.setOpaque(false);
            removeLocationButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            removeLocationButton.addActionListener(new ActionListener() {
                public void actionPerformed(ActionEvent e) {
                    removeLocationButtonActionPerformed(e);
                }
            });
            panel26.add(removeLocationButton, cc.xy(3, 1));
        }
        panel13.add(panel26, cc.xywh(1, 17, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

        //---- label_title2 ----
        label_title2.setText("General accession note");
        label_title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        ATFieldInfo.assignLabelInfo(label_title2, Accessions.class,
                Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE);
        panel13.add(label_title2, cc.xy(1, 19));

        //======== scrollPane43 ========
        {
            scrollPane43.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
            scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane43.setPreferredSize(new Dimension(200, 68));

            //---- title2 ----
            title2.setRows(4);
            title2.setLineWrap(true);
            title2.setWrapStyleWord(true);
            title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            scrollPane43.setViewportView(title2);
        }
        panel13.add(scrollPane43, cc.xy(1, 21));
    }
    add(panel13, cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.AccessionFields.java

License:Open Source License

private void initComponents() {

    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    panel6 = new JPanel();
    label2 = new JLabel();
    accessionTitle = new JTextField();
    label3 = new JLabel();
    accessionNumber = new JTextField();
    tabbedPane = new JTabbedPane();
    detailsPanel = new JPanel();
    panel11 = new JPanel();
    panel12 = new JPanel();
    label_accessionNumber1 = new JLabel();
    accessionNumber1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_1));
    accessionNumber2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_2));
    accessionNumber3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_3));
    accessionNumber4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_NUMBER_4));
    panel34 = new JPanel();
    label_accessionDate = new JLabel();
    accessionDate = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_DATE));
    panel2 = new JPanel();
    panel15 = new JPanel();
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    tableAccessionsResources = new DomainSortableTable();
    panel19 = new JPanel();
    linkResource = new JButton();
    removeResourceLink = new JButton();
    panel27 = new JPanel();
    label_resourceType = new JLabel();
    resourceType = ATBasicComponentFactory.createComboBox(detailsModel, Accessions.PROPERTYNAME_RESOURCE_TYPE,
            Accessions.class, 10);
    label_title = new JLabel();
    scrollPane42 = new JScrollPane();
    title = ATBasicComponentFactory.createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE));
    panel33 = new JPanel();
    panel20 = new JPanel();
    ExtentNumberLabel2 = new JLabel();
    panel21 = new JPanel();
    labelExtentNumber = new JLabel();
    extentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            Accessions.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel, Accessions.PROPERTYNAME_EXTENT_TYPE,
            Accessions.class);
    labelExtent = new JLabel();
    scrollPane423 = new JScrollPane();
    containerSummary = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_CONTAINER_SUMMARY), false);
    panel14 = new JPanel();
    label_repositoryName = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel13 = new JPanel();
    panel22 = new JPanel();
    panel5 = new JPanel();
    panel4 = new JPanel();
    label_dateExpression = new JLabel();
    dateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label = new JLabel();
    label_date1Begin = new JLabel();
    date1Begin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_date1End = new JLabel();
    date1End = ATBasicComponentFactory.createIntegerField(detailsModel, ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_bulkDateBegin = new JLabel();
    bulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            Accessions.PROPERTYNAME_BULK_DATE_BEGIN);
    label_bulkDateEnd = new JLabel();
    bulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            Accessions.PROPERTYNAME_BULK_DATE_END);
    label_repositoryName3 = new JLabel();
    scrollPane6 = new JScrollPane();
    deaccessionsTable = new DomainSortableTable(Deaccessions.class);
    panel18 = new JPanel();
    addDeaccessions = new JButton();
    removeDeaccession = new JButton();
    label_repositoryName2 = new JLabel();
    scrollPane7 = new JScrollPane();
    locationsTable = new DomainSortableTable(AccessionsLocations.class);
    panel26 = new JPanel();
    addButton = new JButton();
    removeLocationButton = new JButton();
    label_title2 = new JLabel();
    scrollPane43 = new JScrollPane();
    title2 = ATBasicComponentFactory//from w  w  w  .j a  va 2  s  .  co m
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE));
    accesionNotesPanel = new JPanel();
    panel28 = new JPanel();
    panel29 = new JPanel();
    label_acquisitionType = new JLabel();
    acquisitionType = ATBasicComponentFactory.createComboBox(detailsModel,
            Accessions.PROPERTYNAME_ACQUISITION_TYPE, Accessions.class);
    label_RetentionRule = new JLabel();
    scrollPane4224 = new JScrollPane();
    accessionTransactionNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_RETENTION_RULE));
    label_description = new JLabel();
    scrollPane2 = new JScrollPane();
    description = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_DESCRIPTION));
    label_condition = new JLabel();
    scrollPane22 = new JScrollPane();
    condition = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_CONDITION_NOTE));
    panel30 = new JPanel();
    label_inventory = new JLabel();
    scrollPane23 = new JScrollPane();
    inventory = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_INVENTORY));
    label_accessionDispositionNote = new JLabel();
    scrollPane4223 = new JScrollPane();
    accessionDispositionNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_DISPOSITION_NOTE));
    label_resourceType2 = new JLabel();
    scrollPane5 = new JScrollPane();
    externalDocumentsTable = new DomainSortableTable(ExternalReference.class);
    panel16 = new JPanel();
    addExternalLinkButton = new JButton();
    removeExternalLinkButton = new JButton();
    openInBrowser = new JButton();
    panel31 = new JPanel();
    panel32 = new JPanel();
    label_acknowledgementDate2 = new JLabel();
    acknowledgementDate2 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_DATE1));
    label_acknowledgementDate3 = new JLabel();
    acknowledgementDate3 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_DATE2));
    rights2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_BOOLEAN1, Accessions.class);
    rights3 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_BOOLEAN2, Accessions.class);
    label_date1Begin2 = new JLabel();
    date1Begin2 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_INTEGER1);
    label_date1Begin3 = new JLabel();
    date1Begin3 = ATBasicComponentFactory.createIntegerField(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_INTEGER2);
    label_date1Begin4 = new JLabel();
    extentNumber2 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_REAL1);
    label_date1Begin5 = new JLabel();
    extentNumber3 = ATBasicComponentFactory.createDoubleField(detailsModel,
            Accessions.PROPERTYNAME_USER_DEFINED_REAL2);
    label_date1Begin6 = new JLabel();
    dateExpression2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_STRING1), false);
    label_date1Begin7 = new JLabel();
    dateExpression3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_STRING2), false);
    label_date1Begin8 = new JLabel();
    dateExpression4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_STRING3), false);
    label_date1Begin9 = new JLabel();
    scrollPane44 = new JScrollPane();
    title3 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_TEXT1));
    panel35 = new JPanel();
    label_date1Begin10 = new JLabel();
    scrollPane45 = new JScrollPane();
    title4 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_TEXT2));
    label_date1Begin11 = new JLabel();
    scrollPane46 = new JScrollPane();
    title5 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_TEXT3));
    label_date1Begin12 = new JLabel();
    scrollPane47 = new JScrollPane();
    title6 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_USER_DEFINED_TEXT4));
    nonPreferredNamePanel = new JPanel();
    SubjectsLabel2 = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel8 = new JPanel();
    editNameRelationshipButton = new JButton();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    separator5 = new JSeparator();
    SubjectsLabel = new JLabel();
    scrollPane3 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel10 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    collectionInfoPanel = new JPanel();
    panel39 = new JPanel();
    ExtentNumberLabel3 = new JLabel();
    rights5 = ATBasicComponentFactory.createCheckBox(detailsModel, Accessions.PROPERTYNAME_ACKNOWLEDGEMENT_SENT,
            Accessions.class);
    label_acknowledgementDate4 = new JLabel();
    acknowledgementDate4 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_ACKNOWLEDGEMENT_DATE));
    rights6 = ATBasicComponentFactory.createCheckBox(detailsModel, Accessions.PROPERTYNAME_AGREEMENT_SENT,
            Accessions.class);
    label_agreementSent2 = new JLabel();
    agreementSent2 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_AGREEMENT_SENT_DATE));
    rights7 = ATBasicComponentFactory.createCheckBox(detailsModel, Accessions.PROPERTYNAME_AGREEMENT_RECEIVED,
            Accessions.class);
    label_agreementReceived = new JLabel();
    agreementReceived = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_AGREEMENT_RECEIVED_DATE));
    rights = ATBasicComponentFactory.createCheckBox(detailsModel, Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED,
            Accessions.class);
    label_agreementReceived2 = new JLabel();
    agreementReceived2 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED_DATE));
    labelAccess3 = new JLabel();
    scrollPane435 = new JScrollPane();
    terms3 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED_NOTE));
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_RESTRICTIONS_APPLY, Accessions.class);
    restrictionsApply2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_ACCESS_RESTRICTIONS, Accessions.class);
    labelAccess = new JLabel();
    scrollPane432 = new JScrollPane();
    terms = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESS_RESTRICTIONS_NOTE));
    restrictionsApply3 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_USE_RESTRICTIONS, Accessions.class);
    labelAccess2 = new JLabel();
    scrollPane433 = new JScrollPane();
    terms2 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_USE_RESTRICTIONS_NOTE));
    separator1 = new JSeparator();
    panel37 = new JPanel();
    ExtentNumberLabel4 = new JLabel();
    label_resourceType3 = new JLabel();
    panel3 = new JPanel();
    resourceType2 = ATBasicComponentFactory.createComboBox(detailsModel,
            Accessions.PROPERTYNAME_PROCESSING_PRIORITY, Accessions.class, 40);
    label_resourceType4 = new JLabel();
    dateExpression5 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Accessions.PROPERTYNAME_PROCESSORS), false);
    label_processingPlan = new JLabel();
    scrollPane4222 = new JScrollPane();
    processingPlan = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_PROCESSING_PLAN));
    label_dateProcessed3 = new JLabel();
    dateProcessed3 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_PROCESSING_STARTED_DATE));
    label_resourceType5 = new JLabel();
    panel1 = new JPanel();
    resourceType3 = ATBasicComponentFactory.createComboBox(detailsModel,
            Accessions.PROPERTYNAME_PROCESSING_STATUS, Accessions.class, 40);
    cataloged2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            Accessions.PROPERTYNAME_ACCESSION_PROCESSED, Accessions.class);
    label_dateProcessed = new JLabel();
    dateProcessed = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_ACCESSION_PROCESSED_DATE));
    cataloged = ATBasicComponentFactory.createCheckBox(detailsModel, Accessions.PROPERTYNAME_CATALOGED,
            Accessions.class);
    label_dateProcessed2 = new JLabel();
    dateProcessed2 = ATBasicComponentFactory
            .createDateField(detailsModel.getModel(Accessions.PROPERTYNAME_CATALOGED_DATE));
    label_terms2 = new JLabel();
    scrollPane434 = new JScrollPane();
    catalogedNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Accessions.PROPERTYNAME_CATALOGED_NOTE));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setPreferredSize(new Dimension(1000, 560));
    setLayout(new FormLayout("default:grow", "default, top:default:grow"));

    //======== panel6 ========
    {
        panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel6.setBackground(new Color(200, 205, 232));
        panel6.setLayout(new FormLayout(
                new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                        FormFactory.DEFAULT_COLSPEC, FormFactory.UNRELATED_GAP_COLSPEC },
                RowSpec.decodeSpecs("default")));

        //---- label2 ----
        label2.setText("Title: ");
        label2.setForeground(new Color(0, 0, 102));
        label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        panel6.add(label2, cc.xy(3, 1));

        //---- accessionTitle ----
        accessionTitle.setEditable(false);
        accessionTitle.setOpaque(false);
        accessionTitle.setBorder(null);
        panel6.add(accessionTitle, cc.xy(5, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

        //---- label3 ----
        label3.setText("Accession #: ");
        label3.setForeground(new Color(0, 0, 102));
        label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        label3.setHorizontalAlignment(SwingConstants.LEFT);
        panel6.add(label3, cc.xy(7, 1));

        //---- accessionNumber ----
        accessionNumber.setEditable(false);
        accessionNumber.setOpaque(false);
        accessionNumber.setBorder(null);
        accessionNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        accessionNumber.setHorizontalAlignment(SwingConstants.RIGHT);
        panel6.add(accessionNumber, cc.xy(10, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    }
    add(panel6, cc.xy(1, 1));

    //======== tabbedPane ========
    {
        tabbedPane.setFocusable(false);
        tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        tabbedPane.setBackground(new Color(200, 205, 232));
        tabbedPane.setOpaque(true);
        tabbedPane.setMinimumSize(new Dimension(600, 449));

        //======== detailsPanel ========
        {
            detailsPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            detailsPanel.setBackground(new Color(200, 205, 232));
            detailsPanel.setBorder(Borders.DLU2_BORDER);
            detailsPanel.setMinimumSize(new Dimension(640, 380));
            detailsPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.PREFERRED, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) detailsPanel.getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

            //======== panel11 ========
            {
                panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel11.setBackground(new Color(200, 205, 232));
                panel11.setMinimumSize(new Dimension(200, 206));
                panel11.setPreferredSize(new Dimension(200, 278));
                panel11.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //======== panel12 ========
                {
                    panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel12.setBackground(new Color(200, 205, 232));
                    panel12.setMinimumSize(new Dimension(200, 22));
                    panel12.setPreferredSize(new Dimension(200, 22));
                    panel12.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow"),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec("50px:grow") },
                            RowSpec.decodeSpecs("default")));
                    ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

                    //---- label_accessionNumber1 ----
                    label_accessionNumber1.setText("Accession No.");
                    label_accessionNumber1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_accessionNumber1, Accessions.class,
                            Accessions.PROPERTYNAME_ACCESSION_NUMBER);
                    panel12.add(label_accessionNumber1,
                            cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                    panel12.add(accessionNumber1, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                    panel12.add(accessionNumber2, cc.xy(5, 1));
                    panel12.add(accessionNumber3, cc.xy(7, 1));
                    panel12.add(accessionNumber4, cc.xy(9, 1));
                }
                panel11.add(panel12, cc.xy(1, 1));

                //======== panel34 ========
                {
                    panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel34.setBackground(new Color(200, 205, 232));
                    panel34.setPreferredSize(new Dimension(200, 22));
                    panel34.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] {
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(
                                                    ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default")));

                    //---- label_accessionDate ----
                    label_accessionDate.setText("Accession Date");
                    label_accessionDate.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_accessionDate, Accessions.class,
                            Accessions.PROPERTYNAME_ACCESSION_DATE);
                    panel34.add(label_accessionDate, cc.xy(1, 1));

                    //---- accessionDate ----
                    accessionDate.setColumns(10);
                    panel34.add(accessionDate, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel11.add(panel34, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.DEFAULT));

                //======== panel2 ========
                {
                    panel2.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel2.setBackground(new Color(182, 187, 212));
                    panel2.setMinimumSize(new Dimension(200, 92));
                    panel2.setPreferredSize(new Dimension(200, 119));
                    panel2.setLayout(new FormLayout("default:grow", "fill:default:grow"));

                    //======== panel15 ========
                    {
                        panel15.setOpaque(false);
                        panel15.setBorder(Borders.DLU2_BORDER);
                        panel15.setMinimumSize(new Dimension(200, 88));
                        panel15.setPreferredSize(new Dimension(200, 115));
                        panel15.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                        //---- OtherAccessionsLabel ----
                        OtherAccessionsLabel.setText("Resources Linked to this accession");
                        OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel15.add(OtherAccessionsLabel, cc.xy(1, 1));

                        //======== scrollPane4 ========
                        {
                            scrollPane4
                                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                            scrollPane4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            scrollPane4.setPreferredSize(new Dimension(200, 54));

                            //---- tableAccessionsResources ----
                            tableAccessionsResources.setPreferredScrollableViewportSize(new Dimension(450, 50));
                            tableAccessionsResources.setFocusable(false);
                            tableAccessionsResources.setSelectionBackground(Color.magenta);
                            scrollPane4.setViewportView(tableAccessionsResources);
                        }
                        panel15.add(scrollPane4, cc.xy(1, 3));

                        //======== panel19 ========
                        {
                            panel19.setOpaque(false);
                            panel19.setMinimumSize(new Dimension(100, 29));
                            panel19.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                    RowSpec.decodeSpecs("default")));

                            //---- linkResource ----
                            linkResource.setText("Link Resource");
                            linkResource.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            linkResource.setOpaque(false);
                            linkResource.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent e) {
                                    linkResourceActionPerformed(e);
                                }
                            });
                            panel19.add(linkResource, cc.xy(1, 1));

                            //---- removeResourceLink ----
                            removeResourceLink.setText("Remove Link");
                            removeResourceLink.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            removeResourceLink.setOpaque(false);
                            removeResourceLink.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent e) {
                                    removeResourceLinkActionPerformed(e);
                                }
                            });
                            panel19.add(removeResourceLink, cc.xy(3, 1));
                        }
                        panel15.add(panel19, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));
                    }
                    panel2.add(panel15, cc.xy(1, 1));
                }
                panel11.add(panel2, cc.xy(1, 5));

                //======== panel27 ========
                {
                    panel27.setOpaque(false);
                    panel27.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(
                                                    ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default")));

                    //---- label_resourceType ----
                    label_resourceType.setText("Resource Type");
                    label_resourceType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourceType, Accessions.class,
                            Accessions.PROPERTYNAME_RESOURCE_TYPE);
                    panel27.add(label_resourceType, cc.xy(1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- resourceType ----
                    resourceType.setOpaque(false);
                    panel27.add(resourceType, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel11.add(panel27, cc.xy(1, 7));

                //---- label_title ----
                label_title.setText("Title");
                label_title.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_title, Accessions.class, Accessions.PROPERTYNAME_TITLE);
                panel11.add(label_title, cc.xy(1, 9));

                //======== scrollPane42 ========
                {
                    scrollPane42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane42.setPreferredSize(new Dimension(200, 68));
                    scrollPane42.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

                    //---- title ----
                    title.setRows(4);
                    title.setLineWrap(true);
                    title.setWrapStyleWord(true);
                    scrollPane42.setViewportView(title);
                }
                panel11.add(scrollPane42, cc.xy(1, 11));

                //======== panel33 ========
                {
                    panel33.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel33.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel33.setBackground(new Color(182, 187, 212));
                    panel33.setLayout(new FormLayout("60px:grow", "fill:default:grow"));

                    //======== panel20 ========
                    {
                        panel20.setOpaque(false);
                        panel20.setBorder(Borders.DLU2_BORDER);
                        panel20.setPreferredSize(new Dimension(200, 148));
                        panel20.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                        //---- ExtentNumberLabel2 ----
                        ExtentNumberLabel2.setText("Extent");
                        ExtentNumberLabel2.setForeground(new Color(0, 0, 102));
                        ExtentNumberLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel20.add(ExtentNumberLabel2, cc.xywh(1, 1, 2, 1));

                        //======== panel21 ========
                        {
                            panel21.setOpaque(false);
                            panel21.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                    RowSpec.decodeSpecs("default")));

                            //---- labelExtentNumber ----
                            labelExtentNumber.setText("Extent");
                            labelExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(labelExtentNumber, Accessions.class,
                                    Accessions.PROPERTYNAME_EXTENT_NUMBER);
                            panel21.add(labelExtentNumber, cc.xy(1, 1));

                            //---- extentNumber ----
                            extentNumber.setColumns(5);
                            panel21.add(extentNumber, cc.xy(3, 1));

                            //---- extentType ----
                            extentType.setOpaque(false);
                            panel21.add(extentType, cc.xy(5, 1));
                        }
                        panel20.add(panel21, cc.xy(2, 3));

                        //---- labelExtent ----
                        labelExtent.setText("Container Summary");
                        labelExtent.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(labelExtent, Accessions.class,
                                Accessions.PROPERTYNAME_CONTAINER_SUMMARY);
                        panel20.add(labelExtent, cc.xy(2, 5));

                        //======== scrollPane423 ========
                        {
                            scrollPane423
                                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                            scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            scrollPane423.setPreferredSize(new Dimension(200, 68));

                            //---- containerSummary ----
                            containerSummary.setRows(4);
                            containerSummary.setLineWrap(true);
                            containerSummary.setWrapStyleWord(true);
                            scrollPane423.setViewportView(containerSummary);
                        }
                        panel20.add(scrollPane423, cc.xy(2, 7, CellConstraints.DEFAULT, CellConstraints.FILL));
                    }
                    panel33.add(panel20, cc.xy(1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
                }
                panel11.add(panel33, cc.xy(1, 13));

                //======== panel14 ========
                {
                    panel14.setOpaque(false);
                    panel14.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- label_repositoryName ----
                    label_repositoryName.setText("Repository");
                    label_repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_repositoryName, Accessions.class,
                            Accessions.PROPERTYNAME_REPOSITORY);
                    panel14.add(label_repositoryName, cc.xy(1, 1));

                    //---- repositoryName ----
                    repositoryName.setEditable(false);
                    repositoryName.setFocusable(false);
                    repositoryName.setBorder(null);
                    repositoryName.setOpaque(false);
                    repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    repositoryName.setHorizontalAlignment(SwingConstants.LEFT);
                    panel14.add(repositoryName, cc.xy(3, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- changeRepositoryButton ----
                    changeRepositoryButton.setText("Change Repository");
                    changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    changeRepositoryButton.setOpaque(false);
                    changeRepositoryButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            changeRepositoryButtonActionPerformed();
                        }
                    });
                    panel14.add(changeRepositoryButton, cc.xy(5, 1));
                }
                panel11.add(panel14, cc.xy(1, 15));
            }
            detailsPanel.add(panel11, cc.xy(1, 1));

            //======== panel13 ========
            {
                panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel13.setBackground(new Color(200, 205, 232));
                panel13.setPreferredSize(new Dimension(200, 317));
                panel13.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.4), FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, 0.19999999999999998) }));
                ((FormLayout) panel13.getLayout()).setRowGroups(new int[][] { { 5, 11, 17 } });

                //======== panel22 ========
                {
                    panel22.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel22.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel22.setBackground(new Color(182, 187, 212));
                    panel22.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                            new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.RELATED_GAP_ROWSPEC }));

                    //======== panel5 ========
                    {
                        panel5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel5.setOpaque(false);
                        panel5.setBorder(Borders.DLU2_BORDER);
                        panel5.setLayout(new FormLayout(
                                new ColumnSpec[] { new ColumnSpec("max(min;50px)"),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //======== panel4 ========
                        {
                            panel4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel4.setOpaque(false);
                            panel4.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default:grow")));

                            //---- label_dateExpression ----
                            label_dateExpression.setText("Date Expression");
                            label_dateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(label_dateExpression, Accessions.class,
                                    Accessions.PROPERTYNAME_DATE_EXPRESSION);
                            panel4.add(label_dateExpression,
                                    cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                            panel4.add(dateExpression, new CellConstraints(3, 1, 1, 1, CellConstraints.DEFAULT,
                                    CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
                        }
                        panel5.add(panel4, cc.xywh(1, 1, 9, 1));

                        //---- Date1Label ----
                        Date1Label.setText("Date");
                        Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel5.add(Date1Label, cc.xywh(1, 3, 9, 1));

                        //---- label_date1Begin ----
                        label_date1Begin.setText("Begin");
                        label_date1Begin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_date1Begin, Accessions.class,
                                Accessions.PROPERTYNAME_DATE_BEGIN);
                        panel5.add(label_date1Begin, cc.xy(3, 5));
                        panel5.add(date1Begin, cc.xy(5, 5, CellConstraints.FILL, CellConstraints.DEFAULT));

                        //---- label_date1End ----
                        label_date1End.setText("End");
                        label_date1End.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_date1End, Accessions.class,
                                Accessions.PROPERTYNAME_DATE_END);
                        panel5.add(label_date1End, cc.xy(7, 5));

                        //---- date1End ----
                        date1End.addFocusListener(new FocusAdapter() {
                            @Override
                            public void focusGained(FocusEvent e) {
                                dateEndFocusGained();
                            }
                        });
                        panel5.add(date1End, new CellConstraints(9, 5, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                        //---- BulkDatesLabel ----
                        BulkDatesLabel.setText("Bulk Dates");
                        BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel5.add(BulkDatesLabel, cc.xywh(1, 7, 9, 1));

                        //---- label_bulkDateBegin ----
                        label_bulkDateBegin.setText("Begin");
                        label_bulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_bulkDateBegin, Accessions.class,
                                Accessions.PROPERTYNAME_BULK_DATE_BEGIN);
                        panel5.add(label_bulkDateBegin, cc.xy(3, 9));
                        panel5.add(bulkDateBegin, cc.xy(5, 9, CellConstraints.FILL, CellConstraints.DEFAULT));

                        //---- label_bulkDateEnd ----
                        label_bulkDateEnd.setText("End");
                        label_bulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_bulkDateEnd, Accessions.class,
                                Accessions.PROPERTYNAME_BULK_DATE_END);
                        panel5.add(label_bulkDateEnd, cc.xy(7, 9));

                        //---- bulkDateEnd ----
                        bulkDateEnd.addFocusListener(new FocusAdapter() {
                            @Override
                            public void focusGained(FocusEvent e) {
                                bulkDateEndFocusGained();
                            }
                        });
                        panel5.add(bulkDateEnd, new CellConstraints(9, 9, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
                    }
                    panel22.add(panel5, cc.xy(1, 1));
                }
                panel13.add(panel22, cc.xy(1, 1));

                //---- label_repositoryName3 ----
                label_repositoryName3.setText("Deaccessions");
                label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel13.add(label_repositoryName3, cc.xy(1, 3));

                //======== scrollPane6 ========
                {
                    scrollPane6.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane6.setPreferredSize(new Dimension(200, 104));

                    //---- deaccessionsTable ----
                    deaccessionsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
                    deaccessionsTable.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseClicked(MouseEvent e) {
                            deaccessionsTableMouseClicked(e);
                        }
                    });
                    scrollPane6.setViewportView(deaccessionsTable);
                }
                panel13.add(scrollPane6, cc.xy(1, 5, CellConstraints.DEFAULT, CellConstraints.FILL));

                //======== panel18 ========
                {
                    panel18.setBackground(new Color(231, 188, 251));
                    panel18.setOpaque(false);
                    panel18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel18.setMinimumSize(new Dimension(100, 29));
                    panel18.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- addDeaccessions ----
                    addDeaccessions.setText("Add Deaccession");
                    addDeaccessions.setOpaque(false);
                    addDeaccessions.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    addDeaccessions.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            addDeaccessionsActionPerformed();
                        }
                    });
                    panel18.add(addDeaccessions, cc.xy(1, 1));

                    //---- removeDeaccession ----
                    removeDeaccession.setText("Remove Deaccession");
                    removeDeaccession.setOpaque(false);
                    removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeDeaccession.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeDeaccessionActionPerformed();
                        }
                    });
                    panel18.add(removeDeaccession, cc.xy(3, 1));
                }
                panel13.add(panel18, cc.xy(1, 7, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- label_repositoryName2 ----
                label_repositoryName2.setText("Locations");
                label_repositoryName2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_repositoryName2, Accessions.class,
                        Accessions.PROPERTYNAME_LOCATIONS);
                panel13.add(label_repositoryName2, cc.xy(1, 9));

                //======== scrollPane7 ========
                {
                    scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane7.setPreferredSize(new Dimension(200, 64));

                    //---- locationsTable ----
                    locationsTable.setPreferredScrollableViewportSize(new Dimension(200, 60));
                    locationsTable.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseClicked(MouseEvent e) {
                            locationsTableMouseClicked(e);
                        }
                    });
                    scrollPane7.setViewportView(locationsTable);
                }
                panel13.add(scrollPane7, cc.xy(1, 11, CellConstraints.DEFAULT, CellConstraints.FILL));

                //======== panel26 ========
                {
                    panel26.setOpaque(false);
                    panel26.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- addButton ----
                    addButton.setText("Add Location");
                    addButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    addButton.setOpaque(false);
                    addButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            addLocationButtonActionPerformed(e);
                        }
                    });
                    panel26.add(addButton, cc.xy(1, 1));

                    //---- removeLocationButton ----
                    removeLocationButton.setText("Remove Location");
                    removeLocationButton.setOpaque(false);
                    removeLocationButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeLocationButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeLocationButtonActionPerformed(e);
                        }
                    });
                    panel26.add(removeLocationButton, cc.xy(3, 1));
                }
                panel13.add(panel26, cc.xy(1, 13, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- label_title2 ----
                label_title2.setText("General accession note");
                label_title2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_title2, Accessions.class,
                        Accessions.PROPERTYNAME_GENERAL_ACCESSION_NOTE);
                panel13.add(label_title2, cc.xy(1, 15));

                //======== scrollPane43 ========
                {
                    scrollPane43.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane43.setPreferredSize(new Dimension(200, 68));

                    //---- title2 ----
                    title2.setRows(4);
                    title2.setLineWrap(true);
                    title2.setWrapStyleWord(true);
                    scrollPane43.setViewportView(title2);
                }
                panel13.add(scrollPane43, cc.xy(1, 17));
            }
            detailsPanel.add(panel13, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        tabbedPane.addTab("Basic Information", detailsPanel);

        //======== accesionNotesPanel ========
        {
            accesionNotesPanel.setBackground(new Color(200, 205, 232));
            accesionNotesPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) accesionNotesPanel.getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

            //======== panel28 ========
            {
                panel28.setOpaque(false);
                panel28.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                        FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //======== panel29 ========
                {
                    panel29.setOpaque(false);
                    panel29.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- label_acquisitionType ----
                    label_acquisitionType.setText("Acquisition Type");
                    label_acquisitionType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_acquisitionType, Accessions.class,
                            Accessions.PROPERTYNAME_ACQUISITION_TYPE);
                    panel29.add(label_acquisitionType,
                            cc.xy(1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- acquisitionType ----
                    acquisitionType.setOpaque(false);
                    acquisitionType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel29.add(acquisitionType, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel28.add(panel29, cc.xy(1, 1));

                //---- label_RetentionRule ----
                label_RetentionRule.setText("Retention Rule");
                label_RetentionRule.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_RetentionRule, Accessions.class,
                        Accessions.PROPERTYNAME_RETENTION_RULE);
                panel28.add(label_RetentionRule, cc.xy(1, 3));

                //======== scrollPane4224 ========
                {
                    scrollPane4224.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane4224.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane4224.setPreferredSize(new Dimension(200, 68));

                    //---- accessionTransactionNote ----
                    accessionTransactionNote.setRows(4);
                    accessionTransactionNote.setLineWrap(true);
                    accessionTransactionNote.setWrapStyleWord(true);
                    accessionTransactionNote.setMinimumSize(new Dimension(200, 16));
                    scrollPane4224.setViewportView(accessionTransactionNote);
                }
                panel28.add(scrollPane4224, cc.xy(1, 5, CellConstraints.FILL, CellConstraints.FILL));

                //---- label_description ----
                label_description.setText("Description");
                label_description.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_description, Accessions.class,
                        Accessions.PROPERTYNAME_DESCRIPTION);
                panel28.add(label_description, cc.xy(1, 7));

                //======== scrollPane2 ========
                {
                    scrollPane2.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- description ----
                    description.setRows(5);
                    description.setLineWrap(true);
                    description.setWrapStyleWord(true);
                    description.setMinimumSize(new Dimension(200, 16));
                    scrollPane2.setViewportView(description);
                }
                panel28.add(scrollPane2, cc.xy(1, 9, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- label_condition ----
                label_condition.setText("Condition");
                label_condition.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_condition, Accessions.class,
                        Accessions.PROPERTYNAME_CONDITION_NOTE);
                panel28.add(label_condition, cc.xy(1, 11));

                //======== scrollPane22 ========
                {
                    scrollPane22.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane22.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- condition ----
                    condition.setRows(5);
                    condition.setLineWrap(true);
                    condition.setWrapStyleWord(true);
                    condition.setMinimumSize(new Dimension(200, 16));
                    scrollPane22.setViewportView(condition);
                }
                panel28.add(scrollPane22, cc.xy(1, 13, CellConstraints.DEFAULT, CellConstraints.FILL));
            }
            accesionNotesPanel.add(panel28, cc.xy(1, 1));

            //======== panel30 ========
            {
                panel30.setOpaque(false);
                panel30.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //---- label_inventory ----
                label_inventory.setText("Inventory");
                label_inventory.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_inventory, Accessions.class,
                        Accessions.PROPERTYNAME_INVENTORY);
                panel30.add(label_inventory, cc.xy(1, 1));

                //======== scrollPane23 ========
                {
                    scrollPane23.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane23.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane23.setPreferredSize(new Dimension(200, 84));

                    //---- inventory ----
                    inventory.setRows(5);
                    inventory.setLineWrap(true);
                    inventory.setWrapStyleWord(true);
                    inventory.setMinimumSize(new Dimension(200, 16));
                    scrollPane23.setViewportView(inventory);
                }
                panel30.add(scrollPane23, cc.xy(1, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

                //---- label_accessionDispositionNote ----
                label_accessionDispositionNote.setText("Accession Disposition Note");
                label_accessionDispositionNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_accessionDispositionNote, Accessions.class,
                        Accessions.PROPERTYNAME_DISPOSITION_NOTE);
                panel30.add(label_accessionDispositionNote, cc.xy(1, 5));

                //======== scrollPane4223 ========
                {
                    scrollPane4223.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane4223.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane4223.setPreferredSize(new Dimension(200, 68));

                    //---- accessionDispositionNote ----
                    accessionDispositionNote.setRows(4);
                    accessionDispositionNote.setLineWrap(true);
                    accessionDispositionNote.setWrapStyleWord(true);
                    accessionDispositionNote.setMinimumSize(new Dimension(200, 16));
                    scrollPane4223.setViewportView(accessionDispositionNote);
                }
                panel30.add(scrollPane4223, cc.xy(1, 7, CellConstraints.FILL, CellConstraints.FILL));

                //---- label_resourceType2 ----
                label_resourceType2.setText("External Documents");
                label_resourceType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel30.add(label_resourceType2, cc.xy(1, 9));

                //======== scrollPane5 ========
                {
                    scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane5.setPreferredSize(new Dimension(200, 104));

                    //---- externalDocumentsTable ----
                    externalDocumentsTable.setPreferredScrollableViewportSize(new Dimension(200, 100));
                    externalDocumentsTable.addMouseListener(new MouseAdapter() {
                        @Override
                        public void mouseClicked(MouseEvent e) {
                            externalDocumentsTableMouseClicked(e);
                        }
                    });
                    scrollPane5.setViewportView(externalDocumentsTable);
                }
                panel30.add(scrollPane5, cc.xy(1, 11, CellConstraints.DEFAULT, CellConstraints.FILL));

                //======== panel16 ========
                {
                    panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel16.setBackground(new Color(200, 205, 232));
                    panel16.setMinimumSize(new Dimension(100, 29));
                    panel16.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- addExternalLinkButton ----
                    addExternalLinkButton.setText("Add Document");
                    addExternalLinkButton.setOpaque(false);
                    addExternalLinkButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    addExternalLinkButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            addExternalLinkButtonActionPerformed(e);
                        }
                    });
                    panel16.add(addExternalLinkButton, cc.xy(1, 1));

                    //---- removeExternalLinkButton ----
                    removeExternalLinkButton.setText("Remove Document");
                    removeExternalLinkButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    removeExternalLinkButton.setOpaque(false);
                    removeExternalLinkButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            removeExternalLinkButtonActionPerformed(e);
                        }
                    });
                    panel16.add(removeExternalLinkButton, cc.xy(3, 1));

                    //---- openInBrowser ----
                    openInBrowser.setText("Open in Browser");
                    openInBrowser.setOpaque(false);
                    openInBrowser.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            openInBrowserActionPerformed();
                        }
                    });
                    panel16.add(openInBrowser, cc.xy(5, 1));
                }
                panel30.add(panel16, cc.xy(1, 13, CellConstraints.CENTER, CellConstraints.DEFAULT));
            }
            accesionNotesPanel.add(panel30, cc.xy(3, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
        }
        tabbedPane.addTab("Accession Notes", accesionNotesPanel);

        //======== panel31 ========
        {
            panel31.setBackground(new Color(200, 205, 232));
            panel31.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) panel31.getLayout()).setColumnGroups(new int[][] { { 1, 3 } });

            //======== panel32 ========
            {
                panel32.setOpaque(false);
                panel32.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //---- label_acknowledgementDate2 ----
                label_acknowledgementDate2.setText("User Defined Date 1");
                label_acknowledgementDate2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_acknowledgementDate2, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_DATE1);
                panel32.add(label_acknowledgementDate2, cc.xy(1, 1));

                //---- acknowledgementDate2 ----
                acknowledgementDate2.setColumns(10);
                panel32.add(acknowledgementDate2, cc.xy(3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_acknowledgementDate3 ----
                label_acknowledgementDate3.setText("User Defined Date 2");
                label_acknowledgementDate3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_acknowledgementDate3, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_DATE2);
                panel32.add(label_acknowledgementDate3, cc.xy(1, 3));

                //---- acknowledgementDate3 ----
                acknowledgementDate3.setColumns(10);
                panel32.add(acknowledgementDate3, cc.xy(3, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- rights2 ----
                rights2.setText("User Defined Boolean 1");
                rights2.setOpaque(false);
                rights2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights2.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_USER_DEFINED_BOOLEAN1));
                panel32.add(rights2, cc.xywh(1, 5, 3, 1));

                //---- rights3 ----
                rights3.setText("User Defined Boolean 2");
                rights3.setOpaque(false);
                rights3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights3.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_USER_DEFINED_BOOLEAN2));
                panel32.add(rights3, cc.xywh(1, 7, 3, 1));

                //---- label_date1Begin2 ----
                label_date1Begin2.setText("User Defined Integer 1");
                label_date1Begin2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin2, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_INTEGER1);
                panel32.add(label_date1Begin2, cc.xy(1, 9));

                //---- date1Begin2 ----
                date1Begin2.setColumns(6);
                panel32.add(date1Begin2, cc.xy(3, 9, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_date1Begin3 ----
                label_date1Begin3.setText("User Defined Integer 2");
                label_date1Begin3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin3, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_INTEGER2);
                panel32.add(label_date1Begin3, cc.xy(1, 11));

                //---- date1Begin3 ----
                date1Begin3.setColumns(6);
                panel32.add(date1Begin3, cc.xy(3, 11, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_date1Begin4 ----
                label_date1Begin4.setText("User Defined Real 1");
                label_date1Begin4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin4, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_REAL1);
                panel32.add(label_date1Begin4, cc.xy(1, 13));

                //---- extentNumber2 ----
                extentNumber2.setColumns(5);
                panel32.add(extentNumber2, cc.xy(3, 13, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_date1Begin5 ----
                label_date1Begin5.setText("User Defined Real 2");
                label_date1Begin5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin5, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_REAL2);
                panel32.add(label_date1Begin5, cc.xy(1, 15));

                //---- extentNumber3 ----
                extentNumber3.setColumns(5);
                panel32.add(extentNumber3, cc.xy(3, 15, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_date1Begin6 ----
                label_date1Begin6.setText("User Defined String 1");
                label_date1Begin6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin6, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_STRING1);
                panel32.add(label_date1Begin6, cc.xy(1, 17));
                panel32.add(dateExpression2, new CellConstraints(3, 17, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- label_date1Begin7 ----
                label_date1Begin7.setText("User Defined String 2");
                label_date1Begin7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin7, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_STRING2);
                panel32.add(label_date1Begin7, cc.xy(1, 19));
                panel32.add(dateExpression3, new CellConstraints(3, 19, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- label_date1Begin8 ----
                label_date1Begin8.setText("User Defined String 3");
                label_date1Begin8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin8, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_STRING3);
                panel32.add(label_date1Begin8, cc.xy(1, 21));
                panel32.add(dateExpression4, new CellConstraints(3, 21, 1, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- label_date1Begin9 ----
                label_date1Begin9.setText("User Defined Text 1");
                label_date1Begin9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin9, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_TEXT1);
                panel32.add(label_date1Begin9, cc.xy(1, 23));

                //======== scrollPane44 ========
                {
                    scrollPane44.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane44.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane44.setPreferredSize(new Dimension(200, 68));

                    //---- title3 ----
                    title3.setRows(4);
                    title3.setLineWrap(true);
                    title3.setWrapStyleWord(true);
                    title3.setMinimumSize(new Dimension(200, 16));
                    scrollPane44.setViewportView(title3);
                }
                panel32.add(scrollPane44, cc.xywh(1, 25, 3, 1));
            }
            panel31.add(panel32, cc.xy(1, 1));

            //======== panel35 ========
            {
                panel35.setOpaque(false);
                panel35.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //---- label_date1Begin10 ----
                label_date1Begin10.setText("User Defined Text 2");
                label_date1Begin10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin10, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_TEXT2);
                panel35.add(label_date1Begin10, cc.xy(1, 1));

                //======== scrollPane45 ========
                {
                    scrollPane45.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane45.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane45.setPreferredSize(new Dimension(200, 68));

                    //---- title4 ----
                    title4.setRows(4);
                    title4.setLineWrap(true);
                    title4.setWrapStyleWord(true);
                    title4.setMinimumSize(new Dimension(200, 16));
                    scrollPane45.setViewportView(title4);
                }
                panel35.add(scrollPane45, cc.xy(1, 3));

                //---- label_date1Begin11 ----
                label_date1Begin11.setText("User Defined Text 3");
                label_date1Begin11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin11, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_TEXT3);
                panel35.add(label_date1Begin11, cc.xy(1, 5));

                //======== scrollPane46 ========
                {
                    scrollPane46.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane46.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane46.setPreferredSize(new Dimension(200, 68));

                    //---- title5 ----
                    title5.setRows(4);
                    title5.setLineWrap(true);
                    title5.setWrapStyleWord(true);
                    title5.setMinimumSize(new Dimension(200, 16));
                    scrollPane46.setViewportView(title5);
                }
                panel35.add(scrollPane46, cc.xy(1, 7));

                //---- label_date1Begin12 ----
                label_date1Begin12.setText("User Defined Text 4");
                label_date1Begin12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_date1Begin12, Accessions.class,
                        Accessions.PROPERTYNAME_USER_DEFINED_TEXT4);
                panel35.add(label_date1Begin12, cc.xy(1, 9));

                //======== scrollPane47 ========
                {
                    scrollPane47.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane47.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane47.setPreferredSize(new Dimension(200, 68));

                    //---- title6 ----
                    title6.setRows(4);
                    title6.setLineWrap(true);
                    title6.setWrapStyleWord(true);
                    title6.setMinimumSize(new Dimension(200, 16));
                    scrollPane47.setViewportView(title6);
                }
                panel35.add(scrollPane47, cc.xy(1, 11));
            }
            panel31.add(panel35, cc.xy(3, 1));
        }
        tabbedPane.addTab("User defined fields", panel31);

        //======== nonPreferredNamePanel ========
        {
            nonPreferredNamePanel.setBackground(new Color(200, 205, 232));
            nonPreferredNamePanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.setBorder(Borders.DLU2_BORDER);
            nonPreferredNamePanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
            ((FormLayout) nonPreferredNamePanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } });

            //---- SubjectsLabel2 ----
            SubjectsLabel2.setText("Names");
            SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(SubjectsLabel2, cc.xy(1, 1));

            //======== scrollPane1 ========
            {
                scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- namesTable ----
                namesTable.setPreferredScrollableViewportSize(new Dimension(450, 300));
                namesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        namesTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(namesTable);
            }
            nonPreferredNamePanel.add(scrollPane1, cc.xy(1, 3, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel8 ========
            {
                panel8.setBackground(new Color(231, 188, 251));
                panel8.setOpaque(false);
                panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel8.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- editNameRelationshipButton ----
                editNameRelationshipButton.setText("Edit Name Link");
                editNameRelationshipButton.setOpaque(false);
                editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                editNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        editNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(editNameRelationshipButton, cc.xy(1, 1));

                //---- addNameRelationshipButton ----
                addNameRelationshipButton.setText("Add Name Link");
                addNameRelationshipButton.setOpaque(false);
                addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNameRelationshipButtonActionPerformed(e);
                    }
                });
                panel8.add(addNameRelationshipButton, cc.xy(3, 1));

                //---- removeNameRelationshipButton ----
                removeNameRelationshipButton.setText("Remove Name Link");
                removeNameRelationshipButton.setOpaque(false);
                removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNameRelationshipButtonActionPerformed(e);
                    }
                });
                panel8.add(removeNameRelationshipButton, cc.xy(5, 1));
            }
            nonPreferredNamePanel.add(panel8, cc.xy(1, 5, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator5 ----
            separator5.setBackground(new Color(220, 220, 232));
            separator5.setForeground(new Color(147, 131, 86));
            separator5.setMinimumSize(new Dimension(1, 10));
            separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(separator5, cc.xy(1, 7));

            //---- SubjectsLabel ----
            SubjectsLabel.setText("Subjects");
            SubjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            nonPreferredNamePanel.add(SubjectsLabel, cc.xy(1, 9));

            //======== scrollPane3 ========
            {
                scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- subjectsTable ----
                subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200));
                scrollPane3.setViewportView(subjectsTable);
            }
            nonPreferredNamePanel.add(scrollPane3, cc.xy(1, 11));

            //======== panel10 ========
            {
                panel10.setBackground(new Color(231, 188, 251));
                panel10.setOpaque(false);
                panel10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel10.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addSubjectRelationshipButton ----
                addSubjectRelationshipButton.setText("Add Subject Link");
                addSubjectRelationshipButton.setOpaque(false);
                addSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addSubjectRelationshipButtonActionPerformed(e);
                    }
                });
                panel10.add(addSubjectRelationshipButton, cc.xy(1, 1));

                //---- removeSubjectRelationshipButton ----
                removeSubjectRelationshipButton.setText("Remove Subject Link");
                removeSubjectRelationshipButton.setOpaque(false);
                removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeSubjectRelationshipButtonActionPerformed(e);
                    }
                });
                panel10.add(removeSubjectRelationshipButton, cc.xy(3, 1));
            }
            nonPreferredNamePanel.add(panel10, cc.xy(1, 13, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Names & Subjects", nonPreferredNamePanel);

        //======== collectionInfoPanel ========
        {
            collectionInfoPanel.setBackground(new Color(200, 205, 232));
            collectionInfoPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            collectionInfoPanel.setBorder(Borders.DLU2_BORDER);
            collectionInfoPanel.setMinimumSize(new Dimension(640, 403));
            collectionInfoPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) collectionInfoPanel.getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

            //======== panel39 ========
            {
                panel39.setOpaque(false);
                panel39.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.LEFT, Sizes.DLUX14, FormSpec.NO_GROW),
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //---- ExtentNumberLabel3 ----
                ExtentNumberLabel3.setText("Acknowledgements & Restrictions");
                ExtentNumberLabel3.setForeground(new Color(0, 0, 102));
                ExtentNumberLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 16));
                panel39.add(ExtentNumberLabel3,
                        cc.xywh(1, 1, 7, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- rights5 ----
                rights5.setText("Acknowledgement Sent");
                rights5.setOpaque(false);
                rights5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights5.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_ACKNOWLEDGEMENT_SENT));
                panel39.add(rights5, cc.xy(1, 3));

                //---- label_acknowledgementDate4 ----
                label_acknowledgementDate4.setText("Acknowledgement Date");
                label_acknowledgementDate4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_acknowledgementDate4, Accessions.class,
                        Accessions.PROPERTYNAME_ACKNOWLEDGEMENT_DATE);
                panel39.add(label_acknowledgementDate4, cc.xy(5, 3));

                //---- acknowledgementDate4 ----
                acknowledgementDate4.setColumns(10);
                panel39.add(acknowledgementDate4, cc.xy(7, 3, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- rights6 ----
                rights6.setText("Agreement Sent");
                rights6.setOpaque(false);
                rights6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights6.setText(ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_AGREEMENT_SENT));
                panel39.add(rights6, cc.xy(1, 5));

                //---- label_agreementSent2 ----
                label_agreementSent2.setText("Agreement Sent Date");
                label_agreementSent2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_agreementSent2, Accessions.class,
                        Accessions.PROPERTYNAME_AGREEMENT_SENT_DATE);
                panel39.add(label_agreementSent2, cc.xy(5, 5));

                //---- agreementSent2 ----
                agreementSent2.setColumns(10);
                panel39.add(agreementSent2, cc.xy(7, 5, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- rights7 ----
                rights7.setText("Agreement Received");
                rights7.setOpaque(false);
                rights7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights7.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_AGREEMENT_RECEIVED));
                panel39.add(rights7, cc.xy(1, 7));

                //---- label_agreementReceived ----
                label_agreementReceived.setText("Agreement Received Date");
                label_agreementReceived.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_agreementReceived, Accessions.class,
                        Accessions.PROPERTYNAME_AGREEMENT_RECEIVED_DATE);
                panel39.add(label_agreementReceived, cc.xy(5, 7));

                //---- agreementReceived ----
                agreementReceived.setColumns(10);
                panel39.add(agreementReceived, cc.xy(7, 7, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- rights ----
                rights.setText("Rights Transferred");
                rights.setOpaque(false);
                rights.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                rights.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED));
                panel39.add(rights, cc.xy(1, 9));

                //---- label_agreementReceived2 ----
                label_agreementReceived2.setText("Rights Transferred Date");
                label_agreementReceived2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_agreementReceived2, Accessions.class,
                        Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED_DATE);
                panel39.add(label_agreementReceived2, cc.xy(5, 9));

                //---- agreementReceived2 ----
                agreementReceived2.setColumns(10);
                panel39.add(agreementReceived2, cc.xy(7, 9, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- labelAccess3 ----
                labelAccess3.setText("Rights Transferred Note");
                labelAccess3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(labelAccess3, Accessions.class,
                        Accessions.PROPERTYNAME_RIGHTS_TRANSFERRED_NOTE);
                panel39.add(labelAccess3, cc.xy(1, 11));

                //======== scrollPane435 ========
                {
                    scrollPane435.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane435.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- terms3 ----
                    terms3.setRows(4);
                    terms3.setLineWrap(true);
                    terms3.setWrapStyleWord(true);
                    terms3.setMinimumSize(new Dimension(200, 16));
                    scrollPane435.setViewportView(terms3);
                }
                panel39.add(scrollPane435, cc.xywh(1, 13, 7, 1));

                //---- restrictionsApply ----
                restrictionsApply.setText("Restrictions Apply");
                restrictionsApply.setOpaque(false);
                restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_RESTRICTIONS_APPLY));
                panel39.add(restrictionsApply, cc.xy(1, 15));

                //---- restrictionsApply2 ----
                restrictionsApply2.setText("Access Restrictions");
                restrictionsApply2.setOpaque(false);
                restrictionsApply2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply2.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_ACCESS_RESTRICTIONS));
                panel39.add(restrictionsApply2, cc.xy(1, 17));

                //---- labelAccess ----
                labelAccess.setText("Access Restrictions Note");
                labelAccess.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(labelAccess, Accessions.class,
                        Accessions.PROPERTYNAME_ACCESS_RESTRICTIONS_NOTE);
                panel39.add(labelAccess, cc.xy(1, 19));

                //======== scrollPane432 ========
                {
                    scrollPane432.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane432.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane432.setPreferredSize(new Dimension(200, 68));

                    //---- terms ----
                    terms.setRows(4);
                    terms.setLineWrap(true);
                    terms.setWrapStyleWord(true);
                    terms.setMinimumSize(new Dimension(200, 16));
                    scrollPane432.setViewportView(terms);
                }
                panel39.add(scrollPane432, cc.xywh(1, 21, 7, 1));

                //---- restrictionsApply3 ----
                restrictionsApply3.setText("Use Restrictions");
                restrictionsApply3.setOpaque(false);
                restrictionsApply3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                restrictionsApply3.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_USE_RESTRICTIONS));
                panel39.add(restrictionsApply3, cc.xy(1, 23));

                //---- labelAccess2 ----
                labelAccess2.setText("Use Restrictions Note");
                labelAccess2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(labelAccess2, Accessions.class,
                        Accessions.PROPERTYNAME_USE_RESTRICTIONS_NOTE);
                panel39.add(labelAccess2, cc.xy(1, 25));

                //======== scrollPane433 ========
                {
                    scrollPane433.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane433.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- terms2 ----
                    terms2.setRows(4);
                    terms2.setLineWrap(true);
                    terms2.setWrapStyleWord(true);
                    terms2.setMinimumSize(new Dimension(200, 16));
                    scrollPane433.setViewportView(terms2);
                }
                panel39.add(scrollPane433, cc.xywh(1, 27, 7, 1));
            }
            collectionInfoPanel.add(panel39, cc.xy(1, 1));

            //---- separator1 ----
            separator1.setOrientation(SwingConstants.VERTICAL);
            collectionInfoPanel.add(separator1, cc.xy(3, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //======== panel37 ========
            {
                panel37.setOpaque(false);
                panel37.setLayout(new FormLayout(
                        new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //---- ExtentNumberLabel4 ----
                ExtentNumberLabel4.setText("Processing Tasks");
                ExtentNumberLabel4.setForeground(new Color(0, 0, 102));
                ExtentNumberLabel4.setFont(new Font("Trebuchet MS", Font.PLAIN, 16));
                panel37.add(ExtentNumberLabel4,
                        cc.xywh(1, 1, 5, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

                //---- label_resourceType3 ----
                label_resourceType3.setText("Processing Priority");
                label_resourceType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourceType3, Accessions.class,
                        Accessions.PROPERTYNAME_PROCESSING_PRIORITY);
                panel37.add(label_resourceType3, cc.xy(1, 3, CellConstraints.FILL, CellConstraints.DEFAULT));

                //======== panel3 ========
                {
                    panel3.setOpaque(false);
                    panel3.setLayout(new FormLayout("default:grow", "default"));

                    //---- resourceType2 ----
                    resourceType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    resourceType2.setOpaque(false);
                    panel3.add(resourceType2, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel37.add(panel3, cc.xywh(3, 3, 3, 1));

                //---- label_resourceType4 ----
                label_resourceType4.setText("Processor");
                label_resourceType4.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourceType4, Accessions.class,
                        Accessions.PROPERTYNAME_PROCESSORS);
                panel37.add(label_resourceType4, cc.xy(1, 5, CellConstraints.FILL, CellConstraints.DEFAULT));
                panel37.add(dateExpression5, new CellConstraints(3, 5, 3, 1, CellConstraints.DEFAULT,
                        CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                //---- label_processingPlan ----
                label_processingPlan.setText("Processing Plan");
                label_processingPlan.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_processingPlan, Accessions.class,
                        Accessions.PROPERTYNAME_PROCESSING_PLAN);
                panel37.add(label_processingPlan, cc.xywh(1, 7, 3, 1));

                //======== scrollPane4222 ========
                {
                    scrollPane4222.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane4222.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane4222.setPreferredSize(new Dimension(200, 68));

                    //---- processingPlan ----
                    processingPlan.setRows(4);
                    processingPlan.setLineWrap(true);
                    processingPlan.setWrapStyleWord(true);
                    processingPlan.setMinimumSize(new Dimension(200, 16));
                    scrollPane4222.setViewportView(processingPlan);
                }
                panel37.add(scrollPane4222, cc.xywh(1, 9, 5, 1));

                //---- label_dateProcessed3 ----
                label_dateProcessed3.setText("Processing Started");
                label_dateProcessed3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_dateProcessed3, Accessions.class,
                        Accessions.PROPERTYNAME_PROCESSING_STARTED_DATE);
                panel37.add(label_dateProcessed3, cc.xy(1, 11));

                //---- dateProcessed3 ----
                dateProcessed3.setColumns(10);
                panel37.add(dateProcessed3, cc.xy(3, 11, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_resourceType5 ----
                label_resourceType5.setText("Processing Status");
                label_resourceType5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourceType5, Accessions.class,
                        Accessions.PROPERTYNAME_PROCESSING_STATUS);
                panel37.add(label_resourceType5, cc.xy(1, 13, CellConstraints.FILL, CellConstraints.DEFAULT));

                //======== panel1 ========
                {
                    panel1.setOpaque(false);
                    panel1.setLayout(new FormLayout("default:grow", "default"));

                    //---- resourceType3 ----
                    resourceType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    resourceType3.setOpaque(false);
                    panel1.add(resourceType3, cc.xy(1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel37.add(panel1, cc.xywh(3, 13, 3, 1));

                //---- cataloged2 ----
                cataloged2.setText("Accession Processed");
                cataloged2.setOpaque(false);
                cataloged2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                cataloged2.setText(
                        ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_ACCESSION_PROCESSED));
                panel37.add(cataloged2, cc.xy(1, 15));

                //---- label_dateProcessed ----
                label_dateProcessed.setText("Date Processed");
                label_dateProcessed.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_dateProcessed, Accessions.class,
                        Accessions.PROPERTYNAME_ACCESSION_PROCESSED_DATE);
                panel37.add(label_dateProcessed, cc.xy(3, 15));

                //---- dateProcessed ----
                dateProcessed.setColumns(10);
                panel37.add(dateProcessed, cc.xy(5, 15, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- cataloged ----
                cataloged.setText("Cataloged");
                cataloged.setOpaque(false);
                cataloged.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                cataloged.setText(ATFieldInfo.getLabel(Accessions.class, Accessions.PROPERTYNAME_CATALOGED));
                panel37.add(cataloged, cc.xy(1, 17));

                //---- label_dateProcessed2 ----
                label_dateProcessed2.setText("Date Cataloged");
                label_dateProcessed2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_dateProcessed2, Accessions.class,
                        Accessions.PROPERTYNAME_CATALOGED_DATE);
                panel37.add(label_dateProcessed2, cc.xy(3, 17));

                //---- dateProcessed2 ----
                dateProcessed2.setColumns(10);
                panel37.add(dateProcessed2, cc.xy(5, 17, CellConstraints.LEFT, CellConstraints.DEFAULT));

                //---- label_terms2 ----
                label_terms2.setText("Cataloged Note:");
                label_terms2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_terms2, Accessions.class,
                        Accessions.PROPERTYNAME_CATALOGED_NOTE);
                panel37.add(label_terms2, cc.xywh(1, 19, 3, 1));

                //======== scrollPane434 ========
                {
                    scrollPane434.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane434.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    scrollPane434.setPreferredSize(new Dimension(200, 68));

                    //---- catalogedNote ----
                    catalogedNote.setRows(4);
                    catalogedNote.setLineWrap(true);
                    catalogedNote.setWrapStyleWord(true);
                    catalogedNote.setMinimumSize(new Dimension(200, 16));
                    scrollPane434.setViewportView(catalogedNote);
                }
                panel37.add(scrollPane434, cc.xywh(1, 21, 5, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
            }
            collectionInfoPanel.add(panel37, cc.xy(5, 1));
        }
        tabbedPane.addTab("Acknowledgements, Restrictions & Processing Tasks", collectionInfoPanel);

    }
    add(tabbedPane, cc.xy(1, 2, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
}

From source file:org.archiviststoolkit.editor.ResourceComponentsFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    tabbedPane = new JTabbedPane();
    basicInformationPanel = new JPanel();
    panel7 = new JPanel();
    panel3 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LEVEL, ResourcesComponents.class);
    panel12 = new JPanel();
    label3 = new JLabel();
    resourcesDateBegin2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_PERSISTENT_ID));
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_OTHER_LEVEL), false);
    label_resourcesTitle = new JLabel();
    scrollPane42 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    panel34 = new JPanel();
    panel35 = new JPanel();
    panel36 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    resourcesDateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label = new JLabel();
    label_resourcesDateBegin = new JLabel();
    resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_resourcesBulkDateBegin = new JLabel();
    resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ResourcesComponents.PROPERTYNAME_BULK_DATE_BEGIN);
    label_resourcesBulkDateEnd = new JLabel();
    resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ResourcesComponents.PROPERTYNAME_BULK_DATE_END);
    panel9 = new JPanel();
    label_resourcesLanguageCode2 = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_LANGUAGE_CODE, ResourcesComponents.class);
    panel23 = new JPanel();
    label_resourcesLanguageNote2 = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory.createTextArea(
            detailsModel.getModel(ResourcesComponents.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    separator2 = new JSeparator();
    panel10 = new JPanel();
    panel1 = new JPanel();
    label_resourcesLevel2 = new JLabel();
    subdivisionIdentifier = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_UNIQUE_IDENTIFIER), false);
    panel32 = new JPanel();
    panel5 = new JPanel();
    ExtentNumberLabel2 = new JLabel();
    label_resourcesExtentNumber = new JLabel();
    resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            ResourcesComponents.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_EXTENT_TYPE, ResourcesComponents.class);
    label_resourcesExtentDescription = new JLabel();
    scrollPane422 = new JScrollPane();
    resourcesExtentDescription = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ResourcesComponents.PROPERTYNAME_CONTAINER_SUMMARY), false);
    panel2 = new JPanel();
    panel6 = new JPanel();
    label1 = new JLabel();
    scrollPane4 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel13 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    panel4 = new JPanel();
    restrictionsApply2 = ATBasicComponentFactory.createCheckBox(detailsModel,
            ResourcesComponents.PROPERTYNAME_INTERNAL_ONLY, ResourcesComponents.class);
    resourcesRestrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, ResourcesComponents.class);
    namesPanel = new JPanel();
    SubjectsLabel2 = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel8 = new JPanel();
    editNameRelationshipButton = new JButton();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    separator5 = new JSeparator();
    SubjectsLabel = new JLabel();
    scrollPane3 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel11 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    notesPanel = new JPanel();
    scrollPane5 = new JScrollPane();
    repeatingDataTable = new DomainSortedTable(ArchDescriptionRepeatingData.class);
    panel15 = new JPanel();
    addNoteEtcComboBox = new JComboBox();
    removeNotesEtcButton = new JButton();
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout("default:grow", "top:default:grow"));

    //======== tabbedPane ========
    {//from   ww w .j av a2s.  c o m
        tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        tabbedPane.setBackground(new Color(200, 205, 232));
        tabbedPane.setOpaque(true);

        //======== basicInformationPanel ========
        {
            basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            basicInformationPanel.setBackground(new Color(200, 205, 232));
            basicInformationPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, 0.5),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("left:max(default;300px):grow(0.5)") },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

            //======== panel7 ========
            {
                panel7.setOpaque(false);
                panel7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel7.setBorder(Borders.DLU2_BORDER);
                panel7.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                //======== panel3 ========
                {
                    panel3.setOpaque(false);
                    panel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel3.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.MIN_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    FormFactory.DEFAULT_COLSPEC, FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.RIGHT, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                    //---- label_resourcesLevel ----
                    label_resourcesLevel.setText("Level");
                    label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLevel, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_LEVEL);
                    panel3.add(label_resourcesLevel,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- resourcesLevel ----
                    resourcesLevel.setOpaque(false);
                    resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    resourcesLevel.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            resourcesLevelActionPerformed();
                        }
                    });
                    panel3.add(resourcesLevel,
                            cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== panel12 ========
                    {
                        panel12.setOpaque(false);
                        panel12.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                        //---- label3 ----
                        label3.setText("Persistent ID");
                        label3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label3, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_PERSISTENT_ID);
                        panel12.add(label3, cc.xy(1, 1));

                        //---- resourcesDateBegin2 ----
                        resourcesDateBegin2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        resourcesDateBegin2.setEditable(false);
                        resourcesDateBegin2.setOpaque(false);
                        panel12.add(resourcesDateBegin2, cc.xy(3, 1));
                    }
                    panel3.add(panel12, cc.xy(5, 1));

                    //---- label_otherLevel ----
                    label_otherLevel.setText("Other Level");
                    label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_otherLevel, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_OTHER_LEVEL);
                    panel3.add(label_otherLevel,
                            cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                    panel3.add(resourcesOtherLevel, cc.xywh(3, 3, 3, 1));

                    //---- label_resourcesTitle ----
                    label_resourcesTitle.setText("Title");
                    label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesTitle, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_TITLE);
                    panel3.add(label_resourcesTitle, cc.xywh(1, 5, 5, 1));

                    //======== scrollPane42 ========
                    {
                        scrollPane42.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- resourcesTitle ----
                        resourcesTitle.setRows(4);
                        resourcesTitle.setLineWrap(true);
                        resourcesTitle.setWrapStyleWord(true);
                        scrollPane42.setViewportView(resourcesTitle);
                    }
                    panel3.add(scrollPane42, cc.xywh(1, 7, 5, 1));

                    //======== tagApplicatorPanel ========
                    {
                        tagApplicatorPanel.setOpaque(false);
                        tagApplicatorPanel.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                        //---- insertInlineTag ----
                        insertInlineTag.setOpaque(false);
                        insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        insertInlineTag.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                insertInlineTagActionPerformed();
                            }
                        });
                        tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1));
                    }
                    panel3.add(tagApplicatorPanel, cc.xywh(1, 9, 5, 1));
                }
                panel7.add(panel3, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                //======== panel34 ========
                {
                    panel34.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel34.setBackground(new Color(182, 187, 212));
                    panel34.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                            new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.RELATED_GAP_ROWSPEC }));

                    //======== panel35 ========
                    {
                        panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.setOpaque(false);
                        panel35.setBorder(Borders.DLU2_BORDER);
                        panel35.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //======== panel36 ========
                        {
                            panel36.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel36.setOpaque(false);
                            panel36.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default:grow")));

                            //---- label_resourcesDateExpression ----
                            label_resourcesDateExpression.setText("Date Expression");
                            label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(label_resourcesDateExpression,
                                    ResourcesComponents.class,
                                    ResourcesComponents.PROPERTYNAME_DATE_EXPRESSION);
                            panel36.add(label_resourcesDateExpression, cc.xy(1, 1));
                            panel36.add(resourcesDateExpression, cc.xy(3, 1));
                        }
                        panel35.add(panel36, cc.xywh(1, 1, 9, 1));

                        //---- Date1Label ----
                        Date1Label.setText("Date");
                        Date1Label.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.add(Date1Label, new CellConstraints(1, 3, 9, 1, CellConstraints.DEFAULT,
                                CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                        //---- label_resourcesDateBegin ----
                        label_resourcesDateBegin.setText("Begin");
                        label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_DATE_BEGIN);
                        panel35.add(label_resourcesDateBegin, cc.xy(3, 5));

                        //---- resourcesDateBegin ----
                        resourcesDateBegin.setColumns(4);
                        panel35.add(resourcesDateBegin, cc.xy(5, 5));

                        //---- label_resourcesDateEnd ----
                        label_resourcesDateEnd.setText("End");
                        label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_DATE_END);
                        panel35.add(label_resourcesDateEnd, cc.xy(7, 5));

                        //---- resourcesDateEnd ----
                        resourcesDateEnd.setColumns(4);
                        panel35.add(resourcesDateEnd, new CellConstraints(9, 5, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                        //---- BulkDatesLabel ----
                        BulkDatesLabel.setText("Bulk Dates");
                        BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.add(BulkDatesLabel, new CellConstraints(1, 7, 9, 1, CellConstraints.DEFAULT,
                                CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                        //---- label_resourcesBulkDateBegin ----
                        label_resourcesBulkDateBegin.setText("Begin");
                        label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_BULK_DATE_BEGIN);
                        panel35.add(label_resourcesBulkDateBegin, cc.xy(3, 9));

                        //---- resourcesBulkDateBegin ----
                        resourcesBulkDateBegin.setColumns(4);
                        panel35.add(resourcesBulkDateBegin, cc.xy(5, 9));

                        //---- label_resourcesBulkDateEnd ----
                        label_resourcesBulkDateEnd.setText("End");
                        label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_BULK_DATE_END);
                        panel35.add(label_resourcesBulkDateEnd, cc.xy(7, 9));

                        //---- resourcesBulkDateEnd ----
                        resourcesBulkDateEnd.setColumns(4);
                        panel35.add(resourcesBulkDateEnd, new CellConstraints(9, 9, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
                    }
                    panel34.add(panel35, cc.xy(1, 1));
                }
                panel7.add(panel34, cc.xy(1, 3));

                //======== panel9 ========
                {
                    panel9.setOpaque(false);
                    panel9.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec("left:min(default;200px)") },
                            RowSpec.decodeSpecs("default")));

                    //---- label_resourcesLanguageCode2 ----
                    label_resourcesLanguageCode2.setText("Lanaguage");
                    label_resourcesLanguageCode2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode2, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_LANGUAGE_CODE);
                    panel9.add(label_resourcesLanguageCode2, cc.xy(1, 1));

                    //---- resourcesLanguageCode ----
                    resourcesLanguageCode.setMaximumSize(new Dimension(150, 32767));
                    resourcesLanguageCode.setOpaque(false);
                    resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel9.add(resourcesLanguageCode,
                            cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel7.add(panel9, cc.xy(1, 5));

                //======== panel23 ========
                {
                    panel23.setOpaque(false);
                    panel23.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel23.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                    //---- label_resourcesLanguageNote2 ----
                    label_resourcesLanguageNote2.setText("Repository Processing Note");
                    label_resourcesLanguageNote2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote2, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE);
                    panel23.add(label_resourcesLanguageNote2, new CellConstraints(1, 1, 1, 1,
                            CellConstraints.DEFAULT, CellConstraints.DEFAULT, new Insets(0, 10, 0, 0)));

                    //======== scrollPane423 ========
                    {
                        scrollPane423.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- resourcesLanguageNote ----
                        resourcesLanguageNote.setRows(4);
                        resourcesLanguageNote.setWrapStyleWord(true);
                        scrollPane423.setViewportView(resourcesLanguageNote);
                    }
                    panel23.add(scrollPane423, new CellConstraints(1, 3, 1, 1, CellConstraints.DEFAULT,
                            CellConstraints.DEFAULT, new Insets(0, 10, 0, 0)));
                }
                panel7.add(panel23, cc.xy(1, 7));
            }
            basicInformationPanel.add(panel7,
                    cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- separator2 ----
            separator2.setForeground(new Color(147, 131, 86));
            separator2.setOrientation(SwingConstants.VERTICAL);
            basicInformationPanel.add(separator2,
                    cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //======== panel10 ========
            {
                panel10.setOpaque(false);
                panel10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel10.setBorder(Borders.DLU2_BORDER);
                panel10.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC,
                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //======== panel1 ========
                {
                    panel1.setOpaque(false);
                    panel1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel1.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, new ColumnSpec(
                                                    ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default")));

                    //---- label_resourcesLevel2 ----
                    label_resourcesLevel2.setText("Component Unique Identifier");
                    label_resourcesLevel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLevel2, ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_UNIQUE_IDENTIFIER);
                    panel1.add(label_resourcesLevel2,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- subdivisionIdentifier ----
                    subdivisionIdentifier.setColumns(5);
                    panel1.add(subdivisionIdentifier,
                            cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                }
                panel10.add(panel1, cc.xy(1, 1));

                //======== panel32 ========
                {
                    panel32.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel32.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel32.setBackground(new Color(182, 187, 212));
                    panel32.setLayout(new FormLayout("60px:grow", "fill:default:grow"));

                    //======== panel5 ========
                    {
                        panel5.setBorder(Borders.DLU2_BORDER);
                        panel5.setOpaque(false);
                        panel5.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                        //---- ExtentNumberLabel2 ----
                        ExtentNumberLabel2.setText("Extent");
                        ExtentNumberLabel2.setForeground(new Color(0, 0, 102));
                        ExtentNumberLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel5.add(ExtentNumberLabel2, cc.xywh(1, 1, 2, 1));

                        //---- label_resourcesExtentNumber ----
                        label_resourcesExtentNumber.setText("Extent");
                        label_resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_EXTENT_NUMBER);
                        panel5.add(label_resourcesExtentNumber, cc.xy(2, 3));

                        //---- resourcesExtentNumber ----
                        resourcesExtentNumber.setColumns(5);
                        panel5.add(resourcesExtentNumber, cc.xy(4, 3));

                        //---- extentType ----
                        extentType.setOpaque(false);
                        extentType.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel5.add(extentType,
                                cc.xywh(6, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                        //---- label_resourcesExtentDescription ----
                        label_resourcesExtentDescription.setText("Container Summary");
                        label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_CONTAINER_SUMMARY);
                        panel5.add(label_resourcesExtentDescription, cc.xywh(2, 5, 5, 1));

                        //======== scrollPane422 ========
                        {
                            scrollPane422
                                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                            scrollPane422.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                            //---- resourcesExtentDescription ----
                            resourcesExtentDescription.setRows(4);
                            resourcesExtentDescription.setWrapStyleWord(true);
                            scrollPane422.setViewportView(resourcesExtentDescription);
                        }
                        panel5.add(scrollPane422, cc.xywh(2, 7, 5, 1));
                    }
                    panel32.add(panel5, cc.xy(1, 1));
                }
                panel10.add(panel32, cc.xy(1, 3));

                //======== panel2 ========
                {
                    panel2.setBackground(new Color(182, 187, 212));
                    panel2.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel2.setLayout(new FormLayout("default:grow", "fill:default:grow"));

                    //======== panel6 ========
                    {
                        panel6.setOpaque(false);
                        panel6.setBorder(Borders.DLU2_BORDER);
                        panel6.setLayout(
                                new FormLayout(
                                        new ColumnSpec[] { FormFactory.RELATED_GAP_COLSPEC,
                                                new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                        FormSpec.DEFAULT_GROW) },
                                        new RowSpec[] { FormFactory.DEFAULT_ROWSPEC,
                                                FormFactory.LINE_GAP_ROWSPEC,
                                                new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                                FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                        //---- label1 ----
                        label1.setText("Instances");
                        label1.setForeground(new Color(0, 0, 102));
                        label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label1, ResourcesComponents.class,
                                ResourcesComponents.PROPERTYNAME_INSTANCES);
                        panel6.add(label1, cc.xywh(1, 1, 2, 1));

                        //======== scrollPane4 ========
                        {
                            scrollPane4
                                    .setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

                            //---- instancesTable ----
                            instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
                            instancesTable.setRowHeight(20);
                            instancesTable.addMouseListener(new MouseAdapter() {
                                @Override
                                public void mouseClicked(MouseEvent e) {
                                    instancesTableMouseClicked(e);
                                }
                            });
                            scrollPane4.setViewportView(instancesTable);
                        }
                        panel6.add(scrollPane4, cc.xy(2, 3));

                        //======== panel13 ========
                        {
                            panel13.setBackground(new Color(231, 188, 251));
                            panel13.setOpaque(false);
                            panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel13.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                    RowSpec.decodeSpecs("default")));

                            //---- addInstanceButton ----
                            addInstanceButton.setBackground(new Color(231, 188, 251));
                            addInstanceButton.setText("Add Instance");
                            addInstanceButton.setOpaque(false);
                            addInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            addInstanceButton.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent e) {
                                    addInstanceButtonActionPerformed();
                                }
                            });
                            panel13.add(addInstanceButton, cc.xy(1, 1));

                            //---- removeInstanceButton ----
                            removeInstanceButton.setBackground(new Color(231, 188, 251));
                            removeInstanceButton.setText("Remove Instance");
                            removeInstanceButton.setOpaque(false);
                            removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            removeInstanceButton.addActionListener(new ActionListener() {
                                public void actionPerformed(ActionEvent e) {
                                    removeInstanceButtonActionPerformed();
                                }
                            });
                            panel13.add(removeInstanceButton, cc.xy(3, 1));
                        }
                        panel6.add(panel13,
                                cc.xywh(1, 5, 2, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
                    }
                    panel2.add(panel6, cc.xy(1, 1));
                }
                panel10.add(panel2, cc.xy(1, 5));

                //======== panel4 ========
                {
                    panel4.setOpaque(false);
                    panel4.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                            RowSpec.decodeSpecs("default")));

                    //---- restrictionsApply2 ----
                    restrictionsApply2.setBackground(new Color(231, 188, 251));
                    restrictionsApply2.setText("Internal Only");
                    restrictionsApply2.setOpaque(false);
                    restrictionsApply2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    restrictionsApply2.setText(ATFieldInfo.getLabel(ResourcesComponents.class,
                            ResourcesComponents.PROPERTYNAME_INTERNAL_ONLY));
                    panel4.add(restrictionsApply2, cc.xy(1, 1));

                    //---- resourcesRestrictionsApply ----
                    resourcesRestrictionsApply.setBackground(new Color(231, 188, 251));
                    resourcesRestrictionsApply.setText("Restrictions Apply");
                    resourcesRestrictionsApply.setOpaque(false);
                    resourcesRestrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    resourcesRestrictionsApply.setText(ATFieldInfo.getLabel(ResourcesComponents.class,
                            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
                    panel4.add(resourcesRestrictionsApply, cc.xy(3, 1));
                }
                panel10.add(panel4, cc.xy(1, 7));
            }
            basicInformationPanel.add(panel10, cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.FILL));
        }
        tabbedPane.addTab("Basic Description", basicInformationPanel);

        //======== namesPanel ========
        {
            namesPanel.setBackground(new Color(200, 205, 232));
            namesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
            ((FormLayout) namesPanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } });

            //---- SubjectsLabel2 ----
            SubjectsLabel2.setText("Names");
            SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel2, cc.xy(1, 1));

            //======== scrollPane1 ========
            {
                scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- namesTable ----
                namesTable.setPreferredScrollableViewportSize(new Dimension(450, 300));
                namesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        namesTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(namesTable);
            }
            namesPanel.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel8 ========
            {
                panel8.setBackground(new Color(231, 188, 251));
                panel8.setOpaque(false);
                panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel8.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- editNameRelationshipButton ----
                editNameRelationshipButton.setText("Edit Name Link");
                editNameRelationshipButton.setOpaque(false);
                editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                editNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        editNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(editNameRelationshipButton, cc.xy(1, 1));

                //---- addNameRelationshipButton ----
                addNameRelationshipButton.setBackground(new Color(231, 188, 251));
                addNameRelationshipButton.setText("Add Name Link");
                addNameRelationshipButton.setOpaque(false);
                addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(addNameRelationshipButton, cc.xy(3, 1));

                //---- removeNameRelationshipButton ----
                removeNameRelationshipButton.setBackground(new Color(231, 188, 251));
                removeNameRelationshipButton.setText("Remove Name Link");
                removeNameRelationshipButton.setOpaque(false);
                removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(removeNameRelationshipButton, cc.xy(5, 1));
            }
            namesPanel.add(panel8, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator5 ----
            separator5.setBackground(new Color(220, 220, 232));
            separator5.setForeground(new Color(147, 131, 86));
            separator5.setMinimumSize(new Dimension(1, 10));
            separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(separator5, cc.xy(1, 7));

            //---- SubjectsLabel ----
            SubjectsLabel.setText("Subjects");
            SubjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel, cc.xy(1, 9));

            //======== scrollPane3 ========
            {
                scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- subjectsTable ----
                subjectsTable.setPreferredScrollableViewportSize(new Dimension(200, 200));
                scrollPane3.setViewportView(subjectsTable);
            }
            namesPanel.add(scrollPane3, cc.xy(1, 11));

            //======== panel11 ========
            {
                panel11.setBackground(new Color(231, 188, 251));
                panel11.setOpaque(false);
                panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel11.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addSubjectRelationshipButton ----
                addSubjectRelationshipButton.setBackground(new Color(231, 188, 251));
                addSubjectRelationshipButton.setText("Add Subject Link");
                addSubjectRelationshipButton.setOpaque(false);
                addSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addSubjectRelationshipButtonActionPerformed();
                    }
                });
                panel11.add(addSubjectRelationshipButton, cc.xy(1, 1));

                //---- removeSubjectRelationshipButton ----
                removeSubjectRelationshipButton.setBackground(new Color(231, 188, 251));
                removeSubjectRelationshipButton.setText("Remove Subject Link");
                removeSubjectRelationshipButton.setOpaque(false);
                removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeSubjectRelationshipButtonActionPerformed();
                    }
                });
                panel11.add(removeSubjectRelationshipButton, cc.xy(3, 1));
            }
            namesPanel.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Names & Subjects", namesPanel);

        //======== notesPanel ========
        {
            notesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            notesPanel.setBackground(new Color(200, 205, 232));
            notesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //======== scrollPane5 ========
            {
                scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- repeatingDataTable ----
                repeatingDataTable.setDragEnabled(true);
                repeatingDataTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        repeatingDataTableMouseClicked(e);
                    }
                });
                scrollPane5.setViewportView(repeatingDataTable);
            }
            notesPanel.add(scrollPane5, cc.xy(1, 1));

            //======== panel15 ========
            {
                panel15.setBackground(new Color(231, 188, 251));
                panel15.setOpaque(false);
                panel15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel15.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addNoteEtcComboBox ----
                addNoteEtcComboBox.setOpaque(false);
                addNoteEtcComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNoteEtcComboBoxActionPerformed(e);
                    }
                });
                panel15.add(addNoteEtcComboBox, cc.xy(1, 1));

                //---- removeNotesEtcButton ----
                removeNotesEtcButton.setBackground(new Color(231, 188, 251));
                removeNotesEtcButton.setText("Remove Note etc.");
                removeNotesEtcButton.setOpaque(false);
                removeNotesEtcButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNotesEtcButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNotesEtcButtonActionPerformed();
                    }
                });
                panel15.add(removeNotesEtcButton, cc.xy(3, 1));
            }
            notesPanel.add(panel15, cc.xywh(1, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Notes Etc.", notesPanel);

    }
    add(tabbedPane, cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
    instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
}

From source file:org.archiviststoolkit.editor.ResourceFields.java

License:Open Source License

private void initComponents() {
    // JFormDesigner - Component initialization - DO NOT MODIFY  //GEN-BEGIN:initComponents
    // Generated using JFormDesigner non-commercial license
    tabbedPane = new JTabbedPane();
    basicInformationPanel = new JPanel();
    panel16 = new JPanel();
    panel19 = new JPanel();
    label_resourcesLevel = new JLabel();
    resourcesLevel = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_LEVEL,
            Resources.class);
    label_otherLevel = new JLabel();
    resourcesOtherLevel = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_OTHER_LEVEL), false);
    label_resourcesTitle = new JLabel();
    scrollPane2 = new JScrollPane();
    resourcesTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(ArchDescription.PROPERTYNAME_TITLE), false);
    tagApplicatorPanel = new JPanel();
    insertInlineTag = ATBasicComponentFactory
            .createUnboundComboBox(InLineTagsUtils.getInLineTagList(InLineTagsUtils.TITLE));
    panel34 = new JPanel();
    panel35 = new JPanel();
    panel36 = new JPanel();
    label_resourcesDateExpression = new JLabel();
    resourcesDateExpression = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(ArchDescription.PROPERTYNAME_DATE_EXPRESSION), false);
    Date1Label1 = new JLabel();
    label_resourcesDateBegin = new JLabel();
    resourcesDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_BEGIN);
    label_resourcesDateEnd = new JLabel();
    resourcesDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            ArchDescription.PROPERTYNAME_DATE_END);
    BulkDatesLabel = new JLabel();
    label_resourcesBulkDateBegin = new JLabel();
    resourcesBulkDateBegin = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_BEGIN);
    label_resourcesBulkDateEnd = new JLabel();
    resourcesBulkDateEnd = ATBasicComponentFactory.createIntegerField(detailsModel,
            Resources.PROPERTYNAME_BULK_DATE_END);
    panel1 = new JPanel();
    label_resourcesLanguageCode = new JLabel();
    resourcesLanguageCode = ATBasicComponentFactory.createComboBox(detailsModel,
            Resources.PROPERTYNAME_LANGUAGE_CODE, Resources.class);
    label_resourcesLanguageNote = new JLabel();
    scrollPane423 = new JScrollPane();
    resourcesLanguageNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE), false);
    panel6 = new JPanel();
    label_agreementReceived2 = new JLabel();
    repositoryName = new JTextField();
    changeRepositoryButton = new JButton();
    panel13 = new JPanel();
    panel17 = new JPanel();
    panel12 = new JPanel();
    label_resourceIdentifier1 = new JLabel();
    resourceIdentifier1 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_1));
    resourceIdentifier2 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_2));
    resourceIdentifier3 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_3));
    resourceIdentifier4 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_RESOURCE_IDENTIFIER_4));
    panel42 = new JPanel();
    panel43 = new JPanel();
    OtherAccessionsLabel = new JLabel();
    scrollPane4 = new JScrollPane();
    accessionsTable = new DomainSortableTable();
    panel37 = new JPanel();
    panel20 = new JPanel();
    ExtentLabel = new JLabel();
    panel21 = new JPanel();
    label_resourcesExtentNumber = new JLabel();
    resourcesExtentNumber = ATBasicComponentFactory.createDoubleField(detailsModel,
            Resources.PROPERTYNAME_EXTENT_NUMBER);
    extentType = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_EXTENT_TYPE,
            Resources.class);
    label_resourcesExtentDescription = new JLabel();
    scrollPane422 = new JScrollPane();
    containerSummary = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_CONTAINER_SUMMARY), false);
    panel39 = new JPanel();
    panel40 = new JPanel();
    label1 = new JLabel();
    scrollPane6 = new JScrollPane();
    instancesTable = new DomainSortableTable(ArchDescriptionInstances.class,
            ArchDescriptionInstances.PROPERTYNAME_INSTANCE_TYPE);
    panel29 = new JPanel();
    addInstanceButton = new JButton();
    removeInstanceButton = new JButton();
    panel2 = new JPanel();
    restrictionsApply = ATBasicComponentFactory.createCheckBox(detailsModel,
            ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY, Resources.class);
    separator2 = new JSeparator();
    namesPanel = new JPanel();
    SubjectsLabel2 = new JLabel();
    scrollPane1 = new JScrollPane();
    namesTable = new DomainSortableTable(ArchDescriptionNames.class,
            ArchDescriptionNames.PROPERTYNAME_SORT_NAME);
    panel8 = new JPanel();
    editNameRelationshipButton = new JButton();
    addNameRelationshipButton = new JButton();
    removeNameRelationshipButton = new JButton();
    separator5 = new JSeparator();
    SubjectsLabel = new JLabel();
    scrollPane3 = new JScrollPane();
    subjectsTable = new DomainSortableTable(ArchDescriptionSubjects.class,
            ArchDescriptionSubjects.PROPERTYNAME_SUBJECT_TERM);
    panel11 = new JPanel();
    addSubjectRelationshipButton = new JButton();
    removeSubjectRelationshipButton = new JButton();
    notesPanel = new JPanel();
    SubjectsLabel3 = new JLabel();
    scrollPane5 = new JScrollPane();
    repeatingDataTable = new DomainSortedTable(ArchDescriptionRepeatingData.class);
    panel14 = new JPanel();
    addNoteEtcComboBox = new JComboBox();
    removeNotesEtcButton = new JButton();
    separator6 = new JSeparator();
    label_repositoryName3 = new JLabel();
    scrollPane7 = new JScrollPane();
    deaccessionsTable = new DomainSortableTable(Deaccessions.class);
    panel33 = new JPanel();
    addDeaccessions = new JButton();
    removeDeaccession = new JButton();
    basicInformationPanel2 = new JPanel();
    panel30 = new JPanel();
    panel9 = new JPanel();
    label6 = new JLabel();
    eadIdentifier5 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER), false);
    label15 = new JLabel();
    eadIdentifier13 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_EAD_FA_LOCATION), false);
    label7 = new JLabel();
    scrollPane45 = new JScrollPane();
    findingAidTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_TITLE));
    label8 = new JLabel();
    scrollPane46 = new JScrollPane();
    findingAidSubtitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_SUBTITLE));
    label2 = new JLabel();
    scrollPane8 = new JScrollPane();
    findingAidFilingTitle = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE));
    label9 = new JLabel();
    eadIdentifier10 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_DATE), false);
    label10 = new JLabel();
    scrollPane47 = new JScrollPane();
    author = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_AUTHOR));
    label11 = new JLabel();
    extentType2 = ATBasicComponentFactory.createComboBox(detailsModel, Resources.PROPERTYNAME_DESCRIPTION_RULES,
            Resources.class, 30);
    label12 = new JLabel();
    scrollPane48 = new JScrollPane();
    languageOfFindingAid = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID));
    separator1 = new JSeparator();
    panel41 = new JPanel();
    panel31 = new JPanel();
    label_resourcesTitle2 = new JLabel();
    scrollPane43 = new JScrollPane();
    sponsorNote = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SPONSOR_NOTE));
    label13 = new JLabel();
    scrollPane49 = new JScrollPane();
    editionStatement = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_EDITION_STATEMENT));
    label14 = new JLabel();
    scrollPane50 = new JScrollPane();
    series = ATBasicComponentFactory.createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_SERIES));
    label16 = new JLabel();
    eadIdentifier15 = ATBasicComponentFactory
            .createTextField(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DATE), false);
    label17 = new JLabel();
    scrollPane51 = new JScrollPane();
    revisionDescription = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_REVISION_DESCRIPTION));
    label18 = new JLabel();
    panel3 = new JPanel();
    extentType3 = ATBasicComponentFactory.createComboBox(detailsModel,
            Resources.PROPERTYNAME_FINDING_AID_STATUS, Resources.class);
    label_resourcesTitle3 = new JLabel();
    scrollPane44 = new JScrollPane();
    sponsorNote2 = ATBasicComponentFactory
            .createTextArea(detailsModel.getModel(Resources.PROPERTYNAME_FINDING_AID_NOTE));
    CellConstraints cc = new CellConstraints();

    //======== this ========
    setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
    setBackground(new Color(200, 205, 232));
    setLayout(new FormLayout("default:grow", "fill:default:grow"));

    //======== tabbedPane ========
    {/* www.  ja va  2  s  .  co m*/
        tabbedPane.setMinimumSize(new Dimension(635, 408));
        tabbedPane.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
        tabbedPane.setPreferredSize(new Dimension(750, 520));
        tabbedPane.setBackground(new Color(200, 205, 232));

        //======== basicInformationPanel ========
        {
            basicInformationPanel.setBackground(new Color(200, 205, 232));
            basicInformationPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            basicInformationPanel.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) basicInformationPanel.getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

            //======== panel16 ========
            {
                panel16.setOpaque(false);
                panel16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel16.setBorder(Borders.DLU2_BORDER);
                panel16.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"), new RowSpec[] {
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW), FormFactory.LINE_GAP_ROWSPEC,
                        new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                        FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                //======== panel19 ========
                {
                    panel19.setOpaque(false);
                    panel19.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel19.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                    //---- label_resourcesLevel ----
                    label_resourcesLevel.setText("Level");
                    label_resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLevel, Resources.class,
                            Resources.PROPERTYNAME_LEVEL);
                    panel19.add(label_resourcesLevel,
                            cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                    //---- resourcesLevel ----
                    resourcesLevel.setOpaque(false);
                    resourcesLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    resourcesLevel.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            resourcesLevelActionPerformed();
                        }
                    });
                    panel19.add(resourcesLevel,
                            cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //---- label_otherLevel ----
                    label_otherLevel.setText("Other Level");
                    label_otherLevel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_otherLevel, Resources.class,
                            Resources.PROPERTYNAME_OTHER_LEVEL);
                    panel19.add(label_otherLevel, cc.xy(1, 3));
                    panel19.add(resourcesOtherLevel, new CellConstraints(3, 3, 1, 1, CellConstraints.FILL,
                            CellConstraints.TOP, new Insets(0, 0, 0, 5)));

                    //---- label_resourcesTitle ----
                    label_resourcesTitle.setText("Title");
                    label_resourcesTitle.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesTitle, Resources.class,
                            Resources.PROPERTYNAME_TITLE);
                    panel19.add(label_resourcesTitle, cc.xywh(1, 5, 3, 1));

                    //======== scrollPane2 ========
                    {

                        //---- resourcesTitle ----
                        resourcesTitle.setRows(4);
                        resourcesTitle.setLineWrap(true);
                        resourcesTitle.setWrapStyleWord(true);
                        scrollPane2.setViewportView(resourcesTitle);
                    }
                    panel19.add(scrollPane2, cc.xywh(1, 7, 3, 1));

                    //======== tagApplicatorPanel ========
                    {
                        tagApplicatorPanel.setOpaque(false);
                        tagApplicatorPanel.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                        //---- insertInlineTag ----
                        insertInlineTag.setOpaque(false);
                        insertInlineTag.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        insertInlineTag.addActionListener(new ActionListener() {
                            public void actionPerformed(ActionEvent e) {
                                insertInlineTagActionPerformed();
                            }
                        });
                        tagApplicatorPanel.add(insertInlineTag, cc.xy(1, 1));
                    }
                    panel19.add(tagApplicatorPanel, cc.xywh(1, 9, 3, 1));
                }
                panel16.add(panel19, cc.xy(1, 1));

                //======== panel34 ========
                {
                    panel34.setBorder(new BevelBorder(BevelBorder.LOWERED));
                    panel34.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel34.setBackground(new Color(182, 187, 212));
                    panel34.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                            new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.RELATED_GAP_ROWSPEC }));

                    //======== panel35 ========
                    {
                        panel35.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.setOpaque(false);
                        panel35.setBorder(Borders.DLU2_BORDER);
                        panel35.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                        FormFactory.DEFAULT_ROWSPEC }));

                        //======== panel36 ========
                        {
                            panel36.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel36.setOpaque(false);
                            panel36.setLayout(new FormLayout(
                                    new ColumnSpec[] {
                                            new ColumnSpec(ColumnSpec.LEFT, Sizes.PREFERRED, FormSpec.NO_GROW),
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    RowSpec.decodeSpecs("default:grow")));

                            //---- label_resourcesDateExpression ----
                            label_resourcesDateExpression.setText("Date Expression");
                            label_resourcesDateExpression.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(label_resourcesDateExpression, Resources.class,
                                    Resources.PROPERTYNAME_DATE_EXPRESSION);
                            panel36.add(label_resourcesDateExpression,
                                    cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                            panel36.add(resourcesDateExpression, new CellConstraints(3, 1, 1, 1,
                                    CellConstraints.DEFAULT, CellConstraints.TOP, new Insets(0, 0, 0, 5)));
                        }
                        panel35.add(panel36, cc.xywh(1, 1, 9, 1));

                        //---- Date1Label1 ----
                        Date1Label1.setText("Inclusive Dates");
                        Date1Label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.add(Date1Label1, new CellConstraints(3, 3, 9, 1, CellConstraints.DEFAULT,
                                CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                        //---- label_resourcesDateBegin ----
                        label_resourcesDateBegin.setText("Begin");
                        label_resourcesDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesDateBegin, Resources.class,
                                Resources.PROPERTYNAME_DATE_BEGIN);
                        panel35.add(label_resourcesDateBegin, cc.xy(3, 5));

                        //---- resourcesDateBegin ----
                        resourcesDateBegin.setColumns(4);
                        panel35.add(resourcesDateBegin,
                                cc.xywh(5, 5, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                        //---- label_resourcesDateEnd ----
                        label_resourcesDateEnd.setText("End");
                        label_resourcesDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesDateEnd, Resources.class,
                                Resources.PROPERTYNAME_DATE_END);
                        panel35.add(label_resourcesDateEnd, cc.xy(7, 5));

                        //---- resourcesDateEnd ----
                        resourcesDateEnd.setColumns(4);
                        panel35.add(resourcesDateEnd, new CellConstraints(9, 5, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));

                        //---- BulkDatesLabel ----
                        BulkDatesLabel.setText("Bulk Dates");
                        BulkDatesLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel35.add(BulkDatesLabel, new CellConstraints(1, 7, 9, 1, CellConstraints.DEFAULT,
                                CellConstraints.DEFAULT, new Insets(0, 5, 0, 0)));

                        //---- label_resourcesBulkDateBegin ----
                        label_resourcesBulkDateBegin.setText("Begin");
                        label_resourcesBulkDateBegin.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesBulkDateBegin, Resources.class,
                                Resources.PROPERTYNAME_BULK_DATE_BEGIN);
                        panel35.add(label_resourcesBulkDateBegin, cc.xy(3, 9));

                        //---- resourcesBulkDateBegin ----
                        resourcesBulkDateBegin.setColumns(4);
                        panel35.add(resourcesBulkDateBegin,
                                cc.xywh(5, 9, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                        //---- label_resourcesBulkDateEnd ----
                        label_resourcesBulkDateEnd.setText("End");
                        label_resourcesBulkDateEnd.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourcesBulkDateEnd, Resources.class,
                                Resources.PROPERTYNAME_BULK_DATE_END);
                        panel35.add(label_resourcesBulkDateEnd, cc.xy(7, 9));

                        //---- resourcesBulkDateEnd ----
                        resourcesBulkDateEnd.setColumns(4);
                        panel35.add(resourcesBulkDateEnd, new CellConstraints(9, 9, 1, 1, CellConstraints.FILL,
                                CellConstraints.DEFAULT, new Insets(0, 0, 0, 5)));
                    }
                    panel34.add(panel35, cc.xy(1, 1));
                }
                panel16.add(panel34, cc.xy(1, 3));

                //======== panel1 ========
                {
                    panel1.setOpaque(false);
                    panel1.setLayout(new FormLayout(
                            new ColumnSpec[] { new ColumnSpec(ColumnSpec.LEFT, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec("left:min(default;200px)") },
                            RowSpec.decodeSpecs("default")));

                    //---- label_resourcesLanguageCode ----
                    label_resourcesLanguageCode.setText("Language");
                    label_resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesLanguageCode, Resources.class,
                            Resources.PROPERTYNAME_LANGUAGE_CODE);
                    panel1.add(label_resourcesLanguageCode, cc.xy(1, 1));

                    //---- resourcesLanguageCode ----
                    resourcesLanguageCode.setMaximumSize(new Dimension(50, 27));
                    resourcesLanguageCode.setOpaque(false);
                    resourcesLanguageCode.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel1.add(resourcesLanguageCode,
                            cc.xywh(3, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                }
                panel16.add(panel1, cc.xy(1, 5));

                //---- label_resourcesLanguageNote ----
                label_resourcesLanguageNote.setText("Repository Processing Note");
                label_resourcesLanguageNote.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                ATFieldInfo.assignLabelInfo(label_resourcesLanguageNote, Resources.class,
                        Resources.PROPERTYNAME_REPOSITORY_PROCESSING_NOTE);
                panel16.add(label_resourcesLanguageNote, cc.xy(1, 7));

                //======== scrollPane423 ========
                {
                    scrollPane423.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                    scrollPane423.setOpaque(false);
                    scrollPane423.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                    //---- resourcesLanguageNote ----
                    resourcesLanguageNote.setRows(4);
                    resourcesLanguageNote.setLineWrap(true);
                    resourcesLanguageNote.setWrapStyleWord(true);
                    scrollPane423.setViewportView(resourcesLanguageNote);
                }
                panel16.add(scrollPane423, cc.xy(1, 9));

                //======== panel6 ========
                {
                    panel6.setOpaque(false);
                    panel6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel6.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC }));

                    //---- label_agreementReceived2 ----
                    label_agreementReceived2.setText("Repository");
                    label_agreementReceived2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_agreementReceived2, Resources.class,
                            Resources.PROPERTYNAME_REPOSITORY);
                    panel6.add(label_agreementReceived2, cc.xy(1, 1));

                    //---- repositoryName ----
                    repositoryName.setEditable(false);
                    repositoryName.setOpaque(false);
                    repositoryName.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    repositoryName.setBorder(null);
                    panel6.add(repositoryName, cc.xy(3, 1));

                    //---- changeRepositoryButton ----
                    changeRepositoryButton.setText("Change Repository");
                    changeRepositoryButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    changeRepositoryButton.setOpaque(false);
                    changeRepositoryButton.addActionListener(new ActionListener() {
                        public void actionPerformed(ActionEvent e) {
                            changeRepositoryButtonActionPerformed();
                        }
                    });
                    panel6.add(changeRepositoryButton,
                            cc.xywh(3, 3, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
                }
                panel16.add(panel6, cc.xy(1, 11));
            }
            basicInformationPanel.add(panel16,
                    cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //======== panel13 ========
            {
                panel13.setOpaque(false);
                panel13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel13.setBorder(Borders.DLU2_BORDER);
                panel13.setLayout(new FormLayout("default:grow", "fill:default:grow"));

                //======== panel17 ========
                {
                    panel17.setOpaque(false);
                    panel17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel17.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                            new RowSpec[] { new RowSpec(RowSpec.TOP, Sizes.DEFAULT, FormSpec.NO_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.CENTER, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                    //======== panel12 ========
                    {
                        panel12.setBackground(new Color(231, 188, 251));
                        panel12.setOpaque(false);
                        panel12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel12.setLayout(new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                        new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                                RowSpec.decodeSpecs("default")));
                        ((FormLayout) panel12.getLayout()).setColumnGroups(new int[][] { { 3, 5, 7, 9 } });

                        //---- label_resourceIdentifier1 ----
                        label_resourceIdentifier1.setText("Resource ID");
                        label_resourceIdentifier1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        ATFieldInfo.assignLabelInfo(label_resourceIdentifier1, Resources.class,
                                Resources.PROPERTYNAME_RESOURCE_IDENTIFIER);
                        panel12.add(label_resourceIdentifier1, cc.xy(1, 1));
                        panel12.add(resourceIdentifier1, cc.xy(3, 1));
                        panel12.add(resourceIdentifier2, cc.xy(5, 1));
                        panel12.add(resourceIdentifier3, cc.xy(7, 1));
                        panel12.add(resourceIdentifier4, cc.xy(9, 1));
                    }
                    panel17.add(panel12, cc.xy(1, 1));

                    //======== panel42 ========
                    {
                        panel42.setBorder(new BevelBorder(BevelBorder.LOWERED));
                        panel42.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel42.setBackground(new Color(182, 187, 212));
                        panel42.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.RELATED_GAP_ROWSPEC }));

                        //======== panel43 ========
                        {
                            panel43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel43.setOpaque(false);
                            panel43.setBorder(Borders.DLU2_BORDER);
                            panel43.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                            //---- OtherAccessionsLabel ----
                            OtherAccessionsLabel.setText("Accessions linked to this Resource ID:");
                            OtherAccessionsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel43.add(OtherAccessionsLabel, cc.xy(1, 1));

                            //======== scrollPane4 ========
                            {
                                scrollPane4.setVerticalScrollBarPolicy(
                                        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                                scrollPane4.setPreferredSize(new Dimension(300, 100));

                                //---- accessionsTable ----
                                accessionsTable.setPreferredScrollableViewportSize(new Dimension(300, 100));
                                accessionsTable.setFocusable(false);
                                scrollPane4.setViewportView(accessionsTable);
                            }
                            panel43.add(scrollPane4,
                                    cc.xywh(1, 3, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
                        }
                        panel42.add(panel43, cc.xy(1, 1));
                    }
                    panel17.add(panel42, cc.xy(1, 3));

                    //======== panel37 ========
                    {
                        panel37.setBorder(new BevelBorder(BevelBorder.LOWERED));
                        panel37.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel37.setBackground(new Color(182, 187, 212));
                        panel37.setLayout(new FormLayout("60px:grow", "fill:default:grow"));

                        //======== panel20 ========
                        {
                            panel20.setOpaque(false);
                            panel20.setBorder(Borders.DLU2_BORDER);
                            panel20.setLayout(new FormLayout(
                                    new ColumnSpec[] { FormFactory.UNRELATED_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                            //---- ExtentLabel ----
                            ExtentLabel.setText("Extent");
                            ExtentLabel.setForeground(new Color(0, 0, 102));
                            ExtentLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel20.add(ExtentLabel, cc.xywh(1, 1, 2, 1));

                            //======== panel21 ========
                            {
                                panel21.setOpaque(false);
                                panel21.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                        RowSpec.decodeSpecs("default")));

                                //---- label_resourcesExtentNumber ----
                                label_resourcesExtentNumber.setText("Extent");
                                label_resourcesExtentNumber.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                ATFieldInfo.assignLabelInfo(label_resourcesExtentNumber, Resources.class,
                                        Resources.PROPERTYNAME_EXTENT_NUMBER);
                                panel21.add(label_resourcesExtentNumber,
                                        cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                                //---- resourcesExtentNumber ----
                                resourcesExtentNumber.setColumns(4);
                                panel21.add(resourcesExtentNumber,
                                        cc.xywh(3, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

                                //---- extentType ----
                                extentType.setOpaque(false);
                                panel21.add(extentType, new CellConstraints(5, 1, 1, 1, CellConstraints.LEFT,
                                        CellConstraints.DEFAULT, new Insets(0, 5, 5, 5)));
                            }
                            panel20.add(panel21, cc.xy(2, 3));

                            //---- label_resourcesExtentDescription ----
                            label_resourcesExtentDescription.setText("Container Summary");
                            label_resourcesExtentDescription.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(label_resourcesExtentDescription, Resources.class,
                                    Resources.PROPERTYNAME_CONTAINER_SUMMARY);
                            panel20.add(label_resourcesExtentDescription, cc.xy(2, 5));

                            //======== scrollPane422 ========
                            {
                                scrollPane422.setVerticalScrollBarPolicy(
                                        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                                scrollPane422.setOpaque(false);
                                scrollPane422.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                                //---- containerSummary ----
                                containerSummary.setRows(4);
                                containerSummary.setWrapStyleWord(true);
                                containerSummary.setLineWrap(true);
                                scrollPane422.setViewportView(containerSummary);
                            }
                            panel20.add(scrollPane422, new CellConstraints(1, 7, 2, 1, CellConstraints.DEFAULT,
                                    CellConstraints.FILL, new Insets(0, 15, 5, 5)));
                        }
                        panel37.add(panel20,
                                cc.xywh(1, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));
                    }
                    panel17.add(panel37, cc.xywh(1, 5, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                    //======== panel39 ========
                    {
                        panel39.setBorder(new BevelBorder(BevelBorder.LOWERED));
                        panel39.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        panel39.setBackground(new Color(182, 187, 212));
                        panel39.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                new RowSpec[] { new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                        FormFactory.RELATED_GAP_ROWSPEC }));

                        //======== panel40 ========
                        {
                            panel40.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            panel40.setOpaque(false);
                            panel40.setBorder(Borders.DLU2_BORDER);
                            panel40.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

                            //---- label1 ----
                            label1.setText("Instances");
                            label1.setForeground(new Color(0, 0, 102));
                            label1.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                            ATFieldInfo.assignLabelInfo(label1, Resources.class,
                                    ResourcesComponents.PROPERTYNAME_INSTANCES);
                            panel40.add(label1, cc.xy(1, 1));

                            //======== scrollPane6 ========
                            {
                                scrollPane6.setVerticalScrollBarPolicy(
                                        ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                                scrollPane6.setOpaque(false);

                                //---- instancesTable ----
                                instancesTable.setPreferredScrollableViewportSize(new Dimension(200, 75));
                                instancesTable.setRowHeight(20);
                                instancesTable.setFocusable(false);
                                instancesTable.addMouseListener(new MouseAdapter() {
                                    @Override
                                    public void mouseClicked(MouseEvent e) {
                                        instancesTableMouseClicked(e);
                                    }
                                });
                                scrollPane6.setViewportView(instancesTable);
                            }
                            panel40.add(scrollPane6,
                                    cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                            //======== panel29 ========
                            {
                                panel29.setBackground(new Color(231, 188, 251));
                                panel29.setOpaque(false);
                                panel29.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                panel29.setLayout(new FormLayout(new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                        RowSpec.decodeSpecs("default")));

                                //---- addInstanceButton ----
                                addInstanceButton.setText("Add Instance");
                                addInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                addInstanceButton.setOpaque(false);
                                addInstanceButton.addActionListener(new ActionListener() {
                                    public void actionPerformed(ActionEvent e) {
                                        addInstanceButtonActionPerformed();
                                    }
                                });
                                panel29.add(addInstanceButton, cc.xy(1, 1));

                                //---- removeInstanceButton ----
                                removeInstanceButton.setText("Remove Instance");
                                removeInstanceButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                                removeInstanceButton.setOpaque(false);
                                removeInstanceButton.addActionListener(new ActionListener() {
                                    public void actionPerformed(ActionEvent e) {
                                        removeInstanceButtonActionPerformed();
                                    }
                                });
                                panel29.add(removeInstanceButton, cc.xy(3, 1));
                            }
                            panel40.add(panel29,
                                    cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
                        }
                        panel39.add(panel40, cc.xy(1, 1));
                    }
                    panel17.add(panel39, cc.xywh(1, 7, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

                    //======== panel2 ========
                    {
                        panel2.setOpaque(false);
                        panel2.setLayout(new FormLayout("default", "default"));

                        //---- restrictionsApply ----
                        restrictionsApply.setText("Restrictions Apply");
                        restrictionsApply.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        restrictionsApply.setOpaque(false);
                        restrictionsApply.setText(ATFieldInfo.getLabel(Resources.class,
                                ArchDescription.PROPERTYNAME_RESTRICTIONS_APPLY));
                        panel2.add(restrictionsApply, cc.xy(1, 1));
                    }
                    panel17.add(panel2, cc.xy(1, 9));
                }
                panel13.add(panel17, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            basicInformationPanel.add(panel13,
                    cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));

            //---- separator2 ----
            separator2.setForeground(new Color(147, 131, 86));
            separator2.setOrientation(SwingConstants.VERTICAL);
            basicInformationPanel.add(separator2,
                    cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Basic Description", basicInformationPanel);

        //======== namesPanel ========
        {
            namesPanel.setBackground(new Color(200, 205, 232));
            namesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));
            ((FormLayout) namesPanel.getLayout()).setRowGroups(new int[][] { { 3, 11 } });

            //---- SubjectsLabel2 ----
            SubjectsLabel2.setText("Names");
            SubjectsLabel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel2, cc.xy(1, 1));

            //======== scrollPane1 ========
            {
                scrollPane1.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane1.setPreferredSize(new Dimension(600, 320));

                //---- namesTable ----
                namesTable.setFocusable(false);
                namesTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        namesTableMouseClicked(e);
                    }
                });
                scrollPane1.setViewportView(namesTable);
            }
            namesPanel.add(scrollPane1, cc.xywh(1, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.FILL));

            //======== panel8 ========
            {
                panel8.setBackground(new Color(231, 188, 251));
                panel8.setOpaque(false);
                panel8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel8.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- editNameRelationshipButton ----
                editNameRelationshipButton.setText("Edit Name Link");
                editNameRelationshipButton.setOpaque(false);
                editNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                editNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        editNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(editNameRelationshipButton, cc.xy(1, 1));

                //---- addNameRelationshipButton ----
                addNameRelationshipButton.setBackground(new Color(231, 188, 251));
                addNameRelationshipButton.setText("Add Name Link");
                addNameRelationshipButton.setOpaque(false);
                addNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(addNameRelationshipButton, cc.xy(3, 1));

                //---- removeNameRelationshipButton ----
                removeNameRelationshipButton.setBackground(new Color(231, 188, 251));
                removeNameRelationshipButton.setText("Remove Name Link");
                removeNameRelationshipButton.setOpaque(false);
                removeNameRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNameRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNameRelationshipButtonActionPerformed();
                    }
                });
                panel8.add(removeNameRelationshipButton, cc.xy(5, 1));
            }
            namesPanel.add(panel8, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator5 ----
            separator5.setBackground(new Color(220, 220, 232));
            separator5.setForeground(new Color(147, 131, 86));
            separator5.setMinimumSize(new Dimension(1, 10));
            separator5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(separator5, cc.xy(1, 7));

            //---- SubjectsLabel ----
            SubjectsLabel.setText("Subjects");
            SubjectsLabel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            namesPanel.add(SubjectsLabel, cc.xy(1, 9));

            //======== scrollPane3 ========
            {
                scrollPane3.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);

                //---- subjectsTable ----
                subjectsTable.setFocusable(false);
                scrollPane3.setViewportView(subjectsTable);
            }
            namesPanel.add(scrollPane3, cc.xy(1, 11));

            //======== panel11 ========
            {
                panel11.setBackground(new Color(231, 188, 251));
                panel11.setOpaque(false);
                panel11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel11.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addSubjectRelationshipButton ----
                addSubjectRelationshipButton.setText("Add Subject Link");
                addSubjectRelationshipButton.setOpaque(false);
                addSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addSubjectRelationshipButtonActionPerformed();
                    }
                });
                panel11.add(addSubjectRelationshipButton, cc.xy(1, 1));

                //---- removeSubjectRelationshipButton ----
                removeSubjectRelationshipButton.setText("Remove Subject Link");
                removeSubjectRelationshipButton.setOpaque(false);
                removeSubjectRelationshipButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeSubjectRelationshipButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeSubjectRelationshipButtonActionPerformed();
                    }
                });
                panel11.add(removeSubjectRelationshipButton, cc.xy(3, 1));
            }
            namesPanel.add(panel11, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Names & Subjects", namesPanel);

        //======== notesPanel ========
        {
            notesPanel.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            notesPanel.setBackground(new Color(200, 205, 232));
            notesPanel.setLayout(new FormLayout(ColumnSpec.decodeSpecs("default:grow"),
                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                            FormFactory.LINE_GAP_ROWSPEC,
                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC }));

            //---- SubjectsLabel3 ----
            SubjectsLabel3.setText("Notes etc.");
            SubjectsLabel3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            notesPanel.add(SubjectsLabel3, cc.xy(1, 1));

            //======== scrollPane5 ========
            {
                scrollPane5.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane5.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- repeatingDataTable ----
                repeatingDataTable.setFocusable(false);
                repeatingDataTable.setDragEnabled(true);
                repeatingDataTable.setPreferredScrollableViewportSize(new Dimension(450, 200));
                repeatingDataTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        repeatingDataTableMouseClicked(e);
                    }
                });
                scrollPane5.setViewportView(repeatingDataTable);
            }
            notesPanel.add(scrollPane5, cc.xy(1, 3));

            //======== panel14 ========
            {
                panel14.setBackground(new Color(231, 188, 251));
                panel14.setOpaque(false);
                panel14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel14.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default:grow")));

                //---- addNoteEtcComboBox ----
                addNoteEtcComboBox.setOpaque(false);
                addNoteEtcComboBox.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addNoteEtcComboBoxActionPerformed(e);
                    }
                });
                panel14.add(addNoteEtcComboBox, cc.xy(1, 1));

                //---- removeNotesEtcButton ----
                removeNotesEtcButton.setText("Remove Note etc.");
                removeNotesEtcButton.setOpaque(false);
                removeNotesEtcButton.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeNotesEtcButton.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeNotesEtcButtonActionPerformed();
                    }
                });
                panel14.add(removeNotesEtcButton, cc.xy(3, 1));
            }
            notesPanel.add(panel14, cc.xywh(1, 5, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //---- separator6 ----
            separator6.setBackground(new Color(220, 220, 232));
            separator6.setForeground(new Color(147, 131, 86));
            separator6.setMinimumSize(new Dimension(1, 10));
            separator6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            notesPanel.add(separator6, cc.xy(1, 7));

            //---- label_repositoryName3 ----
            label_repositoryName3.setText("Deaccessions");
            label_repositoryName3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            notesPanel.add(label_repositoryName3, cc.xy(1, 9));

            //======== scrollPane7 ========
            {
                scrollPane7.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                scrollPane7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                //---- deaccessionsTable ----
                deaccessionsTable.setPreferredScrollableViewportSize(new Dimension(450, 100));
                deaccessionsTable.addMouseListener(new MouseAdapter() {
                    @Override
                    public void mouseClicked(MouseEvent e) {
                        deaccessionsTableMouseClicked(e);
                    }
                });
                scrollPane7.setViewportView(deaccessionsTable);
            }
            notesPanel.add(scrollPane7, cc.xy(1, 11));

            //======== panel33 ========
            {
                panel33.setBackground(new Color(231, 188, 251));
                panel33.setOpaque(false);
                panel33.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel33.setLayout(
                        new FormLayout(
                                new ColumnSpec[] { FormFactory.DEFAULT_COLSPEC,
                                        FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC },
                                RowSpec.decodeSpecs("default")));

                //---- addDeaccessions ----
                addDeaccessions.setBackground(new Color(231, 188, 251));
                addDeaccessions.setText("Add Deaccession");
                addDeaccessions.setOpaque(false);
                addDeaccessions.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                addDeaccessions.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        addDeaccessionsActionPerformed();
                    }
                });
                panel33.add(addDeaccessions, cc.xy(1, 1));

                //---- removeDeaccession ----
                removeDeaccession.setBackground(new Color(231, 188, 251));
                removeDeaccession.setText("Remove Deaccession");
                removeDeaccession.setOpaque(false);
                removeDeaccession.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                removeDeaccession.addActionListener(new ActionListener() {
                    public void actionPerformed(ActionEvent e) {
                        removeDeaccessionActionPerformed();
                    }
                });
                panel33.add(removeDeaccession, cc.xy(3, 1));
            }
            notesPanel.add(panel33, cc.xywh(1, 13, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Notes Etc. & Deaccessions", notesPanel);

        //======== basicInformationPanel2 ========
        {
            basicInformationPanel2.setBackground(new Color(200, 205, 232));
            basicInformationPanel2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
            basicInformationPanel2.setLayout(new FormLayout(
                    new ColumnSpec[] { new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, 0.5),
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC, FormFactory.DEFAULT_COLSPEC,
                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                            new ColumnSpec("left:max(default;300px):grow(0.5)") },
                    RowSpec.decodeSpecs("fill:default:grow")));
            ((FormLayout) basicInformationPanel2.getLayout()).setColumnGroups(new int[][] { { 1, 5 } });

            //======== panel30 ========
            {
                panel30.setOpaque(false);
                panel30.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel30.setLayout(new FormLayout("default:grow", "fill:default:grow"));

                //======== panel9 ========
                {
                    panel9.setOpaque(false);
                    panel9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel9.setBorder(Borders.DLU2_BORDER);
                    panel9.setLayout(
                            new FormLayout(
                                    new ColumnSpec[] { FormFactory.PREF_COLSPEC,
                                            FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                            new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT,
                                                    FormSpec.DEFAULT_GROW) },
                                    new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                            FormFactory.LINE_GAP_ROWSPEC,
                                            new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                    //---- label6 ----
                    label6.setText("EAD FA Unique Identifier");
                    label6.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label6, Resources.class,
                            Resources.PROPERTYNAME_EAD_FA_UNIQUE_IDENTIFIER);
                    panel9.add(label6, cc.xywh(1, 1, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                    panel9.add(eadIdentifier5,
                            cc.xywh(3, 1, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

                    //---- label15 ----
                    label15.setText("EAD Location");
                    label15.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label15, Resources.class,
                            Resources.PROPERTYNAME_EAD_FA_LOCATION);
                    panel9.add(label15, cc.xywh(1, 3, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                    panel9.add(eadIdentifier13,
                            cc.xywh(3, 3, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

                    //---- label7 ----
                    label7.setText("Finding Aid Title");
                    label7.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label7, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_TITLE);
                    panel9.add(label7, cc.xywh(1, 5, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane45 ========
                    {
                        scrollPane45.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane45.setPreferredSize(new Dimension(300, 68));
                        scrollPane45.setOpaque(false);
                        scrollPane45.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- findingAidTitle ----
                        findingAidTitle.setRows(4);
                        findingAidTitle.setLineWrap(true);
                        findingAidTitle.setWrapStyleWord(true);
                        findingAidTitle.setMinimumSize(new Dimension(200, 16));
                        scrollPane45.setViewportView(findingAidTitle);
                    }
                    panel9.add(scrollPane45, cc.xywh(1, 7, 3, 1));

                    //---- label8 ----
                    label8.setText("Finding Aid Subtitle");
                    label8.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label8, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_SUBTITLE);
                    panel9.add(label8, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane46 ========
                    {
                        scrollPane46.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane46.setPreferredSize(new Dimension(300, 68));
                        scrollPane46.setOpaque(false);
                        scrollPane46.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- findingAidSubtitle ----
                        findingAidSubtitle.setRows(4);
                        findingAidSubtitle.setLineWrap(true);
                        findingAidSubtitle.setWrapStyleWord(true);
                        findingAidSubtitle.setMinimumSize(new Dimension(200, 16));
                        scrollPane46.setViewportView(findingAidSubtitle);
                    }
                    panel9.add(scrollPane46, cc.xywh(1, 11, 3, 1));

                    //---- label2 ----
                    label2.setText("Finding Aid Filing Title");
                    label2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label2, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_FILING_TITLE);
                    panel9.add(label2, cc.xy(1, 13));

                    //======== scrollPane8 ========
                    {

                        //---- findingAidFilingTitle ----
                        findingAidFilingTitle.setRows(4);
                        findingAidFilingTitle.setLineWrap(true);
                        findingAidFilingTitle.setWrapStyleWord(true);
                        scrollPane8.setViewportView(findingAidFilingTitle);
                    }
                    panel9.add(scrollPane8, cc.xywh(1, 15, 3, 1));

                    //---- label9 ----
                    label9.setText("Finding Aid Date");
                    label9.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label9, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_DATE);
                    panel9.add(label9, cc.xywh(1, 17, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                    panel9.add(eadIdentifier10,
                            cc.xywh(3, 17, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

                    //---- label10 ----
                    label10.setText("Author");
                    label10.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label10, Resources.class, Resources.PROPERTYNAME_AUTHOR);
                    panel9.add(label10, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane47 ========
                    {
                        scrollPane47.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane47.setPreferredSize(new Dimension(300, 68));
                        scrollPane47.setOpaque(false);
                        scrollPane47.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- author ----
                        author.setRows(4);
                        author.setLineWrap(true);
                        author.setWrapStyleWord(true);
                        author.setMinimumSize(new Dimension(200, 16));
                        scrollPane47.setViewportView(author);
                    }
                    panel9.add(scrollPane47, cc.xywh(1, 21, 3, 1));

                    //---- label11 ----
                    label11.setText("Description Rules");
                    label11.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label11, Resources.class,
                            Resources.PROPERTYNAME_DESCRIPTION_RULES);
                    panel9.add(label11, cc.xywh(1, 23, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //---- extentType2 ----
                    extentType2.setOpaque(false);
                    extentType2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel9.add(extentType2,
                            cc.xywh(1, 25, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //---- label12 ----
                    label12.setText("Language of Finding Aid");
                    label12.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label12, Resources.class,
                            Resources.PROPERTYNAME_LANGUAGE_OF_FINDING_AID);
                    panel9.add(label12, cc.xywh(1, 27, 3, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane48 ========
                    {
                        scrollPane48.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane48.setPreferredSize(new Dimension(300, 68));
                        scrollPane48.setOpaque(false);
                        scrollPane48.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- languageOfFindingAid ----
                        languageOfFindingAid.setRows(4);
                        languageOfFindingAid.setLineWrap(true);
                        languageOfFindingAid.setWrapStyleWord(true);
                        languageOfFindingAid.setMinimumSize(new Dimension(200, 16));
                        scrollPane48.setViewportView(languageOfFindingAid);
                    }
                    panel9.add(scrollPane48, cc.xywh(1, 29, 3, 1));
                }
                panel30.add(panel9, cc.xy(1, 1));
            }
            basicInformationPanel2.add(panel30, cc.xy(1, 1));

            //---- separator1 ----
            separator1.setForeground(new Color(147, 131, 86));
            separator1.setOrientation(SwingConstants.VERTICAL);
            basicInformationPanel2.add(separator1,
                    cc.xywh(3, 1, 1, 1, CellConstraints.CENTER, CellConstraints.DEFAULT));

            //======== panel41 ========
            {
                panel41.setOpaque(false);
                panel41.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                panel41.setBorder(Borders.DLU2_BORDER);
                panel41.setLayout(new FormLayout("left:default:grow", "fill:default:grow"));

                //======== panel31 ========
                {
                    panel31.setOpaque(false);
                    panel31.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    panel31.setLayout(new FormLayout(
                            new ColumnSpec[] { FormFactory.PREF_COLSPEC,
                                    FormFactory.LABEL_COMPONENT_GAP_COLSPEC,
                                    new ColumnSpec(ColumnSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) },
                            new RowSpec[] { FormFactory.DEFAULT_ROWSPEC, FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.FILL, Sizes.DEFAULT, FormSpec.DEFAULT_GROW),
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC, FormFactory.DEFAULT_ROWSPEC,
                                    FormFactory.LINE_GAP_ROWSPEC,
                                    new RowSpec(RowSpec.BOTTOM, Sizes.DEFAULT, FormSpec.DEFAULT_GROW) }));

                    //---- label_resourcesTitle2 ----
                    label_resourcesTitle2.setText("Sponsor Note");
                    label_resourcesTitle2.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesTitle2, Resources.class,
                            Resources.PROPERTYNAME_SPONSOR_NOTE);
                    panel31.add(label_resourcesTitle2, cc.xy(1, 1));

                    //======== scrollPane43 ========
                    {
                        scrollPane43.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane43.setPreferredSize(new Dimension(300, 68));
                        scrollPane43.setOpaque(false);
                        scrollPane43.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- sponsorNote ----
                        sponsorNote.setRows(4);
                        sponsorNote.setLineWrap(true);
                        sponsorNote.setWrapStyleWord(true);
                        sponsorNote.setMinimumSize(new Dimension(200, 16));
                        scrollPane43.setViewportView(sponsorNote);
                    }
                    panel31.add(scrollPane43, cc.xywh(1, 3, 3, 1));

                    //---- label13 ----
                    label13.setText("Edition Statement");
                    label13.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label13, Resources.class,
                            Resources.PROPERTYNAME_EDITION_STATEMENT);
                    panel31.add(label13, cc.xywh(1, 5, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane49 ========
                    {
                        scrollPane49.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane49.setPreferredSize(new Dimension(300, 68));
                        scrollPane49.setOpaque(false);
                        scrollPane49.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- editionStatement ----
                        editionStatement.setRows(4);
                        editionStatement.setLineWrap(true);
                        editionStatement.setWrapStyleWord(true);
                        editionStatement.setMinimumSize(new Dimension(200, 16));
                        scrollPane49.setViewportView(editionStatement);
                    }
                    panel31.add(scrollPane49, cc.xywh(1, 7, 3, 1));

                    //---- label14 ----
                    label14.setText("Series");
                    label14.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label14, Resources.class, Resources.PROPERTYNAME_SERIES);
                    panel31.add(label14, cc.xywh(1, 9, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane50 ========
                    {
                        scrollPane50.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane50.setPreferredSize(new Dimension(300, 68));
                        scrollPane50.setOpaque(false);
                        scrollPane50.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- series ----
                        series.setRows(4);
                        series.setLineWrap(true);
                        series.setWrapStyleWord(true);
                        series.setMinimumSize(new Dimension(200, 16));
                        scrollPane50.setViewportView(series);
                    }
                    panel31.add(scrollPane50, cc.xywh(1, 11, 3, 1));

                    //---- label16 ----
                    label16.setText("Revision Date");
                    label16.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label16, Resources.class, Resources.PROPERTYNAME_REVISION_DATE);
                    panel31.add(label16, cc.xywh(1, 13, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));
                    panel31.add(eadIdentifier15,
                            cc.xywh(3, 13, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

                    //---- label17 ----
                    label17.setText("Revision Description");
                    label17.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label17, Resources.class,
                            Resources.PROPERTYNAME_REVISION_DESCRIPTION);
                    panel31.add(label17, cc.xywh(1, 15, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== scrollPane51 ========
                    {
                        scrollPane51.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane51.setPreferredSize(new Dimension(300, 68));
                        scrollPane51.setOpaque(false);
                        scrollPane51.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- revisionDescription ----
                        revisionDescription.setRows(4);
                        revisionDescription.setLineWrap(true);
                        revisionDescription.setWrapStyleWord(true);
                        revisionDescription.setMinimumSize(new Dimension(200, 16));
                        scrollPane51.setViewportView(revisionDescription);
                    }
                    panel31.add(scrollPane51, cc.xywh(1, 17, 3, 1));

                    //---- label18 ----
                    label18.setText("Finding Aid Status");
                    label18.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label18, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_STATUS);
                    panel31.add(label18, cc.xywh(1, 19, 1, 1, CellConstraints.LEFT, CellConstraints.DEFAULT));

                    //======== panel3 ========
                    {
                        panel3.setOpaque(false);
                        panel3.setLayout(new FormLayout("min(default;200px)", "default"));

                        //---- extentType3 ----
                        extentType3.setOpaque(false);
                        extentType3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                        extentType3.setMaximumSize(new Dimension(100, 32767));
                        panel3.add(extentType3, cc.xy(1, 1));
                    }
                    panel31.add(panel3, cc.xy(3, 19));

                    //---- label_resourcesTitle3 ----
                    label_resourcesTitle3.setText("Finding Aid Note");
                    label_resourcesTitle3.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));
                    ATFieldInfo.assignLabelInfo(label_resourcesTitle3, Resources.class,
                            Resources.PROPERTYNAME_FINDING_AID_NOTE);
                    panel31.add(label_resourcesTitle3, cc.xy(1, 21));

                    //======== scrollPane44 ========
                    {
                        scrollPane44.setVerticalScrollBarPolicy(ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS);
                        scrollPane44.setPreferredSize(new Dimension(300, 68));
                        scrollPane44.setOpaque(false);
                        scrollPane44.setFont(new Font("Trebuchet MS", Font.PLAIN, 13));

                        //---- sponsorNote2 ----
                        sponsorNote2.setRows(4);
                        sponsorNote2.setLineWrap(true);
                        sponsorNote2.setWrapStyleWord(true);
                        sponsorNote2.setMinimumSize(new Dimension(200, 16));
                        scrollPane44.setViewportView(sponsorNote2);
                    }
                    panel31.add(scrollPane44, cc.xywh(1, 23, 3, 1));
                }
                panel41.add(panel31, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
            }
            basicInformationPanel2.add(panel41,
                    cc.xywh(5, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
        }
        tabbedPane.addTab("Finding Aid Data", basicInformationPanel2);

    }
    add(tabbedPane, cc.xywh(1, 1, 1, 1, CellConstraints.FILL, CellConstraints.DEFAULT));
    // JFormDesigner - End of component initialization  //GEN-END:initComponents
    instancesTable.putClientProperty("terminateEditOnFocusLost", Boolean.TRUE);
}

From source file:org.eclipse.wb.internal.swing.FormLayout.model.FormSizeInfo.java

License:Open Source License

public FormSizeInfo(Size size, boolean horizontal) throws Exception {
    m_horizontal = horizontal;/*ww w.ja v  a 2  s . c  o m*/
    Class<?> sizeClass = size.getClass();
    String sizeClassName = sizeClass.getName();
    if (sizeClassName.equals("com.jgoodies.forms.layout.ConstantSize")) {
        m_constantSize = createConstant(size);
    } else if (sizeClassName.equals("com.jgoodies.forms.layout.Sizes$ComponentSize")) {
        m_componentSize = size;
    } else {
        Assert.isTrue(sizeClassName.equals("com.jgoodies.forms.layout.BoundedSize"));
        // component
        {
            Size basic = (Size) ReflectionUtils.getFieldByName(sizeClass, "basis").get(size);
            Assert.isTrue(basic == Sizes.DEFAULT || basic == Sizes.MINIMUM || basic == Sizes.PREFERRED);
            m_componentSize = basic;
        }
        // lower bound
        {
            Size lower = (Size) ReflectionUtils.getFieldByName(sizeClass, "lowerBound").get(size);
            setLowerSize(createConstant(lower));
        }
        // upper bound
        {
            Size upper = (Size) ReflectionUtils.getFieldByName(sizeClass, "upperBound").get(size);
            setUpperSize(createConstant(upper));
        }
    }
}

From source file:org.eclipse.wb.internal.swing.FormLayout.model.FormSizeInfo.java

License:Open Source License

/**
 * @return the text to display this {@link FormSizeInfo} to user.
 *//*w w  w .  ja v  a 2 s  .  c o  m*/
public String getDisplayString() {
    if (m_componentSize == null) {
        return m_constantSize.getSource(true, m_horizontal);
    } else {
        String size;
        if (m_componentSize == Sizes.DEFAULT) {
            size = "default";
        } else if (m_componentSize == Sizes.PREFERRED) {
            size = "preferred";
        } else {
            Assert.isTrue(m_componentSize == Sizes.MINIMUM);
            size = "minimum";
        }
        // add bounds
        if (m_hasLowerSize) {
            size = m_lowerSize.getSource(true, m_horizontal) + "<" + size;
        }
        if (m_hasUpperSize) {
            size = size + "<" + m_upperSize.getSource(true, m_horizontal);
        }
        // return final size
        return size;
    }
}

From source file:org.eclipse.wb.internal.swing.FormLayout.model.FormSizeInfo.java

License:Open Source License

/**
 * @return the encoded specification or {@link Sizes} invocation code depending on result of
 *         {@link #isString()}./*from   w  w w. j  a v  a 2 s.co  m*/
 */
public String getSource() {
    if (isString()) {
        if (m_componentSize == null) {
            return m_constantSize.getSource(true, m_horizontal);
        } else {
            String size;
            if (m_componentSize == Sizes.DEFAULT) {
                size = "default";
            } else if (m_componentSize == Sizes.PREFERRED) {
                size = "pref";
            } else {
                Assert.isTrue(m_componentSize == Sizes.MINIMUM);
                size = "min";
            }
            // add bounds
            if (m_hasLowerSize) {
                size = "max(" + m_lowerSize.getSource(true, m_horizontal) + ";" + size + ")";
            }
            if (m_hasUpperSize) {
                size = "min(" + m_upperSize.getSource(true, m_horizontal) + ";" + size + ")";
            }
            // return final size
            return size;
        }
    } else {
        Assert.isTrue(!isString());
        String source = "com.jgoodies.forms.layout.Sizes.bounded(";
        // add component size
        if (m_componentSize == Sizes.DEFAULT) {
            source += "com.jgoodies.forms.layout.Sizes.DEFAULT";
        } else if (m_componentSize == Sizes.PREFERRED) {
            source += "com.jgoodies.forms.layout.Sizes.PREFERRED";
        } else {
            Assert.isTrue(m_componentSize == Sizes.MINIMUM);
            source += "com.jgoodies.forms.layout.Sizes.MINIMUM";
        }
        // add lower bound
        source += ", ";
        source += m_lowerSize.getSource(false, m_horizontal);
        // add upper bound
        source += ", ";
        source += m_upperSize.getSource(false, m_horizontal);
        // finalize
        source += ")";
        return source;
    }
}