How to convert a java swing application to work on android

后端 未结 5 512
鱼传尺愫
鱼传尺愫 2020-12-04 20:23

So I built a program in Java using swing for the interface and i didn\'t realize how difficult it would be to convert it to be used as an android application. Is there any w

5条回答
  •  情话喂你
    2020-12-04 20:32

    I did the same thing awhile back. Although there is no program out there that I know of to convert it directly. The Java code and the android code are very similar. Since android doesn't use swing's UI it uses XML based UI. once you get the UI functions of the android app down your Java code can be easily imported.

    I am working on converting my Java app into an android app now. Most of my classes imported with no problem.

提交回复
热议问题