gpt4 book ai didi

java - 在java中不设置控件

转载 作者:行者123 更新时间:2023-12-01 07:32:32 24 4
gpt4 key购买 nike

如何设置JFrame不会有任何控件(没有关闭、最小化、最大化),我记得一些装饰..?

最佳答案

参见public void setUndecorated(boolean undecorated)

Disables or enables decorations for this frame. This method can only be called while the frame is not displayable.

顺便说一句,说实话,我忘记了方法名称,但我刚刚在 google 中写了“从 JFrame 中删除按钮”并找到了答案。做一个很小的研究有时确实会有帮助。

关于java - 在java中不设置控件,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/16121716/

24 4 0
Copyright 2021 - 2024 cfsdn All Rights Reserved 蜀ICP备2022000587号
广告合作:1813099741@qq.com 6ren.com