本文整理了Java中javax.swing.JCheckBox.getParent()
方法的一些代码示例,展示了JCheckBox.getParent()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.getParent()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:getParent
暂无
代码示例来源:origin: nativelibs4java/JavaCL
public void removeOpenGLComponents() {
configFromGLCheck.getParent().remove(configFromGLCheck);
awtRenderingCheck.getParent().remove(awtRenderingCheck);
invalidate();
}
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
private void addFeatureValueCheckBoxes() {
if (this.featureValueCheckBoxMap.size() == 0) {
return;
}
List<JCheckBox> checkBoxes = new ArrayList<JCheckBox>(this.featureValueCheckBoxMap.values());
Collections.sort(checkBoxes, new Comparator<JCheckBox>() {
public int compare(JCheckBox arg0, JCheckBox arg1) {
return arg0.getText().toLowerCase().compareTo(arg1.getText().toLowerCase());
}
});
for (JCheckBox checkBox : checkBoxes) {
if (checkBox.getParent() != this.featureValueCheckBoxVerticalScrollPanel &&
(checkBox.isSelected() || !this.hideUnselectedCheckBoxes)) {
this.featureValueCheckBoxVerticalScrollPanel.add(checkBox);
}
}
}
代码示例来源:origin: org.apache.uima/uimaj-tools
/**
* Adds the feature value check boxes.
*/
private void addFeatureValueCheckBoxes() {
if (this.featureValueCheckBoxMap.size() == 0) {
return;
}
List<JCheckBox> checkBoxes = new ArrayList<JCheckBox>(this.featureValueCheckBoxMap.values());
Collections.sort(checkBoxes, new Comparator<JCheckBox>() {
@Override
public int compare(JCheckBox arg0, JCheckBox arg1) {
return arg0.getText().toLowerCase().compareTo(arg1.getText().toLowerCase());
}
});
for (JCheckBox checkBox : checkBoxes) {
if (checkBox.getParent() != this.featureValueCheckBoxVerticalScrollPanel &&
(checkBox.isSelected() || !this.hideUnselectedCheckBoxes)) {
this.featureValueCheckBoxVerticalScrollPanel.add(checkBox);
}
}
}
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
if (typeCheckBox.getParent() == this.typeCheckBoxVerticalScrollPanel ||
(!typeCheckBox.isSelected() && this.hideUnselectedCheckBoxes)) {
continue;
代码示例来源:origin: org.apache.uima/uimaj-tools
if (typeCheckBox.getParent() == this.typeCheckBoxVerticalScrollPanel ||
(!typeCheckBox.isSelected() && this.hideUnselectedCheckBoxes)) {
continue;
代码示例来源:origin: inode-/AttackSelector
if (((JCheckBox) e.getSource()).getParent().getName() == "config_panel") {
int cur_row = scan_profile_table.getSelectedRow();
代码示例来源:origin: de.dfki.mary/marytts-builder
if (checkboxes[i].isSelected()) {
boolean success = false;
Container parent = checkboxes[i].getParent();
final JProgressBar progress = new JProgressBar();
final VoiceImportComponent oneComponent = components[i];
代码示例来源:origin: org.apache.uima/uimaj-tools
if (entityCheckBox.getParent() != this.entityCheckBoxVerticalScrollPanel &&
(entityCheckBox.isSelected() || !this.hideUnselectedCheckBoxes)) {
this.entityCheckBoxVerticalScrollPanel.add(entityCheckBox);
代码示例来源:origin: edu.utah.bmi.nlp/nlp-core
if (entityCheckBox.getParent() != this.entityCheckBoxVerticalScrollPanel &&
(entityCheckBox.isSelected() || !this.hideUnselectedCheckBoxes)) {
this.entityCheckBoxVerticalScrollPanel.add(entityCheckBox);
内容来源于网络,如有侵权,请联系作者删除!