Stubborn month of birth in Finnish Address Book

Hello
I (and other Finnish users) are having problems with the birthday field in Address Book. Whatever I try to enter - the month is always the current month (April at the moment). The day and year of birth are recorded properly. When I enter the date the month is displayed correctly (in text format) as long as I have the record open for editing, but when I close the record it changes to the current month. I have tried with various standard and custom date formats, entering the date in different formats to no avail.
Is there a workaround?
I first run into this problem in 10.3. and now I am running 10.4.6 without any progress. Is there a way to report localization bugs?
Cheers
Petri

Thanks for the link. I don't think it's a space issue. When I look at my iCloud account through System Preferences it shows that I've got 24.99GB of 25GB available (it's just the Contacts and a personal Calendar).
The rules on limits, though, are really confusing. Total number of contacts 25,000 - I can understand that. Maximum size of a contact card 256KB - ok, I see how if you have War and Peace in the notes section that would be a problem. But what does it mean that maximum size of a contact group is 256KB? That's the same size limit as a single card so I assume they're referring to the size of the list of contact cards in the group. But how many contact cards equals 224KB?!? Based on experience, I'm guessing it equals about 3,800 contact names (which frankly doesn't seem like a lot to me - I've been collecting contacts since I got my first Palm Pilot in 1996, which comes to around 225 names a year, not a lot if you're in business).
Anyway, thanks for the help. If I run across a solution somewhere, I'll post it.

