为什么label.gety()-10可以向上移动组件而不是向下移动?

发布于 2025-02-10 07:29:02 字数 1490 浏览 0 评论 0原文

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(1

稚气少女 2025-02-17 07:29:02

这是Java中容器的标准坐标布局。起源在左上。此外,当您指定组件的位置或绘制椭圆形或矩形等图形时,描述组件放置或图形的边界使用相同的坐标系。因此,一个圆将向下延伸,并从其指定的(x,y)位置向右延伸。

Here is the standard coordinate layout of containers in Java. The origin is at top left. Additionally, when you specify the location of a component or draw a figure such as an oval or rectangle, the bounds that describe the component placement or figure use the same coordinate system. So a circle would extend down and to the right from its specified (x,y) location.

enter image description here

~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文