本文整理了Java中javax.swing.JTabbedPane.setLocation()
方法的一些代码示例,展示了JTabbedPane.setLocation()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JTabbedPane.setLocation()
方法的具体详情如下:
包路径:javax.swing.JTabbedPane
类名称:JTabbedPane
方法名:setLocation
暂无
代码示例来源:origin: de.tudarmstadt.ukp.wikipedia/de.tudarmstadt.ukp.wikipedia.revisionmachine
/**
* A call of this method should validate the positions of the panels
* components.
*/
@Override
public void relocate()
{
int w = 575, h = 330;
int x = (this.getWidth() - w) / 2;
int y = (this.getHeight() - h) / 2;
tabs.setLocation(x, y);
importButton.setLocation(x, y + 305);
verifyButton.setLocation(x + 195, y + 305);
exportButton.setLocation(x + 390, y + 305);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setTop(int aValue) {
if (super.getParent() != null && super.getParent().getLayout() instanceof MarginLayout) {
MarginLayout.ajustTop(this, aValue);
}
super.setLocation(getLeft(), aValue);
}
代码示例来源:origin: dkpro/dkpro-jwpl
/**
* A call of this method should validate the positions of the panels
* components.
*/
@Override
public void relocate()
{
int w = 575, h = 330;
int x = (this.getWidth() - w) / 2;
int y = (this.getHeight() - h) / 2;
tabs.setLocation(x, y);
importButton.setLocation(x, y + 305);
verifyButton.setLocation(x + 195, y + 305);
exportButton.setLocation(x + 390, y + 305);
}
代码示例来源:origin: com.eas.platypus/platypus-js-forms
@ScriptFunction
@Override
public void setLeft(int aValue) {
if (super.getParent() != null && super.getParent().getLayout() instanceof MarginLayout) {
MarginLayout.ajustLeft(this, aValue);
}
super.setLocation(aValue, getTop());
}
内容来源于网络,如有侵权,请联系作者删除!