Similar Messages

  • Display of Birth Year in Address Book

    I keep most of my contacts in Gmail and I keep each contact's birthday, without the year. So instead of September 1, 1980 - I just have it display as September 1.
    I recently imported all these contacts into Address Book using vCards - address book then placed the year 1970 for every contact.
    I have tried to go in and remove the year, but it keeps auto populating 1970.
    Does anyone know how to remove the year entirely from the birthday field in address book?

    Hi muyestrano, and a warm welcome to the forums!
    I'm thinking you have to make a new Text field for that incomplete Birthday, then use Address Book Importer...
    http://homepage.mac.com/sroy/addressbookimporter
    to direct that field to the new one rather than Birthday.

  • Dates all show up as 5th of month in mail and address book.  Why?

    In my address book and mail, all dates (birthdays, date received/sent, etc) show up as the 5th of whatever month. In address book, I can see the correct date if I go to "edit" and then click on the date as if I'm going to edit it, but that gets a bit old. In mail, however, I can't see what date an email was sent or received - they all say 5 (example: January 5, 2011 shows up for everything I've sent and received so far this year).
    Is anyone else having this problem?

    Yes - just noticed your post when I asked the same question a moment ago. I have this problem on my I-Mac but not on my MacBook. Did you get an answer?

  • A few months ago, my G5 started up with the address book and mail opened at startup. They are not in startup items, and I cannot get this to stop. Any suggestions?

    A few months ago, my power mac G5 began starting up with the address book and mail already open on the desk top.
    Neither of these is in my startup items, so I am at a loss as to stop this behavior.
    Any suggestions?

    Are they in Login items under System Preferences/Users/Login Items?
    In the Dock, right click the Address Book and Mail icons, select Options, and make sure "Open at Login" is not selected.

  • One of my address book birthdays wont show up in iCal

    Every birthday I've inputed into my address book appears on my birthdays calendar in iCal, except my father's. A few days ago, I noticed that my father's birthday was listed on the wrong day in iCal, so I opened my address book to check it out, but it was correct in the address book. I tried changing the birth year, and that caused my father's birthday entry to disappear entirely from iCal.
    Does anybody have any advice on getting it to work properly?
    Edit: I've just tried playing around with the date in the address book, When I change the year to 0001, his birthday shows up in iCal on 8/22, though it's inputed in address book on 8/24. This two-day discrepancy is the same no matter what day of the month I input (ex. 8/26/0001 in address book shows up as 8/24 in iCal)
    Message was edited by: Bill Buchanan

    I'm having this exact same problem, but it's doing it with a bunch of birthdays. I also did 0001 when I didn't know the birth year, so I went back and did a more current year, but they still aren't showing up where they should be...or at all. It's completely bizarre.

  • Address Book Sync Overtaking my RAM

    For a while now I have had issues with Address Book / Contacts on my Macbook (2011, 13" 2.8 GHz / 4gb RAM). I keep a large number of contacts (2,500-3,500 - it's lower these days) that I need to have access to on my other devices, so I realize that may be part of the issue. However, Apple has always maintained that it is built to hold more and that would not be the issue.
    What seems to be the problem is when I make changes, deleting a contact typically or just making an edit on one, the sync then begins for iCloud and it inevitably freezes up my computer and absorbs most of the RAM. I realize the 4GB can be upgraded to 8 (which I am doing next week), but as someone who uses Address Book for a big part of my Apple products use, I am confused why it always takes so much memory that it prevents from doing anything else. I don't want to disable the sync, as that would keep them from updating on my phone and computer, I email from both devices daily.
    Is there a setting or option (I have looked for months and found nothing) to change the sync to happen every 5 minutes instead of instantly? Or just any other preventative measures I can try? It doesn't seem to matter that I have done a clean install on my Macbook and yesterday had the logic board and hard disk replaced under Apple care and still, after everything else running smooth, Address Book freezes up.

    Thank you Julian, I think your idea might end up in a solution.
    Even though my phone (Nokia 6230) doesn't have the "Send all contacts" option, I tried to send an individual vCard for testing purposes: the address book accepted it with arms wide open (like that silly Creed song). Because I'm stubborn, I tried to sync my phone with my one-contact address book and ended up with two different people on my phone with exactly the same name and number (along with everybody else fortunately...).
    I'm guessing if I do this for the WHOLE cell phone contact list, I'll have an address book on my mac by Christmas eve . I'll mark this question as answered when I'm done doing this and follow the rest of your advice.
    This raises two important questions:
    - What happened in the first place?
    - Is Apple going to develop a more complete syncing software where weird things such as these do not happen?
    Any thoughts on these issues? It really annoys me when I don't understand what's wrong with the equipment I use...
    Thank you for your time and patience.
    João

  • Address Book always chooses 5th for birthdate to display

    Hi,
    I use MobileMe to sync my iMac at home and my MBP at work, as well as my iPhone. All work fine, except recently the MBP. In the Address Book for it, when I type a birth date for a contact, regardless of what I type, the day portion of the field always becomes 05 (i.e. 5th) when I leave the field and/or finish editing the contact. The month and year info is correct and remains what I type it to be, but the day does not. If I click back in the field, it shows the day I typed but if I click out of it again, it goes back to the 5th. MobileMe, the iMac and iPhone all display the correct day in all cases but the MBP shows every contact with a birthday to be the 5th, although month and year are correct. Has this happened to anyone else and/or does anyone have any suggestions? Thanks!

    hmm, just to completely eliminate syncing problem turn off syncing on that computer and reset the sync folder. make sure AB is not running at the time.
    http://support.apple.com/kb/TS1627
    then delete the AB database file again, start AB and and see if it works. also, do the dates display correctly in finder when you view modified and created times for files?

  • Claws-Mail - Importing Thunderbird Address Book

    I am trying to import my Thunderbird address book into claws-mail, using the csv2addressbook.pl script provided by claws mail. However, the script fails with the error message:
    ERROR:
    Invalid field count!
    Problem with your exported CSV file
    The problem seems to be caused by the fields listed in the csv file
    First Name,Last Name,Display Name,Nickname,Primary Email,Secondary Email,Screen Name,Work Phone,Home Phone,Fax Number,Pager Number,Mobile Number,Home Address,Home Address 2,Home City,Home County,Home Post Code,Home Country,Work Address,Work Address 2,Work City,Work County,Work Post Code,Work Country,Job Title,Department,Organisation,Web Page 1,Web Page 2,Birth Year,Birth Month,Birth Day,Custom 1,Custom 2,Custom 3,Custom 4,Notes,
      being different from those in the script
    'First Name','Last Name','Display Name','Nickname','Primary Email','Secondary Email','Work Phone','Home Phone','Fax Number','Pager Number','Mobile Number','Home Address','Home Address 2','Home City','Home State','Home ZipCode','Home Country','Work Address','Work Address 2','Work City','Work State','Work ZipCode','Work Country','Job Title','Department','Organization','Web Page 1','Web Page 2','Birth Year','Birth Month','Birth Day','Custom 1','Custom 2','Custom 3','Custom 4','Notes','junk'
    I have tried changing them in both files so that they match, but I still get the same problem. I'm afraid that is the limit of my programming knowledge, so I would very much appreciate some help with this.
    Thanks in advance
    Last edited by myrlin (2012-01-25 15:02:51)

    I have not tried this yet because I might have an overlap of contact information from thunderbird with that that is in adress book. Will it mix them up?

  • Address Book for GroupWise 8

    Hello! The accounting firm I work for just upgraded to Version 8 of Groupwise and now the year seems to have been removed from all of our client's birthdays in Address Book. This is located under "Details" and "Personal" section. There is a space for the month and day, and then there is simply a calendar icon to the right of that which just takes me to my own calendar.
    We really need the Date of Birth of all our clients (not just the month and day).
    Can you please assist us? Thank you.

    Your welcome. We both learnt soemthing.
    Dave
    Originally Posted by Kathyvierra55
    Wow, thanks, Dave. I added my my input to that thread. At least I know it's not just me.
    Kathy

  • Address book .... importing text file

    I am designing an address book which opens a text file called AddressBook.txt which reads in the information in the following format:
    lastname,firstname,street,city,state,zip,phonenumber,birthday,persontype
    lastname2,firstname2,street2,city2,state2,zip2,phonenumber2,birthday2,persontype2
    etc. (with a maximum entries of 500)
    I am having a problem reading in the information without the commas and wrapping to the next line. I can either use the BufferedReader or Scanner to input the file and as you can see below, my code is not complete yet. I can't figure out how to code the storeAddress() method in order to get the addressBookEntries[] to include the necessary information for outputting, sorting, etc. If I can get the information read into the addressBookEntries[], I think I will probably be able to proceed in the rest of the required tasks (i.e. sorting by last name, searching by last name, etc.)
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    *  @created September 14, 2004
    *  This program uses a JFrame to manipulate data and form an
    *  address book.  The user will be able to load data from a file,
    *  sort it by last name, print the address, phone number, and date
    *  of birth, print the names of people whos birthday are between 2
    *  dates, print the names of people between 2 last names, and/or
    *  print the names of different person types.
    public class AddressBook extends JPanel implements ActionListener{
        JFrame frame;
        final int numButtons = 7;
        JRadioButton[] radioButtons = new JRadioButton[numButtons];
        JButton process = new JButton("Process Request");
        JLabel title;
        JTextArea output = new JTextArea(30,50);
        int MAX_ADDRESS_ENTRIES = 500;
        AddressBookEntry addressBookEntries[] =
            new AddressBookEntry[MAX_ADDRESS_ENTRIES];
        String FILE_NAME="AddressBook.txt";
        public AddressBook(JFrame frame){
            super(new BorderLayout());
            this.frame=frame;
            JPanel choicePanel = createSimpleDialogBox();
            choicePanel.setBorder(BorderFactory.createTitledBorder("Choices" +
            " to choose from:"));
            title = new JLabel("<html><h2> Thank you for opening the " +
            "Address Book.  " +
            "Please Press the \"Process Request\" " +
            "after making a choice.</h2></html>\n",JLabel.CENTER);
            title.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
            output.setEditable(false);
            add(title, BorderLayout.NORTH);
            add(choicePanel, BorderLayout.CENTER);
            add(output, BorderLayout.SOUTH);
            final ButtonGroup group = new ButtonGroup();
            final String saveCommand = "Save";
            final String sortByLN = "Sort by Last Name";
            final String searchLNCommand = "Search By Last Name";
            final String printAPD = "Print address, phone number, and DOB";
            final String printNamesDOB = "Print names of people whose birthday" +
            " falls between 2 dates";
            final String printNamesLN = "Print names of people who fall" +
            " between 2 last names";
            final String printPType = "Print all family members, friends, or" +
            " business associates";
        private JPanel createSimpleDialogBox(){
            radioButtons[0] = new JRadioButton(
              "<html>Save the address file</html>");
            radioButtons[0].setActionCommand(saveCommand);
            radioButtons[1] = new JRadioButton(
              "<html>Sort the address file by last name</html>");
            radioButtons[1].setActionCommand(sortByLN);
            radioButtons[2] = new JRadioButton(
              "<html>Search the address file by last name</html>");
            radioButtons[2].setActionCommand(searchLNCommand);
            radioButtons[3] = new JRadioButton(
              "<html>Print the address, phone number, and DOB of a specified" +
              " person</html>");
            radioButtons[3].setActionCommand(printAPD);
            radioButtons[4] = new JRadioButton(
              "<html>Print the names of people whose birthday falls between" +
              " two dates</html>");
            radioButtons[4].setActionCommand(printNamesDOB);
            radioButtons[5] = new JRadioButton(
              "<html>Print the names of people who fall between two" +
              " specified last names</html>");
            radioButtons[5].setActionCommand(printNamesLN);
            radioButtons[6] = new JRadioButton(
              "<html>Print all family members, friends, <u>OR</u>" +
              " business associates</html>");
            radioButtons[6].setActionCommand(printPType);
            for (int i=0; i<numButtons; i++){
                group.add(radioButtons);
    //set the first button (open file) to be selected
    radioButtons[0].setSelected(true);
    return createPane(radioButtons, process);
    private JPanel createPane(JRadioButton[] radioButtons,
    JButton showButton) {
    int numChoices = radioButtons.length;
    JPanel box = new JPanel();
    box.setLayout(new BoxLayout(box, BoxLayout.PAGE_AXIS));
    for (int i = 0; i < numChoices; i++) {
    box.add(radioButtons[i]);
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(box, BorderLayout.NORTH);
    pane.add(showButton, BorderLayout.SOUTH);
    return pane;
    public void actionPerformed(ActionEvent e) {
    String command = group.getSelection().getActionCommand();
    //else if button pushed is save
    if (command == saveCommand){
    // save file
    //else if button pushed is search by last name
    else if (command == sortByLN){
    // search by last name
    //else if button pushed is sort by last name
    else if (command == searchLNCommand){
    // sort by last name
    // print to screen
    //else if button pushed is display address, ph#, dob
    else if (command == printAPD){
    // display "search by last name" dialog
    // search last names
    // if last name found
    // print data
    // else
    // print error notification "person not found"
    //else if button pushed is list names of people whose
    //bday between 2 days
    else if (command == printNamesDOB){
    // ask for which dates
    // search bday
    // print to screen
    //else if button pushed is print names of people between 2 last names
    else if (command == printNamesDOB){
    // ask for which two last names
    // search last names
    // if people found
    // print to screen
    //else
    //print error notification "no one found"
    //else if button pushed is print all family members, friends
    //or business associates
    else if (command == printPType){
    //ask for what person type
    //search person types
    //if people found
    //print to screen
    //else print "no one found"
    public void storeAddress(File addressFile){
         Scanner sc=null;
    String lname,fname,street,city,state,zip,phone,persontype,bday;
    try {
    // Delimiters specifiy where to parse tokens in a scanner
    sc = new Scanner(addressFile).useDelimiter("\\s*[\\p{,}*\\s+]\\s*");
    catch (FileNotFoundException fnfe) {
         JOptionPane.showMessageDialog(this,"Could not open the file");
    System.exit(-1);
    for(int i=0; i<MAX_ADDRESS_ENTRIES; i++){
         while (sc.hasNext()) {
    lname=(sc.next());
         if (!lname.equals("")){
         addressBookEntries[i].setLName()=lname;
    public class AddressBookEntry{
    private extPerson address;
    private String date;
    private extPerson ExtPerson;
    public class Person{
    protected String lastName, firstName;
    private String address;
    private String city;
    private String state;
    private String zipcode;
    private String homephone;
    private String extPersonType;
    private Date bday;
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-DD");
    public String toString() {
    return lastName+" "+firstName;
    public void setLName(String last) {
    lastName=last;
    public void setFName(String first){
    firstName=first;
    public String getLastName() {
    return lastName;
    public String getFirstName() {
    return lastName;
    public Person() {
    lastName="";
    firstName="";
    public Person(String first, String last){
    setLName(last);
    setFName(first);
    //Set the address and return it
    public void setAddress( String addr ){
    address = addr;
    public String getAddress(){
    return address;
    //set the city and return it
    public void setCity( String town ){
    city = town;
    public String getCity(){
    return city;
    //set the state and return it
    public void setState( String st )
    state = st;
    public String getState()
    return state;
    //Set the zip code and return it
    public void setZipCode( String zip ){
    zipcode = zip;
    public String getZipCode(){
    return zipcode;
    //Set the home phone and return it
    public void setHomePhone( String homeph ){
    homephone = homeph;
    public String getHomePhone(){
    return homephone;
    //Set the bday and return it
    public Date getBday(){
    return bday;
    public void setBday(Date newBday) {
    bday = newBday;
    dateFormat.format(bday);
    //Set the extPerson type and return it
    public String getPType(){
    return extPersonType;
    public void setPBusiness(){
    extPersonType = "Business Associate";
    public void setPFamily(){
    extPersonType = "Family Member";
    public void setPFriend(){
    extPersonType = "Friend";
    public class extPerson extends Person{
    //new clss People
    public class People {
         int MAX_PEOPLE=500;
         BufferedReader bf;
    public String toString() {
              StringBuffer sb=new StringBuffer();
              for (int i=0; i<nPeople; i++)
              sb=sb.append(group[i]+"\n");
              return sb.toString();
    public void read(){
              String str;
              try {
              bf=new BufferedReader(new FileReader(new File(FILE_NAME)));
              str=bf.readLine();
              while (str!=null) {
              insert(str);
                   str=bf.readLine();
         catch (IOException e) {
              // Will jump to here on an eof condition.
         try {
              bf.close();
         catch (IOException e) {}
         public void save() {
              try {
              PrintWriter pw=new PrintWriter(FILE_NAME);
              for (int i=0; i<nPeople; i++)
              pw.println(group[i]+",");
              pw.close();
         catch (FileNotFoundException fne) {
                   System.out.println("Could not Save "+FILE_NAME);
    public People() {
              group=new extPerson[MAX_PEOPLE];
              nPeople=0;
         public boolean insert(String data) {
              if (nPeople<MAX_PEOPLE) {
              //extPerson guy=new extPerson(data);
              //group[nPeople]=guy;
              nPeople++;
              return true;
         else {
         JOptionPane.showMessageDialog(null,"Error in People" +
    "::insert: Max size reached.");
         return false;
         public void clear() {
              // This loop frees up the memory used by each extPerson
              for (int i=0; i<nPeople; i++)
              group[i]=null;
              nPeople=0;
    extPerson group[];
    int nPeople;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    public static void createAndShowGUI(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    JDialog.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("Address Book Program");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container c = frame.getContentPane();
    c.add(new AddressBook(frame));
    frame.pack();
    frame.setVisible(true);
    public static void main (String s[]){       
    //Schedule a job for the event-dispatching thread:
    //creating and showign this application's GUI
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();

    Ok, I have changed my code to reflect your suggested changes, but I'm still unsure how to use the findInLine you suggested.... This is all very new to me and I've been looking on the java website for suggestions, but I'm still stumped on how to pull this together. I'm unsure on how to set the lastname,firstname,etc. for retrieval...
    Here's my code:
    //ADDRESS BOOK
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    *  @created September 14, 2004
    *  This program uses a JFrame to manipulate data and form an
    *  address book.  The user will be able to load data from a file,
    *  sort it by last name, print the address, phone number, and date
    *  of birth, print the names of people whos birthday are between 2
    *  dates, print the names of people between 2 last names, and/or
    *  print the names of different person types.
    public class AddressBook extends JPanel implements ActionListener{
        JFrame frame;
        final int numButtons = 7;
        JRadioButton[] radioButtons = new JRadioButton[numButtons];
        JButton process = new JButton("Process Request");
        JLabel title;
        JTextArea output = new JTextArea(30,50);
        int MAX_ADDRESS_ENTRIES = 500;
        AddressBookEntry addressBookEntries[] = new
        AddressBookEntry[MAX_ADDRESS_ENTRIES];
        public AddressBook(JFrame frame){
            super(new BorderLayout());
            this.frame=frame;
            JPanel choicePanel = createSimpleDialogBox();
            choicePanel.setBorder(BorderFactory.createTitledBorder("Choices" +
            " to choose from:"));
            title = new JLabel("<html><h2> Thank you for opening the " +
            "Address Book.  " +
            "Please Press the \"Process Request\" " +
            "after making a choice.</h2></html>\n",JLabel.CENTER);
            title.setBorder(BorderFactory.createEmptyBorder(20,20,20,20));
            output.setEditable(false);
            add(title, BorderLayout.NORTH);
            add(choicePanel, BorderLayout.CENTER);
            add(output, BorderLayout.SOUTH);
            final ButtonGroup group = new ButtonGroup();
            final String saveCommand = "Save";
            final String sortByLN = "Sort by Last Name";
            final String searchLNCommand = "Search By Last Name";
            final String printAPD = "Print address, phone number, and DOB";
            final String printNamesDOB = "Print names of people whose birthday" +
            " falls between 2 dates";
            final String printNamesLN = "Print names of people who fall" +
            " between 2 last names";
            final String printPType = "Print all family members, friends, or" +
            " business associates";
        private JPanel createSimpleDialogBox(){
            radioButtons[0] = new JRadioButton(
              "<html>Save the address file</html>");
            radioButtons[0].setActionCommand(saveCommand);
            radioButtons[1] = new JRadioButton(
              "<html>Sort the address file by last name</html>");
            radioButtons[1].setActionCommand(sortByLN);
            radioButtons[2] = new JRadioButton(
              "<html>Search the address file by last name</html>");
            radioButtons[2].setActionCommand(searchLNCommand);
            radioButtons[3] = new JRadioButton(
              "<html>Print the address, phone number, and DOB of a specified" +
              " person</html>");
            radioButtons[3].setActionCommand(printAPD);
            radioButtons[4] = new JRadioButton(
              "<html>Print the names of people whose birthday falls between" +
              " two dates</html>");
            radioButtons[4].setActionCommand(printNamesDOB);
            radioButtons[5] = new JRadioButton(
              "<html>Print the names of people who fall between two" +
              " specified last names</html>");
            radioButtons[5].setActionCommand(printNamesLN);
            radioButtons[6] = new JRadioButton(
              "<html>Print all family members, friends, <u>OR</u>" +
              " business associates</html>");
            radioButtons[6].setActionCommand(printPType);
            for (int i=0; i<numButtons; i++){
                group.add(radioButtons);
    //set the first button (open file) to be selected
    radioButtons[0].setSelected(true);
    return createPane(radioButtons, process);
    private JPanel createPane(JRadioButton[] radioButtons,
    JButton showButton) {
    int numChoices = radioButtons.length;
    JPanel box = new JPanel();
    box.setLayout(new BoxLayout(box, BoxLayout.PAGE_AXIS));
    for (int i = 0; i < numChoices; i++) {
    box.add(radioButtons[i]);
    JPanel pane = new JPanel(new BorderLayout());
    pane.add(box, BorderLayout.NORTH);
    pane.add(showButton, BorderLayout.SOUTH);
    return pane;
    public void actionPerformed(ActionEvent e) {
    String command = group.getSelection().getActionCommand();
    //else if button pushed is save
    if (command == saveCommand){
    // save file
    //else if button pushed is search by last name
    else if (command == sortByLN){
    // search by last name
    //else if button pushed is sort by last name
    else if (command == searchLNCommand){
    // sort by last name
    // print to screen
    //else if button pushed is display address, ph#, dob
    else if (command == printAPD){
    // display "search by last name" dialog
    // search last names
    // if last name found
    // print data
    // else
    // print error notification "person not found"
    //else if button pushed is list names of people whose
    //bday between 2 days
    else if (command == printNamesDOB){
    // ask for which dates
    // search bday
    // print to screen
    //else if button pushed is print names of people between 2 last names
    else if (command == printNamesDOB){
    // ask for which two last names
    // search last names
    // if people found
    // print to screen
    //else
    //print error notification "no one found"
    //else if button pushed is print all family members, friends
    //or business associates
    else if (command == printPType){
    //ask for what person type
    //search person types
    //if people found
    //print to screen
    //else print "no one found"
    public class AddressBookEntry{
    private extPerson address;
    private String date;
    private extPerson ExtPerson;
    * Create the GUI and show it. For thread safety,
    * this method should be invoked from the
    * event-dispatching thread.
    public static void createAndShowGUI(){
    JFrame.setDefaultLookAndFeelDecorated(true);
    JDialog.setDefaultLookAndFeelDecorated(true);
    JFrame frame = new JFrame("Address Book Program");
    frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
    Container c = frame.getContentPane();
    c.add(new AddressBook(frame));
    frame.pack();
    frame.setVisible(true);
    public static void main (String s[]){       
    //Schedule a job for the event-dispatching thread:
    //creating and showign this application's GUI
    javax.swing.SwingUtilities.invokeLater(new Runnable() {
    public void run() {
    createAndShowGUI();
    //PERSON
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    public class Person{
    protected String lastName, firstName;
    private String address;
    private String city;
    private String state;
    private String zipcode;
    private String homephone;
    private String extPersonType;
    private String bday;
    SimpleDateFormat dateFormat = new SimpleDateFormat("yyyy-mm-DD");
    public void parseString(String s) {
              try {
              lastName = s.substring(0,s.indexOf(","));
              firstName = s.substring(s.indexOf(",")+1);
    address = s.substring(s.indexOf(",")+2);
    city = s.substring(s.indexOf(",")+3);
    state = s.substring(s.indexOf(",")+4);
    zipcode = s.substring(s.indexOf(",")+5);
    homephone = s.substring(s.indexOf(",")+6);
    extPersonType = s.substring(s.indexOf(",")+7);
    bday = s.substring(s.indexOf(",")+8);
    catch(StringIndexOutOfBoundsException sbe) {
              JOptionPane.showMessageDialog(null,"Error " +
    "in Person: Could not parse the line "+s);
    public String toString() {
    return lastName+","+firstName+","+address+","+city+","+
    state+","+zipcode+","+homephone+","+bday+","+extPersonType;
    public void setLName(String last) {
    lastName=last;
    public void setFName(String first){
    firstName=first;
    public String getLastName() {
    return lastName;
    public String getFirstName() {
    return lastName;
    public Person() {
    lastName="";
    firstName="";
    public Person(String first, String last){
    setLName(last);
    setFName(first);
    //Set the address and return it
    public void setAddress( String addr ){
    address = addr;
    public String getAddress(){
    return address;
    //set the city and return it
    public void setCity( String town ){
    city = town;
    public String getCity(){
    return city;
    //set the state and return it
    public void setState( String st )
    state = st;
    public String getState()
    return state;
    //Set the zip code and return it
    public void setZipCode( String zip ){
    zipcode = zip;
    public String getZipCode(){
    return zipcode;
    //Set the home phone and return it
    public void setHomePhone( String homeph ){
    homephone = homeph;
    public String getHomePhone(){
    return homephone;
    //Set the bday and return it
    public String getBday(){
    return bday;
    public void setBday(String newBday) {
    bday = newBday;
    dateFormat.format(bday);
    //Set the extPerson type and return it
    public String getPType(){
    return extPersonType;
    public void setPBusiness(){
    extPersonType = "Business Associate";
    public void setPFamily(){
    extPersonType = "Family Member";
    public void setPFriend(){
    extPersonType = "Friend";
    public Person(String data) {
    parseString(data);
    //EXTPERSON
    import java.awt.event.*;
    import java.awt.*;
    import javax.swing.*;
    import java.util.*;
    import java.text.SimpleDateFormat;
    import java.io.*;
    import java.lang.*;
    //new clss extPerson
    public class extPerson extends Person {       
         int MAX_PEOPLE=500;
         BufferedReader bf;
    String lname,fname,street,city,state,zip,phone,persontype,bday;
    String FILE_NAME="AddressBook.txt";
    public String toString() {
              StringBuffer sb=new StringBuffer();
              for (int i=0; i<nPeople; i++)
              sb=sb.append(group1[i]+"\n");
              return sb.toString();
         public void save() {
              try {
              PrintWriter pw=new PrintWriter(FILE_NAME);
              for (int i=0; i<nPeople; i++)
              pw.println(group1[i]+",");
              pw.close();
         catch (FileNotFoundException fne) {
                   System.out.println("Could not Save "+FILE_NAME);
    public extPerson() {
              group1=new extPerson[MAX_PEOPLE];
              nPeople=0;
         public boolean insert(String data) {
              if (nPeople<MAX_PEOPLE) {
              Person guy = new Person(data);
              group1[nPeople]=guy;
              nPeople++;
              return true;
         else {
         JOptionPane.showMessageDialog(null,"Error in People" +
    "::insert: Max size reached.");
         return false;
    Person group1[];
    int nPeople;

  • Some of the entries in my address book show birthdays one day/year earlier in Ical. I cannot change this except by putting in the birthdays a day/year earlier than they are. Why is this happening only for some entiries and not others?

    Some of the birthdays I have entered in Address book appear in my Ical one day and one year earlier than the date I have given. Eg. I have entered a birthday in Address book as 23 March 2011 and it appears in Ical as being on 22 March 2010. Other names have no problems. There are only some that do not appear with the correct date and year. Why is this?  Has anyone found how to correct this strange problem?  I have Time Zones ticked.
    Bronze2011

    I'm having this exact same problem, but it's doing it with a bunch of birthdays. I also did 0001 when I didn't know the birth year, so I went back and did a more current year, but they still aren't showing up where they should be...or at all. It's completely bizarre.

  • Synching iphone/contacts & macbook/address book no longer works

    I've had an iphone 3G and macbook pro for about 2 years and until now they've synched just fine. Today I cleaned up my address book on the mac (eliminated some duplicates, added, renamed, and deleted groups, updated individuals' information) and then synched my iphone with my mac using itunes. (I don't have a mobileme account.)
    A few of the changes I made to address book (e.g., new contacts) were updated in contacts on the iphone, but most were not. It didn't update changes to existing contacts and the groups were not changed. Updates to ical and safari bookmarks were synched just fine.
    Here are the things I've tried without success:
    1. In itunes info tab, under address book I selected "all contacts," deselected all other updates (ical, etc.) except address book, and then synched.
    2. Same as above, PLUS in the advanced section, under "replace information on this phone" I selected contacts. then I synched.
    3. Same as #1 above, except instead of "all contacts" I selected "selected groups" and checked all the groups listed, and then synched.
    4. I rebooted the macbook and repeated the steps above.
    5. I opened isync and selected "reset sync history." then I repeated steps 1 and 2 above.
    I also tested making a change to a contact on the iphone to see if the change was made on the mac. It was not.
    About 2 months ago I upgraded to snow leopard. It's possible this problem has been going on since then, and I just didn't notice until today when I made all the changes to address book.
    I don't know what to try next. Please help.

    status update -- I tried a lot of other things but finally solved the problem after I removed all the groups from mac address book. (thank-you to my son Ben)
    FYI -- along the way I tried doing the reset sync history, which deleted all contacts from the iphone. I initially thought that was a good thing, until I discovered that nothing I tried after that would put the contacts back on the iphone. Next I restored factory settings on the iphone and set up as a new user, but that didn't work either. Or maybe it did; maybe deleting the groups wouldn't have solved the problem if I hadn't deleted all contacts and reset the iphone first.

  • How to restore iCal and Address Book from my iPod mini.

    I used to back-up my iCal and Address Book to both my Nokia phone and my iPod mini twice a day. then over Christmas my laptop hard drive and my phone both broke within 2 days of each other. Ouch! My only copy of my addresses and diary are now on the iPod. I could spend days reading the data and type it into to computer manually, but there has to be a way to do it automatically. *Mustn't there?*

    Similar problem here,
    I have a month-old archived version of my AddressBook, but today my entire rolodex vanished when the program froze and I force quit. I have a much more recent update on my ipod and have made significant additions/editions in the past month. Can I retrieve all that data from my iPod??
    Help!

  • My computer has been infected with a Trojan Horse.  It has completely taken over my Mac email account and was sending out malicious email to everyone in my address book.  At the same time it infected my iPhone---I am no longer able to receive or send emai

    My computer has been infected by a Trojan Horse.  It has taken over my Mac email account and began sending out malicious emails to everyone in my address book.  I cleared out my MAC address book and began using my AOL email account. It took a few days and then my AOL email account was infected and has now been send out malicious email to all my contacts for over a month.  It has also infected my iPhone--I am no longer able to send or receive emails on my iPhone.  Also, once the Trojan Horse began using my AOL email it completely blocked me from using my MAC account by sending never ending popups asking for my email password to access my MAC email account, but it never accepts my pass word.  The TH has also slowed down everything on my computer.  It's like I am working on an old PC with dial up connection instead of the high speed digital connection that I have.  The little color wheel spins constantly as I wait for sometimes over a minute for a page to pull up.  If it pulls up at all.  I have tried to use the 2 disks that came with my computer to completely remove everything on my computer and then reinstall all the programs, but I am not allowed to sweep my computer clean.  I thought maybe my disks that came with my computer were defective so I called Apple and they sent me 2 new disks.  I am not able able to clear my computer with the 2 new disks either.  I have done this before successfully so it's not something new to me.  I do remember when I believe my computer became infected:  I had googled an unusual sewing term, and I was opening what appeared to be legitimate sites, when all of a sudden a pop up appeared that said that my computer had been infected.  I immediately shut my computer off, but it was too late.  I downloaded a virus program for Mac, and it has never found a virus or problem at all.  I think it is part of this Trojan Horse, but I am unable to delete it from my computer.  It refuses to uninstall.  The Mac Trojan Horse is real and it is terrible.  If anyone has any suggestions for me I would be very appreciative,
    Beth
    vu

    Install ClamXav and run a scan with that. It should pick up any trojans.   
    17" 2.2GHz i7 Quad-Core MacBook Pro  8G RAM  750G HD + OCZ Vertex 3 SSD Boot HD 
    Got problems with your Apple iDevice-like iPhone, iPad or iPod touch? Try Troubleshooting 101

  • New/Updated contacts on iPhone 4 not syncing to iMac Address Book

    Greetings,
    My problem:
    When syncing my iPhone 4 with iTunes 10, iTunes will sync contacts FROM my iMac to the iPhone. It will not sync new or changed contacts from the iPhone TO my iMac (no two-way syncing).
    Further background:
    I recently had Apple replace my hard drive and restored from a Time Machine backup. Everything is working properly except this.
    What I'm using:
    * iPhone 4 w/ iOS 4.1 (latest)
    * iMac 2.4 GHz Intel running OS X 10.5.8
    * iTunes 10.1 (54)
    Example:
    If I create a new contact on my iMac, it syncs with the iPhone as expected.
    On the iPhone, If I edit the contact originally created on the iMac and re-sync, the changes do NOT sync back to my iMac.
    If I create a new contact on my iPhone, it does not sync with Address Book.
    What I've tried so far that has not worked:
    1.) Unchecked and re-checked "Sync Address Book Contacts" in iTunes (one-way syncing works fine)
    2.) Used the "Replace information on this iPhone" for Contacts within iTunes (contacts from iMac overwrite iPhone as expected)
    3.) I had a trial MobileMe subscription that I cancelled months ago.
    Went into the iPhone > Settings > Mail, Contacts, Calendars > deleted the MobileMe account, keeping existing data on my iPhone.
    4.) Unchecked "Sync Address Book Contacts"
    * Went to /users/[username]/Library/Application Support/AddressBook, deleted AddressBook-v22.abcddb and /Images
    * Went to iSync app > Preferences > Reset Sync History
    * Verified new addressbook and /Images folder were created
    * Re-checked "Sync Address Book Contacts"
    * Performed another sync using iTunes
    (One-way sync works fine)
    5.) Deleted all Address Book entries
    * Unchecked "Sync Address Book Contacts"
    * Went to /users/[username]/Library/Application Support/AddressBook, deleted AddressBook-v22.abcddb and /Images
    * Went to iSync app > Preferences > Reset Sync History
    * Verified new addressbook and /Images folder were created
    * Re-checked "Sync Address Book Contacts"
    * Performed another sync using iTunes
    Can anyone offer some suggestions? I have my address book backed up, but I'd really like to be able to perform a two-way sync from my iPhone to my iMac's Address Book.
    Thanks,
    Rob

    No need for apologies!  Yes, it was checked.  Looks like I have solved the problem now and it was something very basic - in the preferences of Contacts on the iMac.  Looks like it's all synced now.  Thanks for replying!

Maybe you are looking for

  • Canon 5d Mark II and Raw Images in CS4

    HI I have a Canon 5D Mark II and have just upgraded to standard CS4. When I go to view my Raw files on bridge I am unable to do this - all I see instaed of the thumbnail is the CR2 file. When I click on the file it states 'could not complete your req

  • Why can't I receive FT calls on MacBook Pro, but can on iPhone 5

    I am able to accept and interact when I answer face time calls on my iPhone 5, but my MacBook Pro call will fail.  My MBP is just a year old.  What could be the issue? Suggestions?

  • Hard disc and home folder capacity discrepancy

    hi. am using a g5 imac , tiger. my hard disc shows a capacity of 150gb but my home folder (and hence my documents, photos, music folders etc) show only 46gb available. I havent partitioned my drive to the best of my knowledge. I have tried running di

  • Suggestions required on SprIngs !!

    Hi all, I have been looking into the spring framework and trying to understand where exactly doest it fit into the web appl development framework. As in i have a beginner's idea of this framework. I read that Spring framework is based on the IOC prin

  • Post xml in map viewer

    Hi people, I posting this xml: <?xml version="1.0" standalone="yes"?> <map_request      title="ARIZONA"      basemap="MAPA_ARIZONA"      datasource="orcl"      width="800"      height="600"      bgcolor="#ffffff"      antialiase="false"      format="