javax.swing.JCheckBox.setAlignmentY()方法的使用及代码示例

x33g5p2x  于2022-01-21 转载在 其他  
字(1.7k)|赞(0)|评价(0)|浏览(140)

本文整理了Java中javax.swing.JCheckBox.setAlignmentY()方法的一些代码示例,展示了JCheckBox.setAlignmentY()的具体用法。这些代码示例主要来源于Github/Stackoverflow/Maven等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.setAlignmentY()方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:setAlignmentY

JCheckBox.setAlignmentY介绍

暂无

代码示例

代码示例来源:origin: dsukhoroslov/bagri

public CollectionPanel(Collection<String> collections) {
  super();
  setLayout(new BoxLayout(this, BoxLayout.Y_AXIS));
  for (String cln: collections) {
    JCheckBox cb = new JCheckBox(cln);
    cb.setAlignmentY(LEFT_ALIGNMENT);
    add(cb);
  }
  setPreferredSize(new Dimension(150, 300));
  setBorder(BorderFactory.createTitledBorder("choose collections to add documents into: "));
}

代码示例来源:origin: omegat-org/omegat

enabledCheckBox.setAlignmentY(0.0F);
add(enabledCheckBox);
add(filler1);
displaySourceCheckBox.setAlignmentY(0.0F);
optionsPanel.add(displaySourceCheckBox);
sortBySourceCheckBox.setAlignmentY(0.0F);
jPanel3.add(sortBySourceCheckBox);

代码示例来源:origin: omegat-org/omegat

lookupCheckBox.setAlignmentY(0.0F);
add(lookupCheckBox);

代码示例来源:origin: omegat-org/omegat

projectSpecificCB.setAlignmentY(0.0F);
projectSpecificCB.setHorizontalAlignment(javax.swing.SwingConstants.LEFT);
add(projectSpecificCB);
cbRemoveTags.setAlignmentY(0.0F);
add(cbRemoveTags);
cbRemoveSpacesNonseg.setAlignmentY(0.0F);
add(cbRemoveSpacesNonseg);
cbPreserveSpaces.setAlignmentY(0.0F);
add(cbPreserveSpaces);
cbIgnoreFileContext.setAlignmentY(0.0F);
add(cbIgnoreFileContext);

代码示例来源:origin: omegat-org/omegat

projectSpecificCB.setAlignmentY(0.0F);
mapPanel.add(projectSpecificCB);

代码示例来源:origin: SAMLRaider/SAMLRaider

chckbxCopyUnsupportedExtensions.setAlignmentY(Component.TOP_ALIGNMENT);
chckbxCopyUnsupportedExtensions.setSelected(true);
horizontalBox_4.add(chckbxCopyUnsupportedExtensions);

相关文章

JCheckBox类方法