Skip to main content

Posts

Showing posts from 2014

A guide for beginners. How to setup Android SDK?

Setting up the SDK Hi guys, I prepared this pdf some time ago for a workshop at my university. It is only about setting up the Android SDK. You can see step-by-step instructions on how to set up your environment to start developing Android. If you are new to Android then it's really nice for you. I'm too lazy to type a whole new post about it so just download the pdf in the link below. ;) In the document, I've used ADT bundle which includes Android SDK and Eclipse IDE. But you can try it out with Android studio as well. I highly  recommend using Android studio because it is developed from IntelliJ Idea IDE and comes with cool new features. Link to PDF

Taking care of user inputs: Using jFormattedTextFields

When developing an application, it is critical to validate the user inputs. In order to give the right output the right input should be given. But the users don't always provide the right inputs as we expect, the right design should have the ability to deal with all kinds of bizarre inputs that user might give in. One way to handle them is validating the given inputs before we process it. But it is better to limiting the user to type something we don't expect. In Java swing we can use formatted text fields for this task. This is a quick tutorial for jFormattedTextFields using Netbeans. This will be enough to get it done, and I won't go more details on it. Formatted text field is very similar to the simple jTextField but we can set a format that it would only accept as an input. Therefor user will not be able to type anything else other than the given format. First let's look doing that easily using Netbeans IDE. Netbeans provides jFormattedTextField in the