Java Code Examples for javax.swing.JCheckBox#setFont()

The following examples show how to use javax.swing.JCheckBox#setFont() . You can vote up the ones you like or vote down the ones you don't like, and go to the original project or source file by following the links above each example. You may check out the related API usage on the sidebar.
Example 1
Source File: KwikiDateModesSelectorPanel.java    From ET_Redux with Apache License 2.0 6 votes vote down vote up
private void SetupSliderLockCheckBox () {

        ChangeListener sliderLockChangeListener = new ChangeListener() {

            public void stateChanged ( ChangeEvent changeEvent ) {
                propertySupport.firePropertyChange(//
                        SLIDER_LOCK_PROPERTY,
                        "",
                        String.valueOf( ((JCheckBox) changeEvent.getSource()).isSelected() ) );
            }
        };

        sliderLockCheckBox = new JCheckBox( "Lock Uncertainties" );
        sliderLockCheckBox.setOpaque( false );
        sliderLockCheckBox.setForeground( new java.awt.Color( 204, 0, 0 ) );
        sliderLockCheckBox.setFont( new Font( "SansSerif", Font.BOLD, 9 ) );
        sliderLockCheckBox.setBounds( 1, 60, 120, 15 );
        sliderLockCheckBox.addChangeListener( sliderLockChangeListener );
        add( sliderLockCheckBox, javax.swing.JLayeredPane.DEFAULT_LAYER );

    }
 
Example 2
Source File: HeatMapManager.java    From ET_Redux with Apache License 2.0 6 votes vote down vote up
private void buttonsFactory() {
    toggleHeatActiveCheckBox = new JCheckBox("Activate Heat Map");
    toggleHeatActiveCheckBox.setBounds(50, 100, WIDTH_OF_FORM - 100, 25);
    toggleHeatActiveCheckBox.setFont(sansSerif_12_Plain);
    toggleHeatActiveCheckBox.setSelected(heatMapActive);
    toggleHeatActiveCheckBox.addItemListener(new ItemListener() {

        @Override
        public void itemStateChanged(ItemEvent e) {
            if (e.getStateChange() == ItemEvent.SELECTED) {
                heatMapActive = true;
            } else {
                heatMapActive = false;
            }
            determineFractionHeat();

            heatMapOptions.put("activateHeatMap", Boolean.toString(heatMapActive));
        }
    });

    heatMapDetailsPanel.add(toggleHeatActiveCheckBox);

}
 
Example 3
Source File: MuleModulesCheckBoxList.java    From mule-intellij-plugins with Apache License 2.0 6 votes vote down vote up
public Component getListCellRendererComponent(
                JList<? extends JCheckBox> list, JCheckBox value, int index,
                boolean isSelected, boolean cellHasFocus) {
            JCheckBox checkbox = value;

            //Drawing checkbox, change the appearance here
/*
            checkbox.setBackground(isSelected ? getSelectionBackground()
                    : getBackground());
            checkbox.setForeground(isSelected ? getSelectionForeground()
                    : getForeground());
*/
            checkbox.setEnabled(isEnabled());
            checkbox.setFont(getFont());
            checkbox.setFocusPainted(false);
            checkbox.setBorderPainted(true);
            checkbox.setBorder(isSelected ? UIManager
                    .getBorder("List.focusCellHighlightBorder") : noFocusBorder);
            return checkbox;
        }
 
Example 4
Source File: MarqueeTicker.java    From mars-sim with GNU General Public License v3.0 6 votes vote down vote up
public Component getFreeze() {
    JPanel panel = new JPanel();//new FlowLayout(FlowLayout.CENTER,0,0));//GridLayout(1,2,0,0));
    //panel.setBackground(Color.BLACK);
    JCheckBox freezeCheckBox = new JCheckBox("Freeze");
    Font myFont = new Font("Dialog", Font.BOLD,9);
    freezeCheckBox.setFont(myFont);
    freezeCheckBox.addItemListener(new ItemListener() {
        public void itemStateChanged(ItemEvent e) {
            if (e.getStateChange() == ItemEvent.SELECTED) {
                _horizonMarqueeLeft.stopAutoScrolling();
            }
            else {
                _horizonMarqueeLeft.startAutoScrolling();
            }
        }
    });
    panel.add(freezeCheckBox);
    return panel;
}
 
