如何让applet在最初的时候处于不可见状态? 急啊!!!!!!

dingdong1104 2003-10-25 10:52:27
如何让applet在最初的时候处于不可见状态?
我试着用setVisible(false),但是仍会出现这个Japplet,用this.getContentPane().setVisible(false)虽然其中的一些组件不可见了,可是这个Japplet的框架还出现,怎样才能成功的使得applet在最初的时候处于不可见状态?

非常感谢!
...全文
19 6 打赏 收藏 转发到动态 举报
写回复
用AI写文章
6 条回复
切换为时间正序
请发表友善的回复…
发表回复
dingdong1104 2003-10-25
  • 打赏
  • 举报
回复
声明我的applet 是从JApplet继承来的,所以我怎么试都不行,怎么办?
Yanbin_Q 2003-10-25
  • 打赏
  • 举报
回复
ie: style="display:none"
style="visibility:hidden"
style="visibility:visible"
ne: style="visibility:hide"
style="visibility:show"

只有display:none不会占位
可以设成width=0,height=0
sjdyr 2003-10-25
  • 打赏
  • 举报
回复
<Applet code=Clock2.class width=200 height=200 style="display:none"></Applet>
我的可以呀。。
dingdong1104 2003-10-25
  • 打赏
  • 举报
回复
</applet>

<applet
codebase = "../../usingratio1/classes"
code = "usingratio1.usingratio.class"
name = "usingratio"
width = "650"
height = "400"
style = "display:none"
hspace = "0"
vspace = "0"
align = "middle"
>
</applet>

楼上,我按这种style = "display:none" 做法不行啊!

dingdong1104 2003-10-25
  • 打赏
  • 举报
回复
楼上,我试了,不行啊
Yanbin_Q 2003-10-25
  • 打赏
  • 举报
回复
<applet width=20 height=20 style="display:none">
</applet>

上面的不可见。要放大再改变它的width和height

62,614

社区成员

发帖
与我相关
我的任务
社区描述
Java 2 Standard Edition
社区管理员
  • Java SE
加入社区
  • 近7日
  • 近30日
  • 至今
社区公告
暂无公告

试试用AI创作助手写篇文章吧