This week's book giveaway is in the Jobs Discussion forum.
We're giving away four copies of Java Interview Guide and have Anthony DePalma on-line!
See this thread for details.
The moose likes Android and the fly likes Learn or skip Swing before turning to Android Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login

Win a copy of Java Interview Guide this week in the Jobs Discussion forum!
JavaRanch » Java Forums » Mobile » Android
Bookmark "Learn or skip Swing before turning to Android" Watch "Learn or skip Swing before turning to Android" New topic

Learn or skip Swing before turning to Android

Paulius Kukulskis

Joined: Dec 27, 2012
Posts: 10

Hi there! I am new to Java. Currently have read 1st half of "Head first Java" book. I am thinking of becoming an Android developer in the future. And here I am reading the beginning of an "Android cookbook"<...> which says: "Avoid any sections in any book that talk about topics: Swing, Applets, application entry point main(), J2ME/JavaME, Servlets//JSP, J2EE/JavaEE".
Since I am reading "Head first Java" and the chapter about SWING is coming pretty soon I have a natural question: shall I learn or skip SWING?

Joe Areeda
Ranch Hand

Joined: Apr 15, 2011
Posts: 331

Well the list of things to avoid you posted is a list of things that are not used in Android apps.

So if all you want to do with Java is write Android apps it's probably not worth the trouble. In fact learning Swing will just make you aware of some of the things missing in Android. Google has its own way of doing things and I don't mean to imply they are doing it wrong.


It's not what your program can do, it's what your users do with the program.
Paulius Kukulskis

Joined: Dec 27, 2012
Posts: 10

Joe, thank you for reply. I am still wondering why do they say to skip the previously mentioned chapters? Is SWING out of date? They don't want me to mix and get lost between two GUIs?

Karthik Jayachandran
Ranch Hand

Joined: Feb 18, 2009
Posts: 91

Swing API is mainly used for the GUI of Windowed/Applet Application. Whereas the Android may use a different set of GUI API. Most of the Java developers would have come across learning Swing API. In this case, the authors intend to say, if the reader is newbie, he can go back and learn some of the Swing basics, or skip them entirely and start learning the Android straight away.
Ulf Dittmer

Joined: Mar 22, 2005
Posts: 42965
Android does not use Swing at all. Swing is still the GUI of choice for Java applications, but learning it will do precisely nothing for your Android skills. It's not just that the API is different, it's an entirely different UI architecture; learning it will not make learning the Android UI any easier.
I agree. Here's the link:
subject: Learn or skip Swing before turning to Android
It's not a secret anymore!