Java Code Examples for javax.swing.JCheckBox#setSize()
The following examples show how to use
javax.swing.JCheckBox#setSize() .
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: DefaultOutlineCellRenderer.java From netbeans with Apache License 2.0 | 5 votes |
final JCheckBox createCheckBox() { JCheckBox cb = new JCheckBox(); cb.setSize(cb.getPreferredSize()); cb.setBorderPainted(false); cb.setOpaque(false); return cb; }
Example 2
Source File: bug8032667.java From dragonwell8_jdk with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 3
Source File: bug8032667.java From TencentKona-8 with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 4
Source File: bug8032667.java From jdk8u60 with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 5
Source File: bug8032667.java From openjdk-jdk8u with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 6
Source File: bug8032667.java From openjdk-jdk8u-backup with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 7
Source File: bug8032667.java From openjdk-jdk9 with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 8
Source File: bug8032667.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 9
Source File: bug8032667.java From hottub with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 10
Source File: bug8032667.java From jdk8u_jdk with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 11
Source File: MineralStandardUPbRatioViewEditable.java From ET_Redux with Apache License 2.0 | 4 votes |
/** * * * @param valueModel * @param dataEntryDetector the value of dataEntryDetector */ public MineralStandardUPbRatioViewEditable ( ValueModel valueModel, DataEntryDetectorInterface dataEntryDetector) { super( valueModel, dataEntryDetector ); measuredCheckBox = new JCheckBox(// "", ((MineralStandardUPbRatioModel) valueModel).isMeasured() ); measuredCheckBox.setEnabled( true ); 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 12
Source File: MineralStandardUPbRatioViewNotEditable.java From ET_Redux with Apache License 2.0 | 4 votes |
/** * * * @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 13
Source File: bug8032667.java From jdk8u-jdk with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }
Example 14
Source File: bug8032667.java From jdk8u-dev-jdk with GNU General Public License v2.0 | 4 votes |
static JCheckBox getCheckBox(String text, boolean selected) { JCheckBox checkBox = new JCheckBox(text); checkBox.setSelected(selected); checkBox.setSize(new Dimension(width, height)); return checkBox; }