/**
   * This method is called from within the constructor to initialize the form. WARNING: Do NOT
   * modify this code. The content of this method is always regenerated by the Form Editor.
   */
  @SuppressWarnings("unchecked")
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    panInfo = new de.cismet.tools.gui.RoundedPanel();
    panHeadInfo = new de.cismet.tools.gui.SemiRoundedPanel();
    lblHeading = new javax.swing.JLabel();
    panInfoContent = new javax.swing.JPanel();
    jPanel2 = new javax.swing.JPanel();
    jPanel9 = new javax.swing.JPanel();
    jPanel12 = new javax.swing.JPanel();
    jPanel6 = new javax.swing.JPanel();
    stationEditor1 = new de.cismet.cids.custom.objecteditors.wrrl_db_mv.StationEditor();
    lblStat09BisKey1 = new javax.swing.JLabel();
    lblRHWertBisKey1 = new javax.swing.JLabel();
    jLabel3 = new javax.swing.JLabel();
    jPanel10 = new javax.swing.JPanel();
    jPanel5 = new javax.swing.JPanel();
    stationEditor2 = new de.cismet.cids.custom.objecteditors.wrrl_db_mv.StationEditor();
    lblStat09BisKey = new javax.swing.JLabel();
    lblRHWertBisKey = new javax.swing.JLabel();
    jLabel2 = new javax.swing.JLabel();
    jPanel11 = new javax.swing.JPanel();
    jSeparator1 = new javax.swing.JSeparator();

    setOpaque(false);
    setLayout(new java.awt.BorderLayout());

    panHeadInfo.setBackground(new java.awt.Color(51, 51, 51));
    panHeadInfo.setMinimumSize(new java.awt.Dimension(109, 24));
    panHeadInfo.setPreferredSize(new java.awt.Dimension(109, 24));
    panHeadInfo.setLayout(new java.awt.FlowLayout());

    lblHeading.setForeground(new java.awt.Color(255, 255, 255));
    lblHeading.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblHeading.text")); // NOI18N
    panHeadInfo.add(lblHeading);

    panInfo.add(panHeadInfo, java.awt.BorderLayout.NORTH);

    panInfoContent.setOpaque(false);
    panInfoContent.setLayout(new java.awt.GridBagLayout());

    jPanel2.setOpaque(false);

    final javax.swing.GroupLayout jPanel2Layout = new javax.swing.GroupLayout(jPanel2);
    jPanel2.setLayout(jPanel2Layout);
    jPanel2Layout.setHorizontalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel2Layout.setVerticalGroup(
        jPanel2Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    panInfoContent.add(jPanel2, gridBagConstraints);

    jPanel9.setOpaque(false);
    jPanel9.setLayout(new java.awt.GridBagLayout());

    jPanel12.setOpaque(false);

    final javax.swing.GroupLayout jPanel12Layout = new javax.swing.GroupLayout(jPanel12);
    jPanel12.setLayout(jPanel12Layout);
    jPanel12Layout.setHorizontalGroup(
        jPanel12Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel12Layout.setVerticalGroup(
        jPanel12Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    jPanel9.add(jPanel12, gridBagConstraints);

    jPanel6.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(
                QuerbauwerkePanSix.class, "QuerbauwerkePanSix.jPanel6.border.title"))); // NOI18N
    jPanel6.setOpaque(false);
    jPanel6.setLayout(new java.awt.GridBagLayout());

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09}"),
            stationEditor1,
            org.jdesktop.beansbinding.BeanProperty.create("cidsBean"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(stationEditor1, gridBagConstraints);

    lblStat09BisKey1.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblStat09BisKey1.text")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(lblStat09BisKey1, gridBagConstraints);

    lblRHWertBisKey1.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblRHWertBisKey1.text")); // NOI18N
    lblRHWertBisKey1.setMinimumSize(new java.awt.Dimension(150, 17));
    lblRHWertBisKey1.setPreferredSize(new java.awt.Dimension(150, 17));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(lblRHWertBisKey1, gridBagConstraints);

    jLabel3.setMinimumSize(new java.awt.Dimension(300, 25));
    jLabel3.setPreferredSize(new java.awt.Dimension(300, 25));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09.real_point}"),
            jLabel3,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("/");
    binding.setSourceUnreadableValue("<Error>");
    binding.setConverter(new CoordinateConverter());
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel6.add(jLabel3, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel9.add(jPanel6, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 0, 5, 5);
    panInfoContent.add(jPanel9, gridBagConstraints);

    jPanel10.setOpaque(false);
    jPanel10.setLayout(new java.awt.GridBagLayout());

    jPanel5.setBorder(
        javax.swing.BorderFactory.createTitledBorder(
            org.openide.util.NbBundle.getMessage(
                QuerbauwerkePanSix.class, "QuerbauwerkePanSix.jPanel5.border.title"))); // NOI18N
    jPanel5.setOpaque(false);
    jPanel5.setLayout(new java.awt.GridBagLayout());

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09_bis}"),
            stationEditor2,
            org.jdesktop.beansbinding.BeanProperty.create("cidsBean"));
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(stationEditor2, gridBagConstraints);

    lblStat09BisKey.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblStat09BisKey.text")); // NOI18N
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(lblStat09BisKey, gridBagConstraints);

    lblRHWertBisKey.setText(
        org.openide.util.NbBundle.getMessage(
            QuerbauwerkePanSix.class, "QuerbauwerkePanSix.lblRHWertBisKey.text")); // NOI18N
    lblRHWertBisKey.setMinimumSize(new java.awt.Dimension(150, 17));
    lblRHWertBisKey.setPreferredSize(new java.awt.Dimension(150, 17));
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(lblRHWertBisKey, gridBagConstraints);

    jLabel2.setMinimumSize(new java.awt.Dimension(300, 25));
    jLabel2.setPreferredSize(new java.awt.Dimension(300, 25));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.stat09_bis.real_point}"),
            jLabel2,
            org.jdesktop.beansbinding.BeanProperty.create("text"));
    binding.setSourceNullValue("/");
    binding.setSourceUnreadableValue("<Error>");
    binding.setConverter(new CoordinateConverter());
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel5.add(jLabel2, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 5);
    jPanel10.add(jPanel5, gridBagConstraints);

    jPanel11.setOpaque(false);

    final javax.swing.GroupLayout jPanel11Layout = new javax.swing.GroupLayout(jPanel11);
    jPanel11.setLayout(jPanel11Layout);
    jPanel11Layout.setHorizontalGroup(
        jPanel11Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));
    jPanel11Layout.setVerticalGroup(
        jPanel11Layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGap(0, 0, Short.MAX_VALUE));

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    jPanel10.add(jPanel11, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(5, 5, 5, 0);
    panInfoContent.add(jPanel10, gridBagConstraints);

    jSeparator1.setOrientation(javax.swing.SwingConstants.VERTICAL);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.insets = new java.awt.Insets(15, 5, 15, 5);
    panInfoContent.add(jSeparator1, gridBagConstraints);

    panInfo.add(panInfoContent, java.awt.BorderLayout.CENTER);

    add(panInfo, java.awt.BorderLayout.CENTER);

    bindingGroup.bind();
  } // </editor-fold>//GEN-END:initComponents
