javax.swing.JTabbedPane.getPreferredSize()方法的使用及代码示例

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

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

JTabbedPane.getPreferredSize介绍

暂无

代码示例

代码示例来源:origin: org.appdapter/org.appdapter.lib.gui

@Override public Dimension getPreferredChildSize() {
  synchronized (lock) {
    return tabs.getPreferredSize();
  }
}

代码示例来源:origin: org.appdapter/org.appdapter.lib.gui

@Override public Dimension getSize(DisplayType frame) {
  synchronized (lock) {
    return tabs.getPreferredSize();
  }
}

代码示例来源:origin: protegeproject/protege

public Dimension preferredLayoutSize(Container parent) {
  Insets insets = parent.getInsets();
  Dimension dim = tabbedPane.getPreferredSize();
  int totalWidth = insets.left + insets.right + 2 * dim.width + button.getPreferredSize().width;
  int totalHeight = insets.top + insets.bottom + dim.height;
  return new Dimension(totalWidth, totalHeight);
}

代码示例来源:origin: edu.stanford.protege/org.protege.editor.owl

public Dimension preferredLayoutSize(Container parent) {
  Insets insets = parent.getInsets();
  Dimension dim = tabbedPane.getPreferredSize();
  int totalWidth = insets.left + insets.right + 2 * dim.width + button.getPreferredSize().width;
  int totalHeight = insets.top + insets.bottom + dim.height;
  return new Dimension(totalWidth, totalHeight);
}

代码示例来源:origin: edu.stanford.protege/protege-editor-owl

public Dimension preferredLayoutSize(Container parent) {
  Insets insets = parent.getInsets();
  Dimension dim = tabbedPane.getPreferredSize();
  int totalWidth = insets.left + insets.right + 2 * dim.width + button.getPreferredSize().width;
  int totalHeight = insets.top + insets.bottom + dim.height;
  return new Dimension(totalWidth, totalHeight);
}

代码示例来源:origin: org.protege/protege-editor-owl

public Dimension preferredLayoutSize(Container parent) {
  Insets insets = parent.getInsets();
  Dimension dim = tabbedPane.getPreferredSize();
  int totalWidth = insets.left + insets.right + 2 * dim.width + button.getPreferredSize().width;
  int totalHeight = insets.top + insets.bottom + dim.height;
  return new Dimension(totalWidth, totalHeight);
}

代码示例来源:origin: LibraryOfCongress/bagger

public void addComponents(JTabbedPane tabs) {
 getContentPane().removeAll();
 getContentPane().add(tabs, BorderLayout.CENTER);
 setPreferredSize(tabs.getPreferredSize());
 pack();
}

相关文章

JTabbedPane类方法