Example 5
Source File: JPanel_AppManager.java    From MobyDroid with Apache License 2.0 5 votes vote down vote up
public JCheckBoxTableHeaderCellRenderer() {
    jCheckBox = new JCheckBox();
    jCheckBox.setFont(UIManager.getFont("TableHeader.font"));
    jCheckBox.setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    jCheckBox.setBackground(UIManager.getColor("TableHeader.background"));
    jCheckBox.setForeground(UIManager.getColor("TableHeader.foreground"));
    jCheckBox.setHorizontalAlignment(SwingConstants.CENTER);
    jCheckBox.setBorderPainted(true);
}
 
Example 6
Source File: JPlagCreator.java    From jplag with GNU General Public License v3.0 5 votes vote down vote up
public static JCheckBox createCheckBox(String toolTip) {
	JCheckBox box = new JCheckBox();

	box.setFont(JPlagCreator.SYSTEM_FONT);
	box.setPreferredSize(new java.awt.Dimension(20, 20));
	box.setForeground(JPlagCreator.OPTION_PANEL_FOREGROUND);
	box.setBackground(JPlagCreator.SYSTEMCOLOR);
	if (toolTip != null && !toolTip.equals(""))
		box.setToolTipText(toolTip);
	return box;
}
 
Example 7
Source File: KwikiDateModesSelectorPanel.java    From ET_Redux with Apache License 2.0 5 votes vote down vote up
/**
 * 
 * @param enableThPa
 */
public void SetupDateCorrectionCheckBoxes ( boolean enableThPa ) {

    ActionListener dateCorrectionChkBoxActionListener = new ActionListener() {

        public void actionPerformed ( ActionEvent e ) {
            AbstractButton abstractButton =
                    (AbstractButton) e.getSource();
            String choice = abstractButton.getActionCommand();
            CalculateDateCorrectionMode( choice );
        }
    };

    correctTh = new JCheckBox( "Th" );
    correctTh.setActionCommand( "Th" );
    correctTh.setOpaque( false );
    correctTh.setForeground( new java.awt.Color( 204, 0, 0 ) );
    correctTh.setFont( new Font( "SansSerif", Font.BOLD, 9 ) );
    correctTh.setBounds( 125, 20, 45, 15 );
    correctTh.setEnabled( enableThPa );
    correctTh.addActionListener( dateCorrectionChkBoxActionListener );
    add( correctTh, javax.swing.JLayeredPane.DEFAULT_LAYER );

    correctPa = new JCheckBox( "Pa" );
    correctPa.setActionCommand( "Pa" );
    correctPa.setOpaque( false );
    correctPa.setForeground( new java.awt.Color( 204, 0, 0 ) );
    correctPa.setFont( new Font( "SansSerif", Font.BOLD, 9 ) );
    correctPa.setBounds( 125, 40, 45, 15 );
    correctPa.setEnabled( enableThPa );
    correctPa.addActionListener( dateCorrectionChkBoxActionListener );
    add( correctPa, javax.swing.JLayeredPane.DEFAULT_LAYER );
}
 
Example 8
Source File: ProductChooser.java    From snap-desktop with GNU General Public License v3.0 5 votes vote down vote up
private void addProductCheckers(final StringBuffer description, final JPanel checkersPane,
                                final GridBagConstraints gbc) {
    final ActionListener checkListener = createActionListener();
    for (int i = 0; i < allProducts.length; i++) {
        Product product = allProducts[i];
        boolean checked = false;
        for (Product selectedProduct : selectedProducts) {
            if (product == selectedProduct) {
                checked = true;
                numSelected++;
                break;
            }
        }

        description.setLength(0);
        description.append(product.getDescription() == null ? "" : product.getDescription());

        final JCheckBox check = new JCheckBox(getDisplayName(product), checked);
        check.setFont(SMALL_PLAIN_FONT);
        check.addActionListener(checkListener);

        final JLabel label = new JLabel(description.toString());
        label.setFont(SMALL_ITALIC_FONT);

        gbc.gridy++;
        GridBagUtils.addToPanel(checkersPane, check, gbc, "weightx=0,gridx=0");
        GridBagUtils.addToPanel(checkersPane, label, gbc, "weightx=1,gridx=1");

        checkBoxes[i] = check;
    }
}
 
Example 9
Source File: MultiChoiceComponent.java    From mzmine2 with GNU General Public License v2.0 5 votes vote down vote up
/**
 * Create the pane with a checkbox for each choice.
 *
 * @param theChoices the available choices.
 */
