Show .png image in a JFrame?

前端 未结 3 1759
不知归路
不知归路 2021-01-19 00:01

I am a little stuck. Why wont this work? I just get a error saying:

java.lang.NoSuchMethodError: main

Exception in thread "main"

<
3条回答
  •  小蘑菇
    小蘑菇 (楼主)
    2021-01-19 00:01

    Your main method should be:

    public static void main(String[] args)
    

提交回复
热议问题