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

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

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

JTabbedPane.getSize介绍

暂无

代码示例

代码示例来源:origin: cytoscape/application

public void stateChanged(ChangeEvent e){
    int width = PluginManageDialog.this.jTabbedPane1.getSize().width;
    
    if (PluginManageDialog.this.jTabbedPane1.getSelectedIndex() == 0){
      
      //PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 50));
      //PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 50));
      //PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 50));
      //PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 50));
    }
    else {
      //PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 150));
      //PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 150));
      //PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 150));
      //PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 150));
      
    }
    //PluginManageDialog.this.pack();
  }
}

代码示例来源:origin: org.cytoscape/plugin-impl

public void stateChanged(ChangeEvent e){
    int width = PluginManageDialog.this.jTabbedPane1.getSize().width;
    
    if (PluginManageDialog.this.jTabbedPane1.getSelectedIndex() == 0){
      
      PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 50));
      PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 50));
      PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 50));
      PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 50));
    }
    else {
      PluginManageDialog.this.jTabbedPane1.setMinimumSize(new Dimension(width, 150));
      PluginManageDialog.this.jTabbedPane1.setPreferredSize(new Dimension(width, 150));
      PluginManageDialog.this.pnlSearch.setPreferredSize(new Dimension(width, 150));
      PluginManageDialog.this.pnlSettings.setPreferredSize(new Dimension(width, 150));
      
    }
    PluginManageDialog.this.pack();
  }
}

代码示例来源:origin: com.fifesoft.rtext/fife.common

Dimension size = tabPane.getSize();
Insets insets = tabPane.getInsets();
Insets tabAreaInsets = getTabAreaInsets(tabPlacement);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

protected void calculateTabRects(int tabPlacement, int tabCount)
  Dimension size= tabPane.getSize();
  Insets insets= tabPane.getInsets();
  Insets tabAreaInsets= getTabAreaInsets(tabPlacement);

代码示例来源:origin: com.jtattoo/JTattoo

protected void calculateTabRects(int tabPlacement, int tabCount) {
  FontMetrics fm = getFontMetrics();
  Dimension size = tabPane.getSize();
  Insets insets = tabPane.getInsets();
  Insets tabAreaInsets = getTabAreaInsets(tabPlacement);

代码示例来源:origin: khuxtable/seaglass

flipRightToLeft(tabCount, tabPane.getSize());

代码示例来源:origin: com.jtattoo/JTattoo

protected void calculateTabRects(int tabPlacement, int tabCount) {
  FontMetrics fm = getFontMetrics();
  Dimension size = tabPane.getSize();
  Insets insets = tabPane.getInsets();
  Insets tabAreaInsets = getTabAreaInsets(tabPlacement);

代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf

protected void calculateTabRects(int tabPlacement, int tabCount)
  Dimension size= tabPane.getSize();
  Insets insets= tabPane.getInsets();
  Insets tabAreaInsets= getTabAreaInsets(tabPlacement);

相关文章

JTabbedPane类方法