private CheckBoxPanel(final Object[] theChoices) {

  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
  setOpaque(false);

  final int choiceCount = theChoices.length;
  checkBoxes = new JCheckBox[choiceCount];

  for (int i = 0; i < choiceCount; i++) {

    // Create a check box (inherit tooltip text.
    final JCheckBox checkBox = new JCheckBox(theChoices[i].toString()) {

      /**
       * 
       */
      private static final long serialVersionUID = 1L;

      @Override
      public String getToolTipText() {

        return MultiChoiceComponent.this.getToolTipText();
      }
    };
    checkBox.addItemListener(e -> handleItemChanged());
    checkBox.setFont(CHECKBOX_FONT);
    checkBox.setOpaque(false);
    add(checkBox);
    ToolTipManager.sharedInstance().registerComponent(checkBox);
    checkBoxes[i] = checkBox;
  }
}
 
Example 10
Source File: CheckBoxList.java    From spotbugs with GNU Lesser General Public License v2.1 5 votes vote down vote up
@Override
public Component getListCellRendererComponent(JList<? extends E> list, E value, int index, boolean isSelected,
        boolean cellHasFocus) {
    JCheckBox checkbox = (JCheckBox) value;
    checkbox.setBackground(isSelected ? getSelectionBackground() : getBackground());
    checkbox.setForeground(isSelected ? getSelectionForeground() : getForeground());
    checkbox.setEnabled(isEnabled());
    checkbox.setFont(getFont());
    checkbox.setFocusPainted(false);
    checkbox.setBorderPainted(true);
    checkbox.setBorder(isSelected ? UIManager.getBorder("List.focusCellHighlightBorder") : noFocusBorder);
    return checkbox;
}
 
Example 11
Source File: CustomCheckBoxList.java    From tmc-intellij with MIT License 5 votes vote down vote up
@Override
public Component getListCellRendererComponent(
        JList list, Object value, int index, boolean isSelected, boolean cellHasFocus) {
    JCheckBox checkbox = (JCheckBox) value;
    checkbox.setBackground(isSelected ? getSelectionBackground() : getBackground());
    checkbox.setForeground(isSelected ? getSelectionForeground() : getForeground());
    checkbox.setFont(getFont());
    checkbox.setFocusPainted(false);
    checkbox.setBorderPainted(false);
    checkbox.setBorder(
            isSelected
                    ? UIManager.getBorder("List.focusCellHighlightBorder")
                    : new EmptyBorder(1, 1, 1, 1));
    return checkbox;
}
 
Example 12
Source File: CheckBoxUpdater.java    From netbeans with Apache License 2.0 5 votes vote down vote up
private void setCheckBoxValue(Boolean value, boolean defValue, JCheckBox component) {
    if (value != null) {
        component.setSelected(value.booleanValue());
        component.setToolTipText(null);
        inherited = false;
        component.setFont(component.getFont().deriveFont(Font.BOLD));
    } else {
        component.setSelected(defValue);
        component.setToolTipText(MSG_Value_Inherited());
        inherited = true;
        component.setFont(component.getFont().deriveFont(Font.PLAIN));
    }
}
 
Example 13
Source File: JPanel_TaskManager.java    From MobyDroid with Apache License 2.0 5 votes vote down vote up
public JCheckBoxTableHeaderCellRenderer() {
    jCheckBox = new JCheckBox();
    jCheckBox.setFont(UIManager.getFont("TableHeader.font"));
    jCheckBox.setBorder(UIManager.getBorder("TableHeader.cellBorder"));
    jCheckBox.setBackground(UIManager.getColor("TableHeader.background"));
    jCheckBox.setForeground(UIManager.getColor("TableHeader.foreground"));
    jCheckBox.setHorizontalAlignment(SwingConstants.CENTER);
    jCheckBox.setBorderPainted(true);
}
 
Example 14
Source File: SettingsPage.java    From xdm with GNU General Public License v2.0 5 votes vote down vote up
private JCheckBox createCheckBox(String name, Font font) {
	JCheckBox chk = new JCheckBox(StringResource.get(name));
	chk.setName(name);
	chk.setIcon(ImageResource.getIcon("unchecked.png", 16, 16));
	chk.setSelectedIcon(ImageResource.getIcon("checked.png", 16, 16));
	chk.setOpaque(false);
	chk.setFocusPainted(false);
	chk.setForeground(Color.WHITE);
	chk.setFont(font);
	return chk;
}
 
