本文整理了Java中javax.swing.JCheckBox.getMinimumSize()
方法的一些代码示例,展示了JCheckBox.getMinimumSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JCheckBox.getMinimumSize()
方法的具体详情如下:
包路径:javax.swing.JCheckBox
类名称:JCheckBox
方法名:getMinimumSize
暂无
代码示例来源:origin: JetBrains/jediterm
@Override
public Dimension getMinimumSize() {
Dimension size = super.getMinimumSize();
if (myAnchor != null && myAnchor != this) {
Dimension anchorSize = myAnchor.getMinimumSize();
size.width = Math.max(size.width, anchorSize.width);
size.height = Math.max(size.height, anchorSize.height);
}
return size;
}
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-remotefs-versioning-api
sorter.setColumnComparator(i, null);
if (col.equals(VCSCommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(VCSCommitTableModel.COLUMN_NAME_NAME)) {
sorter.setColumnComparator(i, null);
if (col.equals(VCSCommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(VCSCommitTableModel.COLUMN_NAME_NAME)) {
sorter.setColumnComparator(i, null);
if (col.equals(VCSCommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(VCSCommitTableModel.COLUMN_NAME_NAME)) {
代码示例来源:origin: org.netbeans.modules/org-netbeans-modules-mercurial
sorter.setColumnComparator(i, null);
if (col.equals(CommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(CommitTableModel.COLUMN_NAME_NAME)) {
sorter.setColumnComparator(i, null);
if (col.equals(CommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(CommitTableModel.COLUMN_NAME_NAME)) {
sorter.setColumnComparator(i, null);
if (col.equals(CommitTableModel.COLUMN_NAME_COMMIT)) {
columnModel.getColumn(i).setMinWidth(new JCheckBox().getMinimumSize().width);
columnModel.getColumn(i).setPreferredWidth(new JCheckBox().getPreferredSize().width);
} else if (col.equals(CommitTableModel.COLUMN_NAME_NAME)) {
内容来源于网络,如有侵权,请联系作者删除!