本文整理了Java中javax.swing.JTabbedPane.getBounds()
方法的一些代码示例,展示了JTabbedPane.getBounds()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.getBounds()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:getBounds
暂无
代码示例来源:origin: net.sf.ingenias/editor
protected void paintTabArea(Graphics g, int tabPlacement, int selectedIndex)
{
int tw = tabPane.getBounds().width;
g.setColor(fillColor);
g.fillRect(0, 0, tw, rects[0].height + 3);
super.paintTabArea(g, tabPlacement, selectedIndex);
}
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
/**
* Returns the screen bounds of the tab preview dialog window.
*
* @param tabPane
* Tabbed pane.
* @return Screen bounds of the preview dialog window of the specified
* tabbed pane.
*/
public Rectangle getPreviewDialogScreenBounds(JTabbedPane tabPane) {
Rectangle tabPaneBounds = tabPane.getBounds();
Point tabPaneScreenLoc = tabPane.getLocationOnScreen();
return new Rectangle(tabPaneScreenLoc.x, tabPaneScreenLoc.y,
tabPaneBounds.width, tabPaneBounds.height);
}
代码示例来源:origin: khuxtable/seaglass
Rectangle bounds = tabPane.getBounds();
Insets insets = tabPane.getInsets();
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
this.setBounds(2, tabAreaInsets.top, buttonSize, buttonSize);
else
this.setBounds(tabbedPane.getBounds().width
- tabAreaInsets.right - buttonSize - 2,
tabAreaInsets.top, buttonSize, buttonSize);
case SwingConstants.BOTTOM:
if (tabbedPane.getComponentOrientation().isLeftToRight())
this.setBounds(2, tabbedPane.getBounds().height
- tabAreaInsets.bottom - buttonSize - 4, buttonSize,
buttonSize);
else
this.setBounds(tabbedPane.getBounds().width
- tabAreaInsets.right - buttonSize - 2, tabbedPane
.getBounds().height
- tabAreaInsets.bottom - buttonSize - 4, buttonSize,
buttonSize);
break;
case SwingConstants.RIGHT:
this.setBounds(tabbedPane.getBounds().width - tabAreaInsets.right
- buttonSize - 2, tabAreaInsets.top - 1, buttonSize,
buttonSize);
代码示例来源:origin: com.fifesoft.rtext/fife.common
int cx, cy, cw, ch; // content area bounds
Insets contentInsets = getContentBorderInsets(tabPlacement);
Rectangle bounds = tabPane.getBounds();
int numChildren = tabPane.getComponentCount();
代码示例来源:origin: realXuJiang/bigtable-sql
static Rectangle getTabAreaBounds(JTabbedPane tabbedPane)
Rectangle tabbedRect = tabbedPane.getBounds();
代码示例来源:origin: net.sf.squirrel-sql/squirrel-sql
static Rectangle getTabAreaBounds(JTabbedPane tabbedPane)
Rectangle tabbedRect = tabbedPane.getBounds();
代码示例来源:origin: khuxtable/seaglass
Insets insets = tabPane.getInsets();
Insets tabAreaInsets = getTabAreaInsets(tabPlacement);
Rectangle bounds = tabPane.getBounds();
代码示例来源:origin: com.jtattoo/JTattoo
int cx, cy, cw, ch; // content area bounds
Insets contentInsets = getContentBorderInsets(tabPlacement);
Rectangle bounds = tabPane.getBounds();
int numChildren = tabPane.getComponentCount();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
int cx, cy, cw, ch; // content area bounds
Insets contentInsets= getContentBorderInsets(tabPlacement);
Rectangle bounds= tabPane.getBounds();
int numChildren= tabPane.getComponentCount();
代码示例来源:origin: com.jtattoo/JTattoo
Rectangle bounds = tabPane.getBounds();
int numChildren = tabPane.getComponentCount();
代码示例来源:origin: net.sf.squirrel-sql.thirdparty-non-maven/toniclf
Rectangle bounds= tabPane.getBounds();
int numChildren= tabPane.getComponentCount();
内容来源于网络,如有侵权,请联系作者删除!