如何转换Java Swing应用程序工作在Android应用程序、工作、Java、Swing

2023-09-04 11:06:37 作者:任半生嚣狂

所以我建立使用Swing的界面的Java程序,我没有意识到这将是多么困难的是将其转换为可以作为一个Android应用程序。有没有办法对我来说,很容易地转换或重建在Android市场上出售的计划?如果不是任何人都可以点我向所有的资源来帮助建立一个机器人。

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 way for me to easily convert or rebuilt the program to be sold in the android market place? If not can anyone point me toward any resources to help build a android.

推荐答案

我做了一段时间回来同样的事情。虽然目前还没有计划在那里,我知道它直接转换。 Java的code和Android code是非常相似的。由于Android没有使用Swing的用户界面,它使用基于XML的用户界面。一旦你的Andr​​oid应用程序的UI功能下你的Java code可以轻松导入。

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.

我的工作转换我的Java应用程序到Android应用程序了。我的大部分类的进口,没有问题。

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