本文整理了Java中javax.swing.JTabbedPane.getSize()
方法的一些代码示例,展示了JTabbedPane.getSize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.getSize()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称: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);
内容来源于网络,如有侵权,请联系作者删除!