Example usage for javax.swing JCheckBox setFocusPainted

List of usage examples for javax.swing JCheckBox setFocusPainted

Introduction

In this page you can find the example usage for javax.swing JCheckBox setFocusPainted.

Prototype

@BeanProperty(visualUpdate = true, description = "Whether focus should be painted")
public void setFocusPainted(boolean b) 

Source Link

Document

Sets the paintFocus property, which must be true for the focus state to be painted.

Usage

From source file:org.forester.archaeopteryx.ControlPanel.java

void addJCheckBox(final JCheckBox jcb, final JPanel p) {
    jcb.setFocusPainted(false);
    jcb.setFont(ControlPanel.jcb_font);/*from   w  w  w. j av a 2 s.c  om*/
    if (!_configuration.isUseNativeUI()) {
        jcb.setBackground(ControlPanel.jcb_background_color);
        jcb.setForeground(ControlPanel.jcb_text_color);
    }
    p.add(jcb, "Center");
    jcb.addActionListener(this);
}

From source file:org.forester.archaeopteryx.ControlPanel.java

void addSecondLevelJCheckBox(final JCheckBox jcb, final JPanel p) {
    jcb.setFocusPainted(false);
    jcb.setFont(ControlPanel.jcb_font);/*from   w w w .j  av a  2  s  . c o m*/
    if (!_configuration.isUseNativeUI()) {
        jcb.setBackground(ControlPanel.jcb_background_color);
        jcb.setForeground(ControlPanel.jcb_text_color);
    }
    Box box = Box.createHorizontalBox();
    p.setBackground(background_color);
    box.add(Box.createRigidArea(new Dimension(12, 0)));
    jcb.setVisible(_color_branches_cb.isSelected());
    box.add(jcb);
    p.add(box, "Center");
    jcb.addActionListener(this);
}

From source file:org.forester.archaeopteryx.ControlPanel.java

void addSecondLevelJCheckBoxWithSlider(final JCheckBox jcb, final JPanel p) {
    jcb.setFocusPainted(false);
    jcb.setFont(ControlPanel.jcb_font);//from ww w  .  j  a  v a 2 s  .  co  m
    if (!_configuration.isUseNativeUI()) {
        jcb.setBackground(ControlPanel.jcb_background_color);
        jcb.setForeground(ControlPanel.jcb_text_color);
    }
    Box box = Box.createHorizontalBox();
    p.setBackground(background_color);
    box.add(Box.createRigidArea(new Dimension(12, 0)));
    jcb.setVisible(_color_branches_cb.isSelected());
    box.add(jcb);
    buildJSlider(60, _slider_min, _slider_max);
    getColorBranchesEdplSlider().setVisible(_color_branches_cb.isSelected());
    getColorBranchesEdplSlider().setEnabled(_color_branches_edpl.isSelected());
    box.add(getColorBranchesEdplSlider());
    p.add(box, "Center");
    jcb.addActionListener(this);
}