Exemplo n.º 1
0
  /**
   * 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() {

    searchInCommentsCheckBox = new javax.swing.JCheckBox();
    findAllCheckBox = new javax.swing.JCheckBox();

    setPreferredSize(new java.awt.Dimension(200, 100));

    searchInCommentsCheckBox.setText(
        org.openide.util.NbBundle.getMessage(
            WhereUsedPanel.class, "WhereUsedPanel.searchInCommentsCheckBox.text")); // NOI18N
    searchInCommentsCheckBox.setEnabled(false);

    findAllCheckBox.setSelected(CssPreferences.findInUnrelatedFiles());
    findAllCheckBox.setText(
        org.openide.util.NbBundle.getMessage(
            WhereUsedPanel.class, "WhereUsedPanel.findAllCheckBox.text")); // NOI18N
    findAllCheckBox.addActionListener(
        new java.awt.event.ActionListener() {
          public void actionPerformed(java.awt.event.ActionEvent evt) {
            findAllCheckBoxActionPerformed(evt);
          }
        });

    javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
    this.setLayout(layout);
    layout.setHorizontalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addGroup(
                        layout
                            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                            .addComponent(searchInCommentsCheckBox)
                            .addComponent(findAllCheckBox))
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE)));
    layout.setVerticalGroup(
        layout
            .createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
            .addGroup(
                layout
                    .createSequentialGroup()
                    .addContainerGap()
                    .addComponent(searchInCommentsCheckBox)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(findAllCheckBox)
                    .addContainerGap(37, Short.MAX_VALUE)));
  } // </editor-fold>//GEN-END:initComponents
Exemplo n.º 2
0
 private void findAllCheckBoxActionPerformed(
     java.awt.event.ActionEvent evt) { // GEN-FIRST:event_findAllCheckBoxActionPerformed
   CssPreferences.setFindInUnrelatedFiles(findAllCheckBox.isSelected());
 } // GEN-LAST:event_findAllCheckBoxActionPerformed