class DynamicRangePanel extends javax.swing.JPanel {

    private final String OPEN;
    private final String CLOSE;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.JCheckBox keepEmptyCheckbox;
    private javax.swing.JButton timelineButton;
    // End of variables declaration//GEN-END:variables

    public DynamicRangePanel() {
        initComponents();
        OPEN = NbBundle.getMessage(DynamicRangePanel.class, "DynamicRangePanel.timelineButton.text");
        CLOSE = NbBundle.getMessage(DynamicRangePanel.class, "DynamicRangePanel.timelineButton.closetext");
    }

    public void setup(final DynamicRangeFilter filter) {<FILL_FUNCTION_BODY>}

    /**
     * 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;

        timelineButton = new javax.swing.JButton();
        keepEmptyCheckbox = new javax.swing.JCheckBox();

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

        timelineButton.setText(org.openide.util.NbBundle
            .getMessage(DynamicRangePanel.class, "DynamicRangePanel.timelineButton.text")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 0;
        add(timelineButton, gridBagConstraints);

        keepEmptyCheckbox.setText(org.openide.util.NbBundle
            .getMessage(DynamicRangePanel.class, "DynamicRangePanel.keepEmptyCheckbox.text")); // NOI18N
        keepEmptyCheckbox.setToolTipText(org.openide.util.NbBundle
            .getMessage(DynamicRangePanel.class, "DynamicRangePanel.keepEmptyCheckbox.toolTipText")); // NOI18N
        gridBagConstraints = new java.awt.GridBagConstraints();
        gridBagConstraints.gridx = 0;
        gridBagConstraints.gridy = 1;
        add(keepEmptyCheckbox, gridBagConstraints);
    }// </editor-fold>//GEN-END:initComponents
}

        final BottomComponent bottomComponent = Lookup.getDefault().lookup(BottomComponent.class);
        timelineButton.setText(bottomComponent.isVisible() ? CLOSE : OPEN);
        timelineButton.addActionListener(new ActionListener() {

            @Override
            public void actionPerformed(ActionEvent e) {

                if (!bottomComponent.isVisible()) {
                    bottomComponent.setVisible(true);
                    timelineButton.setText(CLOSE);
                } else {
                    bottomComponent.setVisible(false);
                    timelineButton.setText(OPEN);
                }
            }
        });
        keepEmptyCheckbox.setSelected(filter.isKeepNull());
        keepEmptyCheckbox.addItemListener(new ItemListener() {

            @Override
            public void itemStateChanged(ItemEvent e) {
                if (!filter.isKeepNull() == keepEmptyCheckbox.isSelected()) {
                    filter.getProperties()[1].setValue(keepEmptyCheckbox.isSelected());
                }
            }
        });
    
<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