How to set size of applet?

前端 未结 1 1072
你的背包
你的背包 2021-01-26 00:16

I have written a little test applet and start the applet via Eclipse appletviewer. I have noted tag at the begginig of the code, but appletviewer doesn\'t see it. It starts t

相关标签:
1条回答
  • 2021-01-26 00:34

    You can change it in Run Configurations in Eclipse:

    Run -> Run Configurations -> Java Applet -> New Configuration. the default size can be changed in the Parameters tab.

    Note that this is only for testing and the actual applet your user sees is depends on how the applet is launched for them (Which is done typically via a <applet>, <object> or <embed> tags in a webpage. all of these tags support size attributes.)

    enter image description here

    0 讨论(0)
提交回复
热议问题