Example 15
Source File: ControlPanel.java    From gepard with MIT License 4 votes vote down vote up
private JCheckBox getCustomCheckbox(String caption) {
	JCheckBox ret = new JCheckBox(caption);
	ret.setBorder(BorderFactory.createEmptyBorder(0, 0, 0, 0));
	ret.setFont(MAIN_FONT);
	return ret;
}
 
Example 16
Source File: ProcessInfoDialog.java    From nmonvisualizer with Apache License 2.0 4 votes vote down vote up
public ProcessInfoDialog(NMONVisualizerGui gui) {
    super(gui);
    setResizable(true);

    setLayout(new BorderLayout());
    setIconImage(PROCESS_ICON.getImage());

    processName = new JLabel();
    processName.setFont(Styles.TITLE);
    processName.setHorizontalAlignment(SwingConstants.CENTER);

    processTime = new JLabel();
    processTime.setFont(Styles.BOLD);
    processTime.setHorizontalAlignment(SwingConstants.CENTER);

    JPanel header = new JPanel();
    header.setLayout(new GridLayout(2, 1));
    header.setBorder(Styles.TITLE_BORDER);
    header.add(processName);
    header.add(processTime);

    add(header, BorderLayout.PAGE_START);

    commandLine = new JTextArea();
    commandLine.setColumns(50);
    commandLine.setRows(15);
    commandLine.setEditable(false);

    JScrollPane scrollPane = new JScrollPane(commandLine);
    scrollPane.setBorder(Styles.DOUBLE_LINE_BORDER);
    add(scrollPane, BorderLayout.CENTER);

    followTree = new JCheckBox("Link with Tree?");
    followTree.setFont(Styles.LABEL);
    followTree.setHorizontalAlignment(SwingConstants.TRAILING);
    followTree.setHorizontalTextPosition(SwingConstants.LEADING);
    followTree.setBorder(BorderFactory.createEmptyBorder(5, 0, 5, 10));
    followTree.setSelected(false);

    add(followTree, BorderLayout.PAGE_END);

    tree = null;
}
 
Example 17
Source File: MineralStandardUPbRatioViewNotEditable.java    From ET_Redux with Apache License 2.0 4 votes vote down vote up
/**
 *
 *
 * @param valueModel
 */
public MineralStandardUPbRatioViewNotEditable ( ValueModel valueModel) {
    super( valueModel);

    initTextBoxes( false );

    JCheckBox measuredCheckBox = new JCheckBox(//
            "", ((MineralStandardUPbRatioModel) valueModel).isMeasured() );
    measuredCheckBox.setEnabled( false );
    measuredCheckBox.setFont(ReduxConstants.sansSerif_12_Bold );

    measuredCheckBox.setSize( 25, AbstractValueModelView.PANEL_HEIGHT );
    measuredCheckBox.setLocation( this.uncertaintyTextBox.getX() + this.uncertaintyTextBox.getWidth() + 25, 0 );

    this.add( measuredCheckBox );


    this.setSize( this.getWidth(), this.getHeight() );

}
 
Example 18
Source File: LoginFrame.java    From xyTalk-pc with GNU Affero General Public License v3.0 4 votes vote down vote up
private void initComponents() {
	Dimension windowSize = new Dimension(windowWidth, windowHeight);
	setMinimumSize(windowSize);
	setMaximumSize(windowSize);

	controlPanel = new JPanel();
	controlPanel.setLayout(new FlowLayout(FlowLayout.RIGHT, 10, 5));
	// controlPanel.setBounds(0,5, windowWidth, 30);

	closeLabel = new JLabel();
	closeLabel.setIcon(IconUtil.getIcon(this, "/image/close.png"));
	closeLabel.setHorizontalAlignment(JLabel.CENTER);
	// closeLabel.setPreferredSize(new Dimension(30,30));
	closeLabel.setCursor(new Cursor(Cursor.HAND_CURSOR));

	titleLabel = new JLabel();
	titleLabel.setText("登录 XyTalk");
	titleLabel.setFont(FontUtil.getDefaultFont(16));

	downloadLabel = new JLabel();
	downloadLabel.setText("下载客户端软件");
	downloadLabel.setFont(FontUtil.getDefaultFont(14));
	
	remberPsw = new JCheckBox("记住密码", true);
	remberPsw.setFont(FontUtil.getDefaultFont(14));
	
	offlineLogin = new JCheckBox("断网离线登陆", false);
	offlineLogin.setFont(FontUtil.getDefaultFont(14));

	editPanel = new JPanel();
	editPanel.setLayout(new VerticalFlowLayout(VerticalFlowLayout.TOP, 0, 5, true, false));

	Dimension textFieldDimension = new Dimension(200, 35);
	usernameField = new RCTextField();
	usernameField.setPlaceholder("用户名");
	usernameField.setPreferredSize(textFieldDimension);
	usernameField.setFont(FontUtil.getDefaultFont(14));
	usernameField.setForeground(Colors.FONT_BLACK);
	usernameField.setMargin(new Insets(0, 15, 0, 0));
	usernameField.setText("wangxin");

	passwordField = new RCPasswordField();
	passwordField.setPreferredSize(textFieldDimension);
	passwordField.setPlaceholder("密码");
	// passwordField.setBorder(new RCBorder(RCBorder.BOTTOM,
	// Colors.LIGHT_GRAY));
	passwordField.setFont(FontUtil.getDefaultFont(14));
	passwordField.setForeground(Colors.FONT_BLACK);
	passwordField.setMargin(new Insets(0, 15, 0, 0));
	passwordField.setText("1");

	loginButton = new RCButton("登 录", Colors.MAIN_COLOR, Colors.MAIN_COLOR_DARKER, Colors.MAIN_COLOR_DARKER);
	loginButton.setFont(FontUtil.getDefaultFont(14));
	loginButton.setPreferredSize(new Dimension(300, 40));

	statusLabel = new JLabel();
	statusLabel.setForeground(Colors.RED);
	statusLabel.setText("密码不正确");
	statusLabel.setVisible(false);
	
	usernameField.setText(readName());
	passwordField.setText(readPassword());
}
 
