jQuery in Action, 3rd edition
The moose likes Android and the fly likes Swing or SWT with Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Mobile » Android
Bookmark "Swing or SWT with Android" Watch "Swing or SWT with Android" New topic

Swing or SWT with Android

Mike Purdy

Joined: Mar 11, 2009
Posts: 2
Ed, or anyone who may know

Does the Android SDK allow developers to leverage Swing or SWT for the GUI of apps? I'm assuming "no" for SWT since I do not believe there is an SWT port for Android, but Swing would still be interesting for a GUI.

Jake Reynolds

Joined: Mar 10, 2009
Posts: 12
It's neither, really. I haven't built anything on Android other than a lot of example code, but the UI is all custom, and centered around an API that makes it easy to write for the limited and varying screen space mobile devices provide. I found the XML GUI build system much easier to understand and work with than swing.

Fred Grott
Ranch Hand

Joined: Oct 05, 2002
Posts: 346
There is a move by Eclipse to do a eRCP on Android which I assume also means SWt but that project is only proposed at this time..no code yet

MobileBytes blog - Sharing Technology - My Programming Knols
Ed Burnette
Ranch Hand

Joined: Jun 10, 2003
Posts: 142
Does the Android SDK allow developers to leverage Swing or SWT for the GUI of apps?

No, but Sun has demoed JavaFX running on Android. There's no telling when/if that will be available for real.

See also this thread:

Ed Burnette, Author of Hello Android
Blog: ZDNet's Dev Connection - Twitter: @eburnette
Mike Purdy

Joined: Mar 11, 2009
Posts: 2
Thank you all for your responses. So, I can begin experimenting with the SDK since it provides its own GUI framework. And an added bonus of other GUI toolkits possible in the future certainly makes things interesting. It would just really be nice to leverage an existing codebase from the Java world for Android development.

Alex Kalinovsky

Joined: Apr 08, 2004
Posts: 2
If you have used Swing and you want to leverage existing codebase for Android UI development, you should check out AjaxSwing. HTML5 is quickly becoming the standard for building most of mobile apps and with AjaxSwing you can turn your existing desktop application into a iPad/iPhone/Android app. See http://www.creamtec.com/products/ajaxswing/solutions/java_swing_ui_on_ipad.html
I agree. Here's the link: http://aspose.com/file-tools
subject: Swing or SWT with Android
It's not a secret anymore!