예제 #2
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    sexButtonGroup = new javax.swing.ButtonGroup();
    ageConverter = new clienteditor.AgeConverter();
    ageValidator = new clienteditor.AgeValidator();
    maritalStatusConverter = new clienteditor.MaritalStatusConverter();
    requiredStringValidator = new clienteditor.RequiredStringValidator();
    emailValidator = new clienteditor.EmailValidator();
    clientInfoPane = new javax.swing.JTabbedPane();
    personalPanel = new javax.swing.JPanel();
    firstNameLabel = new javax.swing.JLabel();
    firstNameTextField = new javax.swing.JTextField();
    surnameLabel = new javax.swing.JLabel();
    surnameTextField = new javax.swing.JTextField();
    maritalComboBox = new javax.swing.JComboBox();
    sexLabel = new javax.swing.JLabel();
    maritalStatusLabel = new javax.swing.JLabel();
    maleRadioButton = new javax.swing.JRadioButton();
    femaleRadioButton = new javax.swing.JRadioButton();
    ageLabel = new javax.swing.JLabel();
    ageTextField = new javax.swing.JTextField();
    contactPanel = new javax.swing.JPanel();
    nicknameLabel = new javax.swing.JLabel();
    emailLabel = new javax.swing.JLabel();
    webLabel = new javax.swing.JLabel();
    imLabel = new javax.swing.JLabel();
    nicknameTextField = new javax.swing.JTextField();
    emailTextField = new javax.swing.JTextField();
    webTextField = new javax.swing.JTextField();
    imTextField = new javax.swing.JTextField();
    jFileChooser1 = new javax.swing.JFileChooser();
    usernameLabel = new javax.swing.JLabel();
    clientInfoLabel = new javax.swing.JLabel();
    validationMsgLabel = new javax.swing.JLabel();

    personalPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    firstNameLabel.setText("First Name:"); // NOI18N

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.firstName}"),
            firstNameTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "firstName"); // NOI18N
    bindingGroup.addBinding(binding);

    surnameLabel.setText("Surname:"); // NOI18N

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.surname}"),
            surnameTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "surname"); // NOI18N
    binding.setValidator(requiredStringValidator);
    bindingGroup.addBinding(binding);

    maritalComboBox.setModel(
        new javax.swing.DefaultComboBoxModel(
            new String[] {"Single", "Married", "Separated", "Divorced"}));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.maritalStatus}"),
            maritalComboBox,
            org.jdesktop.beansbinding.BeanProperty.create("selectedItem"),
            "maritalStatus"); // NOI18N
    binding.setConverter(maritalStatusConverter);
    bindingGroup.addBinding(binding);

    sexLabel.setText("Sex:"); // NOI18N

    maritalStatusLabel.setText("Marital status:"); // NOI18N

    sexButtonGroup.add(maleRadioButton);
    maleRadioButton.setText("male"); // NOI18N

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.sex}"),
            maleRadioButton,
            org.jdesktop.beansbinding.BeanProperty.create("selected"),
            "sex"); // NOI18N
    bindingGroup.addBinding(binding);

    sexButtonGroup.add(femaleRadioButton);
    femaleRadioButton.setText("female"); // NOI18N

    ageLabel.setText("Age:"); // NOI18N

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.age}"),
            ageTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "age");
    binding.setConverter(ageConverter);
    binding.setValidator(ageValidator);
    bindingGroup.addBinding(binding);

    org.jdesktop.layout.GroupLayout personalPanelLayout =
        new org.jdesktop.layout.GroupLayout(personalPanel);
    personalPanel.setLayout(personalPanelLayout);
    personalPanelLayout.setHorizontalGroup(
        personalPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                personalPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(sexLabel)
                            .add(
                                personalPanelLayout
                                    .createSequentialGroup()
                                    .add(
                                        personalPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(firstNameLabel)
                                            .add(surnameLabel)
                                            .add(maritalStatusLabel)
                                            .add(ageLabel))
                                    .add(7, 7, 7)
                                    .add(
                                        personalPanelLayout
                                            .createParallelGroup(
                                                org.jdesktop.layout.GroupLayout.LEADING)
                                            .add(
                                                personalPanelLayout
                                                    .createSequentialGroup()
                                                    .add(maleRadioButton)
                                                    .addPreferredGap(
                                                        org.jdesktop.layout.LayoutStyle.RELATED)
                                                    .add(femaleRadioButton))
                                            .add(
                                                firstNameTextField,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                519,
                                                Short.MAX_VALUE)
                                            .add(
                                                surnameTextField,
                                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                                519,
                                                Short.MAX_VALUE)
                                            .add(
                                                personalPanelLayout
                                                    .createParallelGroup(
                                                        org.jdesktop.layout.GroupLayout.TRAILING,
                                                        false)
                                                    .add(
                                                        org.jdesktop.layout.GroupLayout.LEADING,
                                                        ageTextField)
                                                    .add(
                                                        org.jdesktop.layout.GroupLayout.LEADING,
                                                        maritalComboBox,
                                                        0,
                                                        org.jdesktop.layout.GroupLayout
                                                            .DEFAULT_SIZE,
                                                        Short.MAX_VALUE)))))
                    .addContainerGap()));
    personalPanelLayout.setVerticalGroup(
        personalPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                personalPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(firstNameLabel)
                            .add(
                                firstNameTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(surnameLabel)
                            .add(
                                surnameTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(maritalStatusLabel)
                            .add(
                                maritalComboBox,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(ageLabel)
                            .add(
                                ageTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        personalPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(sexLabel)
                            .add(femaleRadioButton)
                            .add(maleRadioButton))
                    .addContainerGap(
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));

    clientInfoPane.addTab("Personal", personalPanel);

    contactPanel.setBorder(javax.swing.BorderFactory.createEtchedBorder());

    nicknameLabel.setText("Nickname:"); // NOI18N

    emailLabel.setText("E-mail:"); // NOI18N

    webLabel.setText("Web:"); // NOI18N

    imLabel.setText("IM:"); // NOI18N

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.nickname}"),
            nicknameTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "nickname"); // NOI18N
    bindingGroup.addBinding(binding);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.email}"),
            emailTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "email");
    binding.setValidator(emailValidator);
    bindingGroup.addBinding(binding);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.web}"),
            webTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "web");
    bindingGroup.addBinding(binding);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.im}"),
            imTextField,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "im");
    bindingGroup.addBinding(binding);

    org.jdesktop.layout.GroupLayout contactPanelLayout =
        new org.jdesktop.layout.GroupLayout(contactPanel);
    contactPanel.setLayout(contactPanelLayout);
    contactPanelLayout.setHorizontalGroup(
        contactPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                contactPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(nicknameLabel)
                            .add(emailLabel)
                            .add(webLabel)
                            .add(imLabel))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
                            .add(
                                nicknameTextField,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                542,
                                Short.MAX_VALUE)
                            .add(
                                emailTextField,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                542,
                                Short.MAX_VALUE)
                            .add(
                                webTextField,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                542,
                                Short.MAX_VALUE)
                            .add(
                                imTextField,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                542,
                                Short.MAX_VALUE))
                    .addContainerGap()));
    contactPanelLayout.setVerticalGroup(
        contactPanelLayout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                contactPanelLayout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(nicknameLabel)
                            .add(
                                nicknameTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(emailLabel)
                            .add(
                                emailTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(webLabel)
                            .add(
                                webTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                    .add(
                        contactPanelLayout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(imLabel)
                            .add(
                                imTextField,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addContainerGap(248, Short.MAX_VALUE)));

    clientInfoPane.addTab("Contact", contactPanel);
    clientInfoPane.addTab("tab3", jFileChooser1);

    usernameLabel.setFont(new java.awt.Font("Dialog", 1, 24)); // NOI18N

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${client.firstName} ${client.surname}"),
            usernameLabel,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            "displayNameTitle");
    bindingGroup.addBinding(binding);

    clientInfoLabel.setFont(new java.awt.Font("Dialog", 0, 24)); // NOI18N
    clientInfoLabel.setText("Client Info:"); // NOI18N

    validationMsgLabel.setFont(new java.awt.Font("Dialog", 1, 11)); // NOI18N
    validationMsgLabel.setForeground(new java.awt.Color(255, 0, 0));

    org.jdesktop.layout.GroupLayout layout = new org.jdesktop.layout.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                org.jdesktop.layout.GroupLayout.TRAILING,
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.TRAILING)
                            .add(
                                org.jdesktop.layout.GroupLayout.LEADING,
                                clientInfoPane,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                632,
                                Short.MAX_VALUE)
                            .add(
                                org.jdesktop.layout.GroupLayout.LEADING,
                                layout
                                    .createSequentialGroup()
                                    .add(clientInfoLabel)
                                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.RELATED)
                                    .add(
                                        usernameLabel,
                                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                        509,
                                        Short.MAX_VALUE))
                            .add(
                                org.jdesktop.layout.GroupLayout.LEADING,
                                validationMsgLabel,
                                org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                                632,
                                Short.MAX_VALUE))
                    .addContainerGap()));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(org.jdesktop.layout.GroupLayout.LEADING)
            .add(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .add(
                        layout
                            .createParallelGroup(org.jdesktop.layout.GroupLayout.BASELINE)
                            .add(
                                clientInfoLabel,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                27,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                            .add(
                                usernameLabel,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                                27,
                                org.jdesktop.layout.GroupLayout.PREFERRED_SIZE))
                    .addPreferredGap(org.jdesktop.layout.LayoutStyle.UNRELATED)
                    .add(
                        clientInfoPane,
                        org.jdesktop.layout.GroupLayout.DEFAULT_SIZE,
                        380,
                        Short.MAX_VALUE)
                    .add(5, 5, 5)
                    .add(
                        validationMsgLabel,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE,
                        18,
                        org.jdesktop.layout.GroupLayout.PREFERRED_SIZE)
                    .addContainerGap()));

    bindingGroup.bind();
  } // </editor-fold>//GEN-END:initComponents
