本文整理了Java中javax.swing.JComponent.getBaseline()
方法的一些代码示例,展示了JComponent.getBaseline()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JComponent.getBaseline()
方法的具体详情如下:
包路径:javax.swing.JComponent
类名称:JComponent
方法名:getBaseline
暂无
代码示例来源:origin: JetBrains/jediterm
@Override
public int getBaseline(int width, int height) {
super.getBaseline(width, height);
return getTextBaseLine(getFontMetrics(getFont()), height);
}
代码示例来源:origin: stackoverflow.com
popupMenu.setBorder(null);
popupMenu.add(list = createSuggestionList(position, subWord), BorderLayout.CENTER);
popupMenu.show(textarea, location.x, textarea.getBaseline(0, 0) + location.y);
代码示例来源:origin: stackoverflow.com
int baseline = label2.getBaseline(d.width, d.height);
label2.setAlignmentY(baseline/(float)d.height);
textPane.replaceSelection("\n\n"+s);
内容来源于网络,如有侵权,请联系作者删除!