问题描述
我知道Android使用的是Java而不是完全兼容的运行时库。在Android中创建UI与完全不同于普通的桌面Java完全不同。然而,在我看来这是一个非常愚蠢的事情,非常多的Java应用程序必须为Android重写(而不是仅稍微修改)。
I know that Android uses Java but not a fully compatible runtime library. Creating UIs in Android is done completely different than for normal Desktop Java. Nevertheless that's a really stupid thing in my opinion, very much Java applications out there have to be rewritten for Android (instead of modified only slightly).
所以我的问题:是有哪种(第三方)Swing-library可用于Android?是指包含Swing兼容类的Java包,以便只需稍微修改现有的Swing-Application?它当然不能100%兼容,但修改一些Android上不存在的东西比重写整个GUI部分要少得多......
So my question: is there some kind of (3rd party) Swing-library available for Android? Means a Java-package that contains Swing-compatible classes so that an existing Swing-Application has to be modified only slightly? It of course can't be 100% compatible but modifying some things that do not exist on Android is much less work than rewriting the whole GUI-part...
推荐答案
CodeNameOne?
CodeNameOne?
假设与Swing非常相似。
Supposed to be very similar to Swing.
根据我的经验,GWT有点类似于Swing。
Also, in my experience, GWT is somewhat similar to Swing.
其中任何一个都需要从Swing重写。
Either of these will require a rewrite from Swing though.
这篇关于适用于Android的Swing-Library?的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!