Increasing Your Contacts With a Customized JavaFX Address Book
With the JavaFX technology it is easy to build your own customized JavaFX Address Book.
Understanding the Code
The code shown in Figure 1 creates JavaFX Address Book, which enables the user to easily use all contact details. The user can locate the contact list name on a real Yahoo map and send email to that contact. Thumbnail images are also supported in the contact list.
Source Code
public class ContactNode extends CustomNode {
public var name: String;
public var phone: String;
public var email: String;
public var location: String;
public var imageurl: String;
var xPos: Number;
public var yPos: Number;
public var visibility: Boolean = false;
.......
Figure 1: ContactNode.fx Class
Changing data member information such as a phone number or a location (zip code) is easy in Main.fx
Source Code
var names: String[] = ["Tom Timy J","Ken Keny","Tony Gony","Tom Jery A","Mac Max","Master Roso","John Jim","Jack Jug","Harry Larry","Stony Star"]; var phone_no: String[] = ["967589568", "234545", "458947", "98800342", "43589745","340597345","967589568","456756867","454566867","5679780756"]; var emailID: String[] = ["contact_0@sun.com", "contact_1@sun.com", "contact_2@sun.com", "contact_3@sun.com", "contact_4@sun.com","contact_5@sun.com","contact_6@sun.com","contact_7@sun.com","contact_8@sun.com","contact_9@sun.com"]; var location:String[] = ["10001","10002","10003","10004","10005","10006","10001","10002","10003","10004"]; var image:String[] = ["0.png","1.png","2.png","3.png","4.png","5.png","6.png","7.png","8.png","9.png"];
Figure 2: Changing Contact Details
Figure 4: Screen Capture of AddressBook
Figure 4: Real Map navigation