Example 19
Source File: FractionInfoPanel.java    From ET_Redux with Apache License 2.0 4 votes vote down vote up
private void initView() {
    this.setCursor(Cursor.getDefaultCursor());

    Font checkBoxFont = new Font(
            "SansSerif",
            Font.BOLD,
            10);

    toggleFractionCheckBox = new JCheckBox("include fraction", true);
    toggleFractionCheckBox.setBounds(2, 22, DEFAULT_WIDTH_OF_PANE - 2, 15);
    toggleFractionCheckBox.setFont(checkBoxFont);
    toggleFractionCheckBox.setSelected(tripoliFraction.isIncluded());
    toggleFractionCheckBox.setBackground(this.getBackground());
    toggleFractionCheckBox.addActionListener(//
            new ToggleFractionCheckBoxActionListener(tripoliFraction, rawDataModelView, sampleSessionDataView));
    add(toggleFractionCheckBox, JLayeredPane.DEFAULT_LAYER);

    showLocalYAxisCheckBox = new JCheckBox("local Y axis", false);
    showLocalYAxisCheckBox.setBounds(2, 37, DEFAULT_WIDTH_OF_PANE - 2, 15);
    showLocalYAxisCheckBox.setFont(checkBoxFont);
    showLocalYAxisCheckBox.setSelected(tripoliFraction.isShowLocalYAxis());
    showLocalYAxisCheckBox.setBackground(this.getBackground());
    showLocalYAxisCheckBox.addActionListener(//
            new ShowLocalYAxisCheckBoxActionListener(tripoliFraction, sampleSessionDataView));
    add(showLocalYAxisCheckBox, JLayeredPane.DEFAULT_LAYER);

    if ((rawDataModelView instanceof FitFunctionsOnRatioDataView) || (rawDataModelView instanceof FitFunctionsOnDownHoleRatioDataView)) {
        showLocalFitFunctionsCheckBox = new JCheckBox("local Fit Functions", false);
        showLocalFitFunctionsCheckBox.setBounds(2, 52, DEFAULT_WIDTH_OF_PANE - 2, 15);
        showLocalFitFunctionsCheckBox.setFont(checkBoxFont);
        showLocalFitFunctionsCheckBox.setSelected(tripoliFraction.isShowLocalInterceptFitPanel());
        showLocalFitFunctionsCheckBox.setBackground(this.getBackground());
        showLocalFitFunctionsCheckBox.addActionListener(//
                new ShowLocalInterceptFitFunctionsCheckBoxActionListener(tripoliFraction, sampleSessionDataView));
        add(showLocalFitFunctionsCheckBox, JLayeredPane.DEFAULT_LAYER);

        add(buttonForODChoiceFactory(68, "w/ OD", true), DEFAULT_LAYER);
        add(buttonForODChoiceFactory(88, "w/out OD", false), DEFAULT_LAYER);
        add(buttonForSelectAllFactory(68, "Select All"), DEFAULT_LAYER);
        add(buttonForReFitFactory(88, "ReFit Functions"), DEFAULT_LAYER);
    }

}
 
