bitDepthSlider = new JSlider(JSlider.HORIZONTAL, MIN_BIT_DEPTH,
bitDepthSlider = new JSlider(SwingConstants.HORIZONTAL, MIN_BIT_DEPTH,
    private void initComponents()    {        graphicsPane = new GraphicsPane(model, controller);        familyBox = new JComboBox(model.getFamilies().toArray());        String family = model.getFamily();        familyBox.setSelectedItem(family);        familyBox.addActionListener(this);        familyBox.setActionCommand(""+FAMILY);                double k = model.getCurveCoefficient();        gammaSlider = new JSlider(JSlider.HORIZONTAL, MIN_GAMMA, MAX_GAMMA,                                     (int) (k*FACTOR));        gammaSlider.setEnabled(!(family.equals(RendererModel.LINEAR) ||                 family.equals(RendererModel.LOGARITHMIC)));        gammaSlider.addChangeListener(this);        gammaLabel = new JTextField(""+k);        gammaLabel.setEnabled(false);        gammaLabel.setEditable(false);        int v = model.getBitResolution();        bitDepthSlider = new JSlider(JSlider.HORIZONTAL, MIN_BIT_DEPTH,                                 MAX_BIT_DEPTH, convertBitResolution(v));        bitDepthSlider.addChangeListener(this);        bitDepthLabel = new JTextField(""+v);        bitDepthLabel.setEnabled(false);        bitDepthLabel.setEditable(false);        noiseReduction = new JCheckBox();        noiseReduction.setSelected(model.isNoiseReduction());        noiseReduction.setAction(                controller.getAction(RendererControl.NOISE_REDUCTION));        histogramButton = new JButton(                controller.getAction(RendererControl.HISTOGRAM));                channelList = new ArrayList();        channelButtonPanel = createChannelButtons();        isAdvancedSettingsShowing = false;        advancedOptionsButton = new JButton(SHOW_ADVANCED_OPTIONS);        advancedOptionsButton.addActionListener(new ActionListener() {			public void actionPerformed(ActionEvent e) { handleClick(); }		});    }