java swing转android,如何转换Java Swing应用程序工作在Android

博主分享了将Java Swing程序转换为Android应用的经验。虽然没有直接的转换工具,但因为Java代码和Android代码相似,主要的区别在于Android使用XML布局。博主提到大部分Java类可以直接导入,UI部分需要调整为Android的XML界面。
摘要由CSDN通过智能技术生成

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.

解决方案

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.

  • 0
    点赞
  • 0
    收藏
    觉得还不错? 一键收藏
  • 0
    评论
评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值