本文整理了Java中javax.swing.JLabel.getY()
方法的一些代码示例,展示了JLabel.getY()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。JLabel.getY()
方法的具体详情如下:
包路径:javax.swing.JLabel
类名称:JLabel
方法名:getY
暂无
代码示例来源:origin: stackoverflow.com
public boolean intersects(JLabel testa, JLabel testb){
Rectangle rectB = testb.getBounds();
Rectangle result = SwingUtilities.computeIntersection(testa.getX(), testa.getY(), testa.getWidth(), testa.getHeight(), rectB);
return (result.getWidth() > 0 && result.getHeight() > 0);
}
代码示例来源:origin: stackoverflow.com
int deltaX = e.getX() - mousePressedPoint.x;
int deltaY = e.getY() - mousePressedPoint.y;
label.setLocation(label.getX() + deltaX, label.getY() + deltaY);
代码示例来源:origin: org.gosu-lang.gosu/gosu-lab
public void paintComponent( Graphics g )
{
_image.paintIcon( this, g, getInsets().left, getInsets().top );
g.translate( _label.getX(), _label.getY() );
_label.paint( g );
}
代码示例来源:origin: stackoverflow.com
int y = character.getY() + ((character.getHeight() - fireBall.getHeight()) / 2);
fireBall.setLocation(x, y);
代码示例来源:origin: net.java.dev.laf-widget/laf-widget
tempLabel.setFont(tChild.titleLabel.getFont());
int bdx = tempLabel.getX();
int bdy = tempLabel.getY();
bGraphics.translate(bdx, bdy);
tempLabel.paint(bGraphics);
代码示例来源:origin: org.gephi/ui-components
y = Math.max(y, mainImageLabel.getY()
+ mainImageLabel.getHeight());
代码示例来源:origin: com.github.insubstantial/flamingo
y = Math.max(y, mainImageLabel.getY()
+ mainImageLabel.getHeight());
内容来源于网络,如有侵权,请联系作者删除!