How to convert a Swing Application to an Applet?

前端 未结 2 970
眼角桃花
眼角桃花 2021-01-19 17:57

I created a desktop application with Swing Application Framework, now how can I convert it to an applet? The main class extends SingleFrameApplication.

EDITED: This

2条回答
  •  陌清茗
    陌清茗 (楼主)
    2021-01-19 18:45

    Simplest thing is just to make a new outer class inheriting from JApplet, and instantiate the actual frame inside it.

    Update

    Found a tutorial online that could help.

提交回复
热议问题