예제 #3
0
  // <editor-fold defaultstate="collapsed" desc="Generated Code">//GEN-BEGIN:initComponents
  private void initComponents() {
    java.awt.GridBagConstraints gridBagConstraints;
    bindingGroup = new org.jdesktop.beansbinding.BindingGroup();

    btgMode = new javax.swing.ButtonGroup();
    lblLastModification = new javax.swing.JLabel();
    panSearch = new javax.swing.JPanel();
    txtSearch = new javax.swing.JTextField();
    lblSuche = new javax.swing.JLabel();
    btnSearch = new javax.swing.JButton();
    panKZValues = new javax.swing.JPanel();
    lblKassenzeichen = new javax.swing.JLabel();
    lblErfassungsdatum = new javax.swing.JLabel();
    lblBemerkung = new javax.swing.JLabel();
    lblSperre = new javax.swing.JLabel();
    txtErfassungsdatum = new javax.swing.JTextField();
    chkSperre = new javax.swing.JCheckBox();
    scpBemerkung = new javax.swing.JScrollPane();
    txtBemerkung = new javax.swing.JTextArea();
    txtKassenzeichen = new javax.swing.JTextField();
    txtSperreBemerkung = new javax.swing.JTextField();
    jPanel2 = new javax.swing.JPanel();
    jLabel2 = new javax.swing.JLabel();
    togRegenMode = new javax.swing.JToggleButton();
    togWDSRMode = new javax.swing.JToggleButton();
    togInfoMode = new javax.swing.JToggleButton();
    sepTitle1 = new javax.swing.JSeparator();
    sepTitle2 = new javax.swing.JSeparator();

    lblLastModification.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/de/cismet/verdis/res/images/titlebars/goto.png"))); // NOI18N

    org.jdesktop.beansbinding.Binding binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.letzte_aenderung_von}"),
            lblLastModification,
            org.jdesktop.beansbinding.BeanProperty.create("toolTipText"));
    bindingGroup.addBinding(binding);

    setLayout(new java.awt.GridBagLayout());

    panSearch.setLayout(new java.awt.GridBagLayout());

    txtSearch.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            txtSearchActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);
    panSearch.add(txtSearch, gridBagConstraints);

    lblSuche.setText("Kassenzeichen");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.LINE_END;
    gridBagConstraints.insets = new java.awt.Insets(0, 0, 0, 10);
    panSearch.add(lblSuche, gridBagConstraints);

    btnSearch.setMnemonic('s');
    btnSearch.setText("suchen");
    btnSearch.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            btnSearchActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.VERTICAL;
    gridBagConstraints.insets = new java.awt.Insets(0, 3, 0, 3);
    panSearch.add(btnSearch, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    add(panSearch, gridBagConstraints);

    panKZValues.setLayout(new java.awt.GridBagLayout());

    lblKassenzeichen.setText("Kassenzeichen");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    panKZValues.add(lblKassenzeichen, gridBagConstraints);

    lblErfassungsdatum.setText("Datum der Erfassung");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    panKZValues.add(lblErfassungsdatum, gridBagConstraints);

    lblBemerkung.setText("Bemerkung");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    panKZValues.add(lblBemerkung, gridBagConstraints);

    lblSperre.setText("Veranlagung gesperrt");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    panKZValues.add(lblSperre, gridBagConstraints);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.datum_erfassung}"),
            txtErfassungsdatum,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            KassenzeichenPropertyConstants.PROP__DATUM_ERFASSUNG);
    binding.setConverter(new SqlDateToStringConverter());
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(3, 6, 3, 0);
    panKZValues.add(txtErfassungsdatum, gridBagConstraints);

    chkSperre.setForeground(java.awt.Color.red);
    chkSperre.setEnabled(false);
    chkSperre.setFocusPainted(false);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.sperre}"),
            chkSperre,
            org.jdesktop.beansbinding.BeanProperty.create("selected"));
    bindingGroup.addBinding(binding);

    chkSperre.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            chkSperreActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(3, 6, 3, 0);
    panKZValues.add(chkSperre, gridBagConstraints);

    scpBemerkung.setHorizontalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.HORIZONTAL_SCROLLBAR_NEVER);
    scpBemerkung.setVerticalScrollBarPolicy(
        javax.swing.ScrollPaneConstants.VERTICAL_SCROLLBAR_NEVER);
    scpBemerkung.setMinimumSize(new java.awt.Dimension(6, 36));

    txtBemerkung.setColumns(3);
    txtBemerkung.setLineWrap(true);
    txtBemerkung.setRows(3);
    txtBemerkung.setMinimumSize(new java.awt.Dimension(0, 36));

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.bemerkung}"),
            txtBemerkung,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            KassenzeichenPropertyConstants.PROP__BEMERKUNG);
    bindingGroup.addBinding(binding);

    scpBemerkung.setViewportView(txtBemerkung);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(3, 6, 3, 0);
    panKZValues.add(scpBemerkung, gridBagConstraints);

    txtKassenzeichen.setEditable(false);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.kassenzeichennummer8}"),
            txtKassenzeichen,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            KassenzeichenPropertyConstants.PROP__KASSENZEICHENNUMMER);
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.gridwidth = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(0, 6, 3, 0);
    panKZValues.add(txtKassenzeichen, gridBagConstraints);

    txtSperreBemerkung.setBackground(getBackground());
    txtSperreBemerkung.setEditable(false);
    txtSperreBemerkung.setForeground(java.awt.Color.red);
    txtSperreBemerkung.setBorder(null);

    binding =
        org.jdesktop.beansbinding.Bindings.createAutoBinding(
            org.jdesktop.beansbinding.AutoBinding.UpdateStrategy.READ_WRITE,
            this,
            org.jdesktop.beansbinding.ELProperty.create("${cidsBean.bemerkung_sperre}"),
            txtSperreBemerkung,
            org.jdesktop.beansbinding.BeanProperty.create("text"),
            KassenzeichenPropertyConstants.PROP__BEMERKUNG_SPERRE);
    bindingGroup.addBinding(binding);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.insets = new java.awt.Insets(0, 6, 0, 0);
    panKZValues.add(txtSperreBemerkung, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 4;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTHWEST;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.weighty = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(7, 7, 7, 7);
    add(panKZValues, gridBagConstraints);

    jPanel2.setLayout(new java.awt.GridBagLayout());

    jLabel2.setText("Modus");
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.WEST;
    gridBagConstraints.weightx = 1.0;
    jPanel2.add(jLabel2, gridBagConstraints);

    btgMode.add(togRegenMode);
    togRegenMode.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/de/cismet/verdis/res/regen_gr.png"))); // NOI18N
    togRegenMode.setToolTipText("Versiegelte Flächen");
    togRegenMode.setFocusable(false);
    togRegenMode.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    togRegenMode.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    togRegenMode.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            togRegenModeActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 1;
    gridBagConstraints.gridy = 0;
    jPanel2.add(togRegenMode, gridBagConstraints);

    btgMode.add(togWDSRMode);
    togWDSRMode.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/de/cismet/verdis/res/esw_gr.png"))); // NOI18N
    togWDSRMode.setToolTipText("ESW");
    togWDSRMode.setFocusable(false);
    togWDSRMode.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    togWDSRMode.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    togWDSRMode.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            togWDSRModeActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 2;
    gridBagConstraints.gridy = 0;
    gridBagConstraints.insets = new java.awt.Insets(0, 2, 0, 2);
    jPanel2.add(togWDSRMode, gridBagConstraints);

    btgMode.add(togInfoMode);
    togInfoMode.setIcon(
        new javax.swing.ImageIcon(
            getClass().getResource("/de/cismet/verdis/res/info_gr.png"))); // NOI18N
    togInfoMode.setSelected(true);
    togInfoMode.setToolTipText("Info");
    togInfoMode.setFocusable(false);
    togInfoMode.setHorizontalTextPosition(javax.swing.SwingConstants.CENTER);
    togInfoMode.setVerticalTextPosition(javax.swing.SwingConstants.BOTTOM);
    togInfoMode.addActionListener(
        new java.awt.event.ActionListener() {

          @Override
          public void actionPerformed(final java.awt.event.ActionEvent evt) {
            togInfoModeActionPerformed(evt);
          }
        });
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 3;
    gridBagConstraints.gridy = 0;
    jPanel2.add(togInfoMode, gridBagConstraints);

    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 2;
    gridBagConstraints.fill = java.awt.GridBagConstraints.BOTH;
    gridBagConstraints.weightx = 1.0;
    gridBagConstraints.insets = new java.awt.Insets(3, 7, 3, 7);
    add(jPanel2, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 1;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    gridBagConstraints.weightx = 1.0;
    add(sepTitle1, gridBagConstraints);
    gridBagConstraints = new java.awt.GridBagConstraints();
    gridBagConstraints.gridx = 0;
    gridBagConstraints.gridy = 3;
    gridBagConstraints.fill = java.awt.GridBagConstraints.HORIZONTAL;
    gridBagConstraints.anchor = java.awt.GridBagConstraints.NORTH;
    gridBagConstraints.weightx = 1.0;
    add(sepTitle2, gridBagConstraints);

    bindingGroup.bind();
  } // </editor-fold>//GEN-END:initComponents