Posts

Create New Android Project - Eclipse

Image
This is a tutorial of creating new android project from Eclipse tools. Note : If your eclipse dont have Android project, then you need to follow step by step here to install android plugin for eclipse . Install Android Plugin - Eclipse Eclipse From the Eclipse main menu, choose File >> New >> Project.; and this will bring up a list of project types to choose from. Fold open the Android option and click on Android Project: Press Next to advance the wizard to the main Android project page: Fill in the following:  The name of the project (e.g., Now) The Android SDK you wish to compile against (e.g., Google APIs for Android 2.3) The name of the Java package in which this project goes (e.g: com.commonsware.android.skeleton) The name of the initial activity to create (e.g., Now) At this point, clicking Finish will create your Eclipse project. Reference : Android Programming Tutorials, 3rd Edition By Mohd Zulkamal NOTE : – If You have Found this post Helpful, I will apprecia...

Java - Calculator Example

Image
This post will show how to create Calculator Application using Java langguage. This is only an example, you can add some feature into this example such as sin,cos,tan expression. Note : This example using netbean v 7.4 Step By Step Create New Project Choose Java Application Rename Project Name to Calculator Delete file Calculator.java Add New JFrame Form under package calculator and change class Name to CalcMainUI Drag and drop java Swing controller into frame. Refer CalcMainUIbelow. ( Note : you can change the position of button as you like). Create Java class . calculateClass.java CalcMainUI Code behind package calculator; import java.math.BigDecimal; import javax.swing.JOptionPane; /**  *  * @author developersnote  */ public class CalcMainUI extends javax.swing.JFrame {     /**      * Creates new form CalcMainUI      */     public CalcMainUI() {         initComponen...

Phone book application example - Java

Image
This post will show one example of a PhoneBook Application developed using Java language. All of the contacts will be store into a .txt file without using the database. This is an example only. You can change the layout or add some features to this example. Note: This tutorial using Netbean v 7.4 Step by step: Create a New Project and choose Java Application Rename Project Name to PhoneContact Delete file PhoneContact.java Add New JFrame Form under package phonecontact and change class Name to MainUI Drag and drop java Swing controller into frame. Refer MainUI below. ( Note: you can change the position of button as you like)   Add new JFrame Form under package phonecontact and change class name to AddEditForm. Drag and drop java sing controller into frame, Refer AddEditForm image below. Create 2 Java Class. Contact.java and ContactsUtility.java. Copy paste the code behind of each java class and frame.   MainUI code behind  import java.awt.event.WindowAdapter; import java...