class EqualBooleanPanel extends javax.swing.JPanel implements ActionListener {

    private EqualBooleanFilter filter;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JToggleButton falseButton;
    private javax.swing.ButtonGroup group;
    private javax.swing.JToggleButton trueButton;
    // End of variables declaration//GEN-END:variables

    public EqualBooleanPanel() {
        initComponents();
        trueButton.addActionListener(this);
        falseButton.addActionListener(this);
    }

    public void setup(EqualBooleanFilter filter) {
        this.filter = filter;
        this.setToolTipText(filter.getName() + " '" + filter.getColumn().getTitle() + "'");
        group.clearSelection();
        group.setSelected(trueButton.getModel(), filter.isMatch());
        group.setSelected(falseButton.getModel(), !filter.isMatch());
    }

    @Override
    public void actionPerformed(ActionEvent evt) {
        FilterProperty match = filter.getProperties()[1];
        try {
            match.setValue(trueButton.isSelected());
        } catch (Exception e) {
            Exceptions.printStackTrace(e);
        }
    }

    /**
     * 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() {<FILL_FUNCTION_BODY>}// </editor-fold>//GEN-END:initComponents
}


        group = new javax.swing.ButtonGroup();
        trueButton = new javax.swing.JToggleButton();
        falseButton = new javax.swing.JToggleButton();

        setOpaque(false);

        group.add(trueButton);
        trueButton.setText(org.openide.util.NbBundle
            .getMessage(EqualBooleanPanel.class, "EqualBooleanPanel.trueButton.text")); // NOI18N
        add(trueButton);

        group.add(falseButton);
        falseButton.setText(org.openide.util.NbBundle
            .getMessage(EqualBooleanPanel.class, "EqualBooleanPanel.falseButton.text")); // NOI18N
        add(falseButton);
    
<methods>public void <init>() ,public void <init>(java.awt.LayoutManager) ,public void <init>(boolean) ,public void <init>(java.awt.LayoutManager, boolean) ,public javax.accessibility.AccessibleContext getAccessibleContext() ,public javax.swing.plaf.PanelUI getUI() ,public java.lang.String getUIClassID() ,public void setUI(javax.swing.plaf.PanelUI) ,public void updateUI() <variables>private static final java.lang.String uiClassID