Applet not appearing full

前端 未结 4 940
小蘑菇
小蘑菇 2020-11-30 15:16

I just created an applet

public class HomeApplet extends JApplet {

    private static final long serialVersionUID = -7650916407386219367L;

    //Called wh         


        
4条回答
  •  盖世英雄少女心
    2020-11-30 15:40

    JApplet is not window, so in java code you can't write japplet dimensions. You have to change run settings. I don't know where exactly are in other ide's, but in Eclipse you can change dimensions in Project Properties -> Run/Debug settings -> click on your launch configurations file (for me there were only 1 - main class) -> edit -> Parameters. There you can choose width and height for your applet. save changes and you are good to go

提交回复
热议问题