setBounds
public void setBounds(int x,
int y,
int width,
int height)移动组件并调整其大小 。由 x 和 y 指定左上角的新位置,由 width 和 height 指定新的大小 。
参数:
x - 组件的新 x 坐标
y - 组件的新 y 坐标
width - 组件的新 width
height - 组件的新 height
button.setBonds(button.getBonds().getX(),button.getBonds().getY()-50,button.getBonds().getWidth
(),button.getBonds().getHeight())
button.getBonds().getY()-50, 就是向上移动坐标的关键
电脑开机进超级玛丽代码代码如下:#include#include#include#definehigh20#definelength500usingnamespacestd;introw=19 。
超级玛丽代码java的介绍就聊到这里吧,感谢你花时间阅读本站内容,更多关于超级玛丽代码大全、超级玛丽代码java的信息别忘了在本站进行查找喔 。
- 如何获取云服务器的源代码? 云服务器源代码怎么弄
- 如何设置云服务器的源代码? 云服务器源代码怎么设置
- 如何修改云服务器的源代码? 云服务器源码怎么修改
- 如何寻找云服务器的源代码? 云服务器源码怎么找
- 如何配置云服务器的源代码? 云服务器源码怎么设置
- redis哨兵keepalive 代码redis哨兵
- redis怎么写 redis打字代码
- mongodb开发 mongodb是开放源代码吗
- mysql生成器 mysql代码生成er图
- redis编程 redis代码案例
