class TimeFormatDialog extends javax.swing.JPanel {

    private TimelineController timelineController;
    // Variables declaration - do not modify//GEN-BEGIN:variables
    private javax.swing.ButtonGroup buttonGroup;
    private javax.swing.JRadioButton dateRadio;
    private javax.swing.JRadioButton dateTimeRadio;
    private org.jdesktop.swingx.JXHeader headerTitle;
    private javax.swing.JRadioButton numericRadio;
    // End of variables declaration//GEN-END:variables

    /**
     * Creates new form DateFormatDialog
     */
    public TimeFormatDialog() {
        initComponents();
    }

    public void setup(TimelineModel model) {<FILL_FUNCTION_BODY>}

    public void unsetup() {
        if (dateRadio.isSelected()) {
            timelineController.setTimeFormat(TimeFormat.DATE);
        } else if (dateTimeRadio.isSelected()) {
            timelineController.setTimeFormat(TimeFormat.DATETIME);
        } else {
            timelineController.setTimeFormat(TimeFormat.DOUBLE);
        }
    }

    /**
     * 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() {

        buttonGroup = new javax.swing.ButtonGroup();
        headerTitle = new org.jdesktop.swingx.JXHeader();
        dateRadio = new javax.swing.JRadioButton();
        numericRadio = new javax.swing.JRadioButton();
        dateTimeRadio = new javax.swing.JRadioButton();

        headerTitle.setDescription(
            NbBundle.getMessage(TimelineTopComponent.class, "TimeFormatDialog.headerTitle.description")); // NOI18N
        headerTitle.setIcon(ImageUtilities.loadImageIcon("DesktopTimeline/time_format.png", false)); // NOI18N
        headerTitle
            .setTitle(NbBundle.getMessage(TimelineTopComponent.class, "TimeFormatDialog.headerTitle.title")); // NOI18N

        buttonGroup.add(dateRadio);
        dateRadio.setText(NbBundle.getMessage(TimelineTopComponent.class, "TimeFormatDialog.dateRadio.text")); // NOI18N

        buttonGroup.add(numericRadio);
        numericRadio
            .setText(NbBundle.getMessage(TimelineTopComponent.class, "TimeFormatDialog.numericRadio.text")); // NOI18N

        buttonGroup.add(dateTimeRadio);
        dateTimeRadio.setText(org.openide.util.NbBundle
            .getMessage(TimeFormatDialog.class, "TimeFormatDialog.dateTimeRadio.text")); // NOI18N

        javax.swing.GroupLayout layout = new javax.swing.GroupLayout(this);
        this.setLayout(layout);
        layout.setHorizontalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addComponent(headerTitle, javax.swing.GroupLayout.DEFAULT_SIZE, 422, Short.MAX_VALUE)
                .addGroup(layout.createSequentialGroup()
                    .addGap(23, 23, 23)
                    .addComponent(numericRadio)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dateTimeRadio)
                    .addPreferredGap(javax.swing.LayoutStyle.ComponentPlacement.RELATED)
                    .addComponent(dateRadio)
                    .addContainerGap(javax.swing.GroupLayout.DEFAULT_SIZE, Short.MAX_VALUE))
        );
        layout.setVerticalGroup(
            layout.createParallelGroup(javax.swing.GroupLayout.Alignment.LEADING)
                .addGroup(layout.createSequentialGroup()
                    .addComponent(headerTitle, javax.swing.GroupLayout.PREFERRED_SIZE, 69,
                        javax.swing.GroupLayout.PREFERRED_SIZE)
                    .addGap(18, 18, 18)
                    .addGroup(layout.createParallelGroup(javax.swing.GroupLayout.Alignment.BASELINE)
                        .addComponent(numericRadio)
                        .addComponent(dateRadio)
                        .addComponent(dateTimeRadio))
                    .addGap(0, 22, Short.MAX_VALUE))
        );
    }// </editor-fold>//GEN-END:initComponents
}

        this.timelineController = Lookup.getDefault().lookup(TimelineController.class);

        TimeFormat timeFormat = model.getTimeFormat();
        switch (timeFormat) {
            case DATE:
                dateRadio.setSelected(true);
                break;
            case DATETIME:
                dateTimeRadio.setSelected(true);
                break;
            case DOUBLE:
                numericRadio.setSelected(true);
                break;
        }
    
<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