Example 20
Source File: AbstractDataMonitorView.java    From ET_Redux with Apache License 2.0 4 votes vote down vote up
/**
 *
 * @param inLiveMode the value of inLiveMode
 */
public void prepareConcordia(boolean inLiveMode) {

    if (concordiaGraphPanel != null) {
        this.remove(concordiaGraphPanel);
    }
    if (kwikiConcordiaToolBar != null) {
        this.remove(kwikiConcordiaToolBar);
    }

    if (savedCountOfFractions == 0) {
        concordiaGraphPanel = new ConcordiaGraphPanel(project.getSuperSample(), getuPbReduxFrame());

        ((ConcordiaGraphPanel) concordiaGraphPanel).setCurrentGraphAxesSetup(new GraphAxesSetup("C", 2));

        ((ConcordiaGraphPanel) concordiaGraphPanel).setShowTitleBox(false);

        ((ConcordiaGraphPanel) concordiaGraphPanel).//
                setYorkFitLine(null);
        ((ConcordiaGraphPanel) concordiaGraphPanel).//
                setFadedDeselectedFractions(true);

        project.getSuperSample().getSampleDateInterpretationGUISettings().//
                setConcordiaOptions(((ConcordiaPlotDisplayInterface) concordiaGraphPanel).getConcordiaOptions());
        probabilityChartOptions = project.getSuperSample().getSampleDateInterpretationGUISettings().getProbabilityChartOptions();

        ((ConcordiaGraphPanel) concordiaGraphPanel).//
                setFadedDeselectedFractions(false);

        ((ConcordiaGraphPanel) concordiaGraphPanel).setShowTightToEdges(true);

    }

    setConcordiaBounds(showSessions ? 725 : leftMargin + 135, showSessions ? 620 : 900, 625);

    kwikiConcordiaToolBar = new KwikiConcordiaToolBar(//
            940, topMargin + concordiaGraphPanel.getHeight() + topMargin + 50, concordiaGraphPanel, null);

    ((ConcordiaGraphPanel) concordiaGraphPanel).setSample(project.getSuperSample());
    ((ConcordiaGraphPanel) concordiaGraphPanel).setViewOptions();
    ((ConcordiaGraphPanel) concordiaGraphPanel).setShowBestDateDivider206_238(true);

    add(concordiaGraphPanel, javax.swing.JLayeredPane.DEFAULT_LAYER);

    try {
        Vector<ETFractionInterface> selectedFractions
                = project.getSuperSample().getFractions();

        ((AliquotDetailsDisplayInterface) concordiaGraphPanel).//
                setSelectedFractions(selectedFractions);
        ((PlottingDetailsDisplayInterface) concordiaGraphPanel).resetPanel(true, inLiveMode);
    } catch (Exception e) {
    }

    add(kwikiConcordiaToolBar, javax.swing.JLayeredPane.DEFAULT_LAYER);

    JCheckBox showFilteredFractions_checkbox = new JCheckBox();
    showFilteredFractions_checkbox.setFont(new java.awt.Font("SansSerif", 1, 10));
    showFilteredFractions_checkbox.setText("<html>Filtering ON<br> </html>");
    showFilteredFractions_checkbox.setBounds(leftMargin + 1075, topMargin + 660, 120, 25);
    showFilteredFractions_checkbox.setOpaque(true);
    showFilteredFractions_checkbox.setBackground(Color.white);
    showFilteredFractions_checkbox.addActionListener((java.awt.event.ActionEvent evt) -> {
        boolean state = ((AliquotDetailsDisplayInterface) concordiaGraphPanel).isShowFilteredEllipses();
        ((AliquotDetailsDisplayInterface) concordiaGraphPanel).setShowFilteredEllipses(!state);
        showFilteredFractions_checkbox.setSelected(!state);
        probabilityChartOptions.put("showFilteredEllipses", Boolean.toString(!state));
        concordiaGraphPanel.repaint();
    });

    if (probabilityChartOptions.containsKey("showFilteredEllipses")) {
        showFilteredFractions_checkbox.setSelected(Boolean.valueOf(probabilityChartOptions.get("showFilteredEllipses")));
        ((AliquotDetailsDisplayInterface) concordiaGraphPanel).setShowFilteredEllipses(showFilteredFractions_checkbox.isSelected());
    }

    this.add(showFilteredFractions_checkbox, LAYER_FIVE);

}