Exemple #1
0
  private void inicializarBotones() {
    // Cargamos todas las imagenes en los arrays
    for (int i = 0; i < dados3.length; i++) {
      dados3[i] =
          new ImageIcon(getClass().getResource("img/dado" + String.valueOf(i + 1) + "_3.png"));
    }
    for (int i = 0; i < dados6.length; i++) {
      dados6[i] =
          new ImageIcon(getClass().getResource("img/dado" + String.valueOf(i + 1) + "_6.png"));
    }
    for (int i = 0; i < dados12.length; i++) {
      dados12[i] =
          new ImageIcon(getClass().getResource("img/dadodoce_" + String.valueOf(i + 1) + ".png"));
    }
    dadoGris = new ImageIcon(getClass().getResource("img/dadogris.png"));

    // Colocamos los dados de 3 caras
    for (int i = 0; i < numerosAlmacenadosDados3.length; i++)
      numerosAlmacenadosDados3[i] = dado.nextInt(3); // El numero aleatorio
    dado1.setIcon(dados3[numerosAlmacenadosDados3[0]]); // Imagen dentro de los JLabel
    dado1.setName("1");
    dado2.setIcon(dados3[numerosAlmacenadosDados3[1]]);
    dado2.setName("2");
    dado3.setIcon(dados3[numerosAlmacenadosDados3[2]]);
    dado3.setName("3");
    dado1.addMouseListener(new ListenerDados());
    dado2.addMouseListener(new ListenerDados());
    dado3.addMouseListener(new ListenerDados());
    // Colocamos los dados de 6 caras
    for (int i = 0; i < numerosAlmacenadosDados6.length; i++)
      numerosAlmacenadosDados6[i] = dado.nextInt(6);
    dado4.setIcon(dados6[numerosAlmacenadosDados6[0]]);
    dado4.setName("4");
    dado5.setIcon(dados6[numerosAlmacenadosDados6[1]]);
    dado5.setName("5");
    dado4.addMouseListener(new ListenerDados());
    dado5.addMouseListener(new ListenerDados());
    // Colocamos los dados de 12 caras
    numerosAlmacenadosDados12 = dado.nextInt(12);
    dado6.setIcon(dados12[numerosAlmacenadosDados12]);
    // REseteamos cajas
    resultadoLabel.setText("");
    resultadoOK.setText("");
    resultado.setText("");

    // REseteamos semaforos y  valores
    tocaNumero = true;

    operacion = 0;
    numerosIntroducidos = 0;
    esSuma = true;
  }
    private void initComponents() {

      panelStatus = new JImagePanel();
      labDesc = new JLabel();

      setName("Form"); // NOI18N

      panelStatus.setName("panelStatus"); // NOI18N
      panelStatus.setPreferredSize(new java.awt.Dimension(28, 28));

      javax.swing.GroupLayout panelStatusLayout = new javax.swing.GroupLayout(panelStatus);
      panelStatus.setLayout(panelStatusLayout);
      panelStatusLayout.setHorizontalGroup(
          panelStatusLayout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGap(0, 28, Short.MAX_VALUE));
      panelStatusLayout.setVerticalGroup(
          panelStatusLayout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGap(0, 28, Short.MAX_VALUE));

      labDesc.setFont(new java.awt.Font("Verdana", Font.ITALIC, 12)); // NOI18N
      labDesc.setText(""); // NOI18N
      labDesc.setName("labDesc"); // NOI18N

      javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
      this.setLayout(layout);
      layout.setHorizontalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addGroup(
                  layout
                      .createSequentialGroup()
                      .addComponent(
                          panelStatus,
                          javax.swing.GroupLayout.PREFERRED_SIZE,
                          javax.swing.GroupLayout.DEFAULT_SIZE,
                          javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.UNRELATED)
                      .addComponent(
                          labDesc,
                          javax.swing.GroupLayout.PREFERRED_SIZE,
                          311,
                          javax.swing.GroupLayout.PREFERRED_SIZE)
                      .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
      layout.setVerticalGroup(
          layout
              .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
              .addComponent(
                  panelStatus,
                  javax.swing.GroupLayout.PREFERRED_SIZE,
                  javax.swing.GroupLayout.DEFAULT_SIZE,
                  javax.swing.GroupLayout.PREFERRED_SIZE)
              .addComponent(labDesc, javax.swing.GroupLayout.DEFAULT_SIZE, 28, Short.MAX_VALUE));

      toAdjust = new LinkedList<Component>();
      toAdjust.add(this);
      toAdjust.add(labDesc);
      toAdjust.add(panelStatus);
    }
  public JPanel createPanel() {
    JPanel jpanel1 = new JPanel();
    FormLayout formlayout1 =
        new FormLayout(
            "FILL:7DLU:NONE,RIGHT:MAX(65DLU;DEFAULT):NONE,FILL:3DLU:NONE,FILL:DEFAULT:GROW(1.0),FILL:7DLU:NONE",
            "CENTER:9DLU:NONE,FILL:DEFAULT:GROW(1.0),CENTER:9DLU:NONE");
    CellConstraints cc = new CellConstraints();
    jpanel1.setLayout(formlayout1);

    _envVarsTextArea.setName("envVarsTextArea");
    JScrollPane jscrollpane1 = new JScrollPane();
    jscrollpane1.setViewportView(_envVarsTextArea);
    jscrollpane1.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_AS_NEEDED);
    jscrollpane1.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_AS_NEEDED);
    jpanel1.add(jscrollpane1, cc.xy(4, 2));

    _envVarsLabel.setName("envVarsLabel");
    _envVarsLabel.setText(Messages.getString("setVariables"));
    jpanel1.add(
        _envVarsLabel,
        new CellConstraints(2, 2, 1, 1, CellConstraints.DEFAULT, CellConstraints.TOP));

    addFillComponents(jpanel1, new int[] {1, 2, 3, 4, 5}, new int[] {1, 2, 3});
    return jpanel1;
  }
 private JLabel getJLabel4() {
   if (jLabel4 == null) {
     jLabel4 = new JLabel();
     jLabel4.setBounds(351, 3, 149, 23);
     jLabel4.setName("jLabel4");
   }
   return jLabel4;
 }
 private JLabel getJLabel5() {
   if (jLabel5 == null) {
     jLabel5 = new JLabel();
     jLabel5.setBounds(436, 268, 106, 14);
     jLabel5.setName("jLabel5");
   }
   return jLabel5;
 }
 private JLabel getJLabel7() {
   if (jLabel7 == null) {
     jLabel7 = new JLabel();
     jLabel7.setName("jLabel6");
     jLabel7.setBounds(34, 274, 119, 14);
   }
   return jLabel7;
 }
 private JLabel getJLabel8() {
   if (jLabel8 == null) {
     jLabel8 = new JLabel();
     jLabel8.setBounds(25, 9, 98, 14);
     jLabel8.setName("jLabel8");
   }
   return jLabel8;
 }
 private JLabel getJLabel6() {
   if (jLabel6 == null) {
     jLabel6 = new JLabel();
     jLabel6.setBounds(569, 9, 61, 14);
     jLabel6.setName("jLabel6");
   }
   return jLabel6;
 }
 private JCurlShotPlanner() {
   change.addUndoableEditListener(this);
   tactics.setChanger(change);
   broomSwing.setChanger(change);
   curlerSwing.setChanger(change);
   birdPiccolo.setMaster(tactics);
   // tactics.setName("tactics");
   url.setName("urlLabel");
 }
 /**
  * Create a simple about box JDialog that displays the standard Application resources, like
  * {@code Application.title} and {@code Application.description}. The about box's labels and
  * fields are configured by resources that are injected when the about box is shown (see
  * SingleFrameApplication#show). The resources are defined in the application resource file:
  * resources/DocumentExample.properties.
  *
  * <p>From: https://appframework.dev.java.net/downloads/AppFramework-1.03-src.zip
  * DocumentExample
  */
 private JDialog createAboutBox(final Frame owner) {
   final JPanel panel = new JPanel(new GridBagLayout());
   panel.setBorder(new EmptyBorder(0, 28, 16, 28)); // top, left,
   // bottom, right
   final JLabel titleLabel = new JLabel();
   titleLabel.setName("aboutTitleLabel");
   final GridBagConstraints c = new GridBagConstraints();
   initGridBagConstraints(c);
   c.anchor = GridBagConstraints.WEST;
   c.gridwidth = GridBagConstraints.REMAINDER;
   c.fill = GridBagConstraints.HORIZONTAL;
   c.ipady = 32;
   c.weightx = 1.0;
   panel.add(titleLabel, c);
   final String[] fields = {"description", "version", "vendor", "home"};
   for (final String field : fields) {
     final JLabel label = new JLabel();
     label.setName(field + "Label");
     initGridBagConstraints(c);
     // c.anchor = GridBagConstraints.BASELINE_TRAILING; 1.6 ONLY
     c.anchor = GridBagConstraints.EAST;
     panel.add(label, c);
     initGridBagConstraints(c);
     c.weightx = 1.0;
     c.gridwidth = GridBagConstraints.REMAINDER;
     c.fill = GridBagConstraints.HORIZONTAL;
     final JTextField textField = new JTextField();
     textField.setName(field + "TextField");
     textField.setEditable(false);
     textField.setBorder(null);
     panel.add(textField, c);
   }
   final JButton closeAboutButton = new JButton();
   closeAboutButton.setAction(findAction("closeAboutBox"));
   initGridBagConstraints(c);
   c.anchor = GridBagConstraints.EAST;
   c.gridx = 1;
   panel.add(closeAboutButton, c);
   final JDialog dialog = new JDialog(owner);
   dialog.setName("aboutDialog");
   dialog.add(panel, BorderLayout.CENTER);
   return dialog;
 }
 private JLabel getContactLabel() {
   if (contactLabel == null) {
     contactLabel = new JLabel();
     contactLabel.setBounds(new Rectangle(0, 40, 324, 14));
     contactLabel.setHorizontalAlignment(SwingConstants.CENTER);
     contactLabel.setHorizontalTextPosition(SwingConstants.CENTER);
     contactLabel.setText(this.name);
     contactLabel.setName(SynthFonts.BOLD_ITALIC_FONT12_PURPLE32_0f_32);
   }
   return contactLabel;
 }
Exemple #12
0
  /**
   * @param islands Whether the status bar should be configured for updates from {@link
   *     org.uncommons.watchmaker.framework.islands.IslandEvolution}. Set this parameter to false
   *     when using a standard {@link org.uncommons.watchmaker.framework.EvolutionEngine}
   */
  public StatusBar(boolean islands) {
    super(BoxLayout.X_AXIS);
    add(new JLabel("Population: "));
    add(populationLabel);
    add(createHorizontalStrut(15));
    add(new JLabel("Elitism: "));
    add(elitismLabel);
    add(createHorizontalStrut(15));
    add(new JLabel(islands ? "Epochs: " : "Generations: "));
    add(generationsLabel);
    add(createHorizontalStrut(15));
    add(new JLabel("Elapsed Time: "));
    add(timeLabel);
    setBorder(BorderFactory.createEmptyBorder(0, 5, 0, 5));

    // Set component names for easy look-up from tests.
    populationLabel.setName("Population");
    elitismLabel.setName("Elitism");
    generationsLabel.setName("Generations");
    timeLabel.setName("Time");
  }
  /**
   * Creates and adds a JLabel representing the icon returned from <code>getIcon</code> to <code>top
   * </code>. This is messaged from <code>createMessageArea</code>
   */
  protected void addIcon(Container top) {
    /* Create the icon. */
    Icon sideIcon = getIcon();

    if (sideIcon != null) {
      JLabel iconLabel = new JLabel(sideIcon);

      iconLabel.setName("OptionPane.iconLabel");
      iconLabel.setVerticalAlignment(SwingConstants.TOP);
      top.add(iconLabel, BorderLayout.BEFORE_LINE_BEGINS);
    }
  }
  public void addText(ImageIcon image, int gridx, int gridy) {

    JLabel label = new JLabel(image);
    label.setName(componentName);
    this.constraints.fill = GridBagConstraints.HORIZONTAL;
    this.constraints.gridx = gridx;
    this.constraints.gridy = gridy;
    this.constraints.weighty = 0.25;
    // mouseEvent = new MmMouseEvents(label,this.componentsPanel,1,rows);
    this.componentsPanel.add(label, this.constraints);
    this.rows.add(
        new MmAccordionPanelRows(label, gridx, gridy, this.componentsPanel.getComponentCount()));
  }
  /**
   * This method initializes jContentPane
   *
   * @return javax.swing.JPanel
   */
  private javax.swing.JPanel getJContentPane() {
    if (jContentPane == null) {
      java.awt.GridBagConstraints gridBagConstraints1 = new GridBagConstraints();

      java.awt.GridBagConstraints gridBagConstraints14 = new GridBagConstraints();

      java.awt.GridBagConstraints gridBagConstraints13 = new GridBagConstraints();

      java.awt.GridBagConstraints gridBagConstraints12 = new GridBagConstraints();

      javax.swing.JLabel jLabel = new JLabel();

      jContentPane = new javax.swing.JPanel();
      jContentPane.setLayout(new GridBagLayout());
      jLabel.setName("jLabel");
      jLabel.setText("");
      gridBagConstraints12.gridx = 0;
      gridBagConstraints12.gridy = 1;
      gridBagConstraints12.ipadx = 0;
      gridBagConstraints12.ipady = 0;
      gridBagConstraints12.anchor = java.awt.GridBagConstraints.WEST;
      gridBagConstraints12.fill = java.awt.GridBagConstraints.HORIZONTAL;
      gridBagConstraints12.insets = new java.awt.Insets(2, 2, 2, 2);
      gridBagConstraints12.weightx = 1.0D;
      gridBagConstraints13.gridx = 1;
      gridBagConstraints13.gridy = 1;
      gridBagConstraints13.ipadx = 0;
      gridBagConstraints13.ipady = 0;
      gridBagConstraints13.fill = java.awt.GridBagConstraints.NONE;
      gridBagConstraints13.anchor = java.awt.GridBagConstraints.EAST;
      gridBagConstraints13.insets = new java.awt.Insets(2, 2, 2, 2);
      gridBagConstraints14.gridx = 2;
      gridBagConstraints14.gridy = 1;
      gridBagConstraints14.ipadx = 0;
      gridBagConstraints14.ipady = 0;
      gridBagConstraints14.anchor = java.awt.GridBagConstraints.EAST;
      gridBagConstraints14.insets = new java.awt.Insets(2, 2, 2, 2);
      gridBagConstraints1.weightx = 1.0;
      gridBagConstraints1.weighty = 1.0;
      gridBagConstraints1.fill = java.awt.GridBagConstraints.BOTH;
      gridBagConstraints1.anchor = java.awt.GridBagConstraints.NORTHWEST;
      gridBagConstraints1.gridwidth = 3;
      gridBagConstraints1.gridx = 0;
      gridBagConstraints1.gridy = 0;
      jContentPane.add(getJSplitPane(), gridBagConstraints1);
      jContentPane.add(jLabel, gridBagConstraints12);
      jContentPane.add(getBtnOK(), gridBagConstraints13);
      jContentPane.add(getBtnCancel(), gridBagConstraints14);
    }
    return jContentPane;
  }
  /**
   * Constructor for the class.
   *
   * @param table the table containing all the data.
   */
  public InputLineComponent(Table table) {

    setLayout(new GridLayout(2, 1));

    input = new JTextField();
    input.addActionListener(this);
    input.setPreferredSize(new Dimension(200, 24));

    msg = new JLabel("Message:");
    msg.setName("message");

    add(msg);
    add(input);
  }
 @Override
 protected void startup() {
   JLabel label = new JLabel("[label.text resource]", JLabel.CENTER);
   label.setName("label");
   mainFrame = new JFrame();
   mainFrame.setName("mainFrame");
   mainFrame.add(label, BorderLayout.CENTER);
   mainFrame.addWindowListener(new MainFrameListener());
   mainFrame.setDefaultCloseOperation(JFrame.DO_NOTHING_ON_CLOSE);
   ResourceMap resourceMap = getContext().getResourceMap(getClass());
   resourceMap.injectComponents(mainFrame);
   mainFrame.pack();
   mainFrame.setLocationRelativeTo(null); // center the window
   mainFrame.setVisible(true);
 }
Exemple #18
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getManagerLabel() {
   if (ivjManagerLabel == null) {
     try {
       ivjManagerLabel = new javax.swing.JLabel();
       ivjManagerLabel.setName("ManagerLabel");
       ivjManagerLabel.setText("Manager:");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjManagerLabel;
 }
Exemple #19
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getInstructionLabel() {
   if (ivjInstructionLabel == null) {
     try {
       ivjInstructionLabel = new javax.swing.JLabel();
       ivjInstructionLabel.setName("InstructionLabel");
       ivjInstructionLabel.setText("Enter Manager and InterfaceRepository CORBALOC");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjInstructionLabel;
 }
Exemple #20
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getLabRange() {
   if (ivjLabRange == null) {
     try {
       ivjLabRange = new javax.swing.JLabel();
       ivjLabRange.setName("LabRange");
       ivjLabRange.setText("Range name");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjLabRange;
 }
Exemple #21
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getLabOptional() {
   if (ivjLabOptional == null) {
     try {
       ivjLabOptional = new javax.swing.JLabel();
       ivjLabOptional.setName("LabOptional");
       ivjLabOptional.setText("(Optional)");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjLabOptional;
 }
  private void jbInit() {
    BorderLayout borderLayout = new BorderLayout();
    borderLayout.setVgap(5);
    setLayout(borderLayout);
    setBorder(new EmptyBorder(0, 0, 5, 0));
    classificationTable.setName("AssistantSegmentation.ListeDesAxes");
    add(new JScrollPane(classificationTable), BorderLayout.CENTER);

    JScrollPane pane = new JScrollPane(mainPanel);
    pane.setBorder(new EmptyBorder(0, 0, 0, 0));
    add(pane, BorderLayout.EAST);

    infoField = new JLabel();
    infoField.setName("Summary");
    add(infoField, BorderLayout.SOUTH);
  }
Exemple #23
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getJLabel4() {
   if (ivjJLabel4 == null) {
     try {
       ivjJLabel4 = new javax.swing.JLabel();
       ivjJLabel4.setName("JLabel4");
       ivjJLabel4.setPreferredSize(new java.awt.Dimension(150, 20));
       ivjJLabel4.setText("Relative change in log-likelihood");
       // user code begin {1}
       // user code end
     } catch (Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjJLabel4;
 }
Exemple #24
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getJLabel1() {
   if (ivjJLabel1 == null) {
     try {
       ivjJLabel1 = new javax.swing.JLabel();
       ivjJLabel1.setName("JLabel1");
       ivjJLabel1.setPreferredSize(new java.awt.Dimension(150, 20));
       ivjJLabel1.setText("Max num of iterations");
       // user code begin {1}
       // user code end
     } catch (Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjJLabel1;
 }
Exemple #25
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getJLabel2() {
   if (ivjJLabel2 == null) {
     try {
       ivjJLabel2 = new javax.swing.JLabel();
       ivjJLabel2.setName("JLabel2");
       ivjJLabel2.setPreferredSize(new java.awt.Dimension(150, 20));
       ivjJLabel2.setText("Convergence tolerance:");
       // user code begin {1}
       // user code end
     } catch (Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjJLabel2;
 }
Exemple #26
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getHelpLabel() {
   if (ivjHelpLabel == null) {
     try {
       ivjHelpLabel = new javax.swing.JLabel();
       ivjHelpLabel.setName("HelpLabel");
       ivjHelpLabel.setFont(new java.awt.Font("Arial", 2, 12));
       ivjHelpLabel.setText("(Use the form corbaloc::<host>:<port>/<ObjectID>)");
       // user code begin {1}
       // user code end
     } catch (java.lang.Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjHelpLabel;
 }
Exemple #27
0
 /* WARNING: THIS METHOD WILL BE REGENERATED. */
 private javax.swing.JLabel getJLabel5() {
   if (ivjJLabel5 == null) {
     try {
       ivjJLabel5 = new javax.swing.JLabel();
       ivjJLabel5.setName("JLabel5");
       ivjJLabel5.setPreferredSize(new java.awt.Dimension(150, 20));
       ivjJLabel5.setText("Start value settings:");
       // user code begin {1}
       // user code end
     } catch (Throwable ivjExc) {
       // user code begin {2}
       // user code end
       handleException(ivjExc);
     }
   }
   return ivjJLabel5;
 }
 /**
  * Recursively creates new JLabel instances to represent <code>d</code>. Each JLabel instance is
  * added to <code>c</code>.
  */
 protected void burstStringInto(Container c, String d, int maxll) {
   // Primitive line wrapping
   int len = d.length();
   if (len <= 0) return;
   if (len > maxll) {
     int p = d.lastIndexOf(' ', maxll);
     if (p <= 0) p = d.indexOf(' ', maxll);
     if (p > 0 && p < len) {
       burstStringInto(c, d.substring(0, p), maxll);
       burstStringInto(c, d.substring(p + 1), maxll);
       return;
     }
   }
   JLabel label = new JLabel(d, JLabel.LEFT);
   label.setName("OptionPane.label");
   configureMessageLabel(label);
   c.add(label);
 }
  private void insertParameter(ConfigParamDescr descr, String format, int pos) {
    try {
      StyledDocument doc = (StyledDocument) editorPane.getDocument();

      // The component must first be wrapped in a style
      Style style = doc.addStyle("Parameter-" + numParameters, null);
      JLabel label = new JLabel(descr.getDisplayName());
      label.setAlignmentY(0.8f); // make sure we line up
      label.setFont(new Font("Helvetica", Font.PLAIN, 14));
      label.setForeground(Color.BLUE);
      label.setName(descr.getKey());
      label.setToolTipText("key: " + descr.getKey() + "    format: " + format);
      StyleConstants.setComponent(style, label);
      doc.insertString(pos, format, style);
      numParameters++;
    } catch (BadLocationException e) {
    }
  }
  public void addText(String title, int gridx, int gridy) {

    JLabel label = new JLabel(title + ":");
    label.setName(title);
    componentName = title;
    this.constraints.anchor = GridBagConstraints.WEST;
    this.constraints.fill = GridBagConstraints.HORIZONTAL;
    this.constraints.gridx = gridx;
    this.constraints.gridy = gridy;
    this.constraints.weighty = 0.25;
    this.constraints.insets = new Insets(5, 0, 0, 0);
    this.rows.add(
        new MmAccordionPanelRows(label, gridx, gridy, this.componentsPanel.getComponentCount()));
    // mouseEvent = new MmMouseEvents(label,this.componentsPanel,1,rows);
    // label.addMouseListener(mouseEvent);
    this.componentsPanel.add(label, this.constraints);
    labels.add(label);
  }