Address Book Irritation

This is about as irritating as the mosquito buzzing around your head at night while you're trying to go to sleep. All the entries in my book are either first names or nic names but only one word. However there are 2 that continually change to first and last w/o any assist from me. I edit them and they show correctly but the next time I go to the book they are back to first and last. I don't have this problem with the same contacts in Hotmail or Gmail. Does anyone know what's going on here and better yet what I can do to fix the glitch?
Bob

Hi and welcome to the forums!
From the main homscreem press the menu twice, this will show all icons press the menu key once more if it has the option show all, select it.Then check to see if you have the icon.You can even move it into folders and behind other icons! If not found try the following: No data will be lost when doing the following: pull the battery while the device is ON. Replace after a minute, Let the device reboot 1-3 min, see if the problem is fixed, Thanks 
 Please remember to resolve your thread. Put the check mark in the green box that contained your answer! Thanks   
Click Accept as Solution for posts that have solved your issue(s)!
Be sure to click Like! for those who have helped you.
Install BlackBerry Protect it's a free application designed to help find your lost BlackBerry smartphone, and keep the information on it secure.

Similar Messages

  • My address book keeps getting clogged up with thousands of email duplicates.

    My address book(s) keep getting filled with hundreds or thousands of duplicate addresses. This causes Thunderbird to slow down considerably when I enter an email address in the "to" field because it has to search the thousands of addresses. I have to manually go in and delete them which takes hours because I can only delete a screens worth at a time without getting a script error. I have three gmail accounts I am using with Thunderbird.

    It now appears the duplicate email addresses have showed up again. This is extremely irritating. I would like to get rid of Thunderbird if this can't be solved!

  • Address Book Sorting

    Using BES, Curve 8330 on 4.5 and Outlook 2003 Exchange...
    Any time I enter an address in my Curve, it will sync perfectly with Exchange and sync with my outlook contacts.
    However, every time, it will sort by last name, first name.
    I've told the BB device to sort by first name, last name.  Outlook is setup the same way.  First then last.
    It gets irritating looking for a contact that I put in..only to realize it's stored in Outlook Last then first.
    It is stored in my phone correctly.
    If I create the contact in Outlook, by defaut it's first then last name....perfect.  It's only blackbery entered contacts that sync with Outlook.

    Double check in outlook
    tools- options- contact options
    Default "FILE AS" is set to first, last
    then go into your contacts and make sure they are STILL first last
    if not you will open each one that is not and change "FILE AS" to first last manually(the reason for this sometimes switching back is because of the switching in the previous step, which needs to be right to resolve your issue)
    on BB open address book- menu- options- general options
    make sure SORT BY: is set to FIRST NAME

  • Apple has taken over my Address Book!

    Not an earth shattering problem, but nonetheless irritating and having trolled the Forum, I have not discovered a fix. Whenever I open an email newsletter in my Mail Inbox pertaining to Apple, e.g.,Macworld, Apple eNews, there is an immediate <Apple Computer Inc> entry in my Address Book.
    Thoughts and solution please? I am preparing myself to be hugely humiliated by some obvious explanation!!
    TIA
    Brian
    iMac G4 800   Mac OS X (10.4.4)  

    Brian:
    The first time Address Book is launched, An Apple Computer card is inserted into it. There is one for different regions of the world, and the files come from /System/Library/Frameworks/AddressBook.framework/Resources . The one for United States users is named TipCards-us.vcf .
    If the Address Book preferences are corrupted or removed, another Apple Computer card will be inserted when the preferences are re-created.

  • Sluggish Address Book

    Since I uploaded to Snow, the Address book is really sluggish when I open it. The ball keeps rolling and rolling before finally giving me access.
    Same thing with searches, the rolling ball keeps popping up and I have to wait for it to stop. Very annoying.
    Didn't use to be like that with 10.5
    Anything I can do or am I the only one with this issue ?

    we're supposed to go in & cull a file or two??
    *isn't this something that **the install should have done*??
    more irritating, is that mine is sluggish... & a SpotLight function for that file returns null.
    null

  • Address book can't get a new Group Folder & 'large type' function doesn't.

    Since loading Tiger a few months ago the Address Book doesn't function as it did. I'd like to reload just the address book software - as that might solve it, but there doesn't seem to be anywhere to download specific piece of apple software online. The current irritating problem is I can't create a new folder for a new group - and I'm sure there's other functions that I don't have - besides losing the large type thing and showing the map link on the address etc...

    Hmmm...I don't know....I wonder whether this could be a file permissions or ownership problem?
    In Terminal.app, when you type
    ls -alTk Library/Application\ Support/AddressBook
    what do you get? When I type that, I get:
    drwxrw-rw- 12 jv user 408 Aug 30 09:23:46 2006 .
    drwx------ 12 jv user 408 Aug 29 21:11:26 2006 ..
    -rw-rw-rw- 1 jv user 6148 Aug 5 22:56:55 2005 .DS_Store
    -rw------- 1 jv user 10 Aug 30 09:23:46 2006 .database.lockN
    -rw------- 1 jv user 10 Aug 29 18:26:44 2006 .skIndex.ABPerson.lockN
    -rw------- 1 jv user 10 Sep 4 11:58:13 2005 .skIndex.ABSubscribedPerson.lockN
    -rw------- 1 jv user 147456 Aug 21 22:36:20 2005 ABPerson.index
    -rw------- 1 jv user 139264 Aug 29 18:26:44 2006 ABPerson.skIndexInverted
    -rw------- 1 jv user 6144 Sep 4 11:58:13 2005 ABSubscribedPerson.skIndexInverted
    -rw------- 1 jv user 942735 Aug 30 09:08:48 2006 AddressBook.data
    -rw------- 1 jv user 139361 Aug 17 18:19:33 2006 AddressBook.data.previous
    -rw-r--r-- 1 jv user 92 Aug 28 20:12:42 2006 LastImport.plist
    Are you seeing similar permissions ("-rw-------", etc.) on all your corresponding files of the same names (AddressBook.data, etc.)? Are they showing the same owner and group as the top two "." and ".." entries (in my case, jv and user -- will be different for you)?

  • ICal can't see my Address Book card...

    When I try to set an email alert to myself iCal tells me:
    You must add your own card and email address in Address Book to be able to use mail alarms.
    I have an Address Book card with my name on it and my email address. Is there some "offical" designation I need to set for it so that my Mac knows it's my card? Or is there an iCal setting that designates it as such?

    I had the same issue. My iCal, Address Book and Mail all worked happily together until I migrated to a new MacBook Pro. Everything was working well until I tried to send an invitation from iCal to other users and I got the same message you did. I was irritated because I DID have a card that was identified as "my" card. But here was the catch: I use Entourage as my preferred email client and use "Mail" only when iCal sends an invitation to an event. Once I set up "Mail" on the new computer, iCal recognized my card and sent the invitation.

  • Envelope failing to print from Address Book

    Previously had no problems printing to my Epson 1290S from AB but recently the command to print (generally to C6/7) is accepted and processed but the envelope simply passes through the printer without printing. Irritating!

    Thanks for the reply David
    Address Book itself seems pretty stable (unlike me) and has, in the past, printed envelopes for my entire Christmas list. Now it is just the final part of the printing process that fails. Data registers in the printing pane, the blue bar fills and the printer goes through the motions and feeds the envelope through but without actually printing anything on it. Weird.
    Have checked through my addresses but some, by the very nature of my contacts and the information made available to me, do not always include a full address, merely an email/phone number - but I would not be including these in a mail shot any way.
    Les

  • Address Book Sync with .Mac Always Produces Conflicts

    Hi-
    I have my address book setup to sync to .Mac and every time I change an address, it produces a sync error. Then no matter how I choose to resolve the conflict (keep the one on my computer or the one on .Mac), it always fails and the conflict reappears. I've tried resetting the sync data on .Mac and, while that clears things up for a single conflict, the next time I edit an address the same thing happens again. I've always removed any duplicate addresses as I read somewhere that that might be an issue as well.
    Anybody else have this problem?

    I have this exact same problem. Moreover, shortly after changing my address, the original automatically comes back! (I have a cable internet connection) In other words I have an unchangeable address. This is especially irritating because when I use 'fill in form' on web pages the address supplied is from my unchangeable address book, so I can't successfully use 'fill in form' either. I have become aware of this after switching my web browser to Camino. You too?

  • VERY VERY angry at Apple - Address Book problems, easy to fix, but broken.

    Hello
    I have lost the addresses in my address book. I had my entire user folder backed up onto a separate hard drive. In that folder, there is a Library > Application Support > AddressBook directory.
    In that directory is a "AddressBook.data" file and an "AddressBook.data.beforesave" file. I am unable to get these into my Address book to replace my lost addresses.
    If I drag the "AddressBook" folder into my new application support directory and replace the existing one, then when I open address book, it is empty.
    Apple, how hard is it to just base the address book file on a text document that actually works in this case? A simple tab delimited document, or another simple type of document would work fine. Or, you could just write the functionality into Address Book to read these files directly. The info is there, I can open them in BBedit and see the data!!!
    I just cannot believe that this is a problem. I am so disappointed in Apple for not making this simpler. It is very un-like Apple to do this, and even more un-like Apple to not fix it.

    I just had Mail crash while Address Book was open, that subsequently caused a couple of other Mac apps to crash as well: Safari, ICal. After running Disk Utility to repair permissions, I restarted and went back to Mail, and my entire address book is GONE. ***??????????? I'm so irritated right now, I've been a Mac user for 15 years and have never had something like this happen.

  • Spotlight cant find Address Book

    So I have been having this problem ever since I upgraded to snow leopard, when I spotlight my address book it will not come up on the Top Hits or even Applications. It just does not appear at all.
    Is there any reason why? Its quiet irritating and hopefully can be fixed.

    Maybe if you try to reindex spotlight. I've included a tutorail link. Hope this helps because it's helped my spotlight issue in the past.
    Good luck
    http://www.thinkmac.net/tutorials/2009/5/31/mac-tips-daily-186-re-index-spotligh t.html

  • 8830 World Edition Address Book Problems

    I have an 8830 World Edition from Verizon...
    Now I know they have their own software on the phone, and I'VE UPDATED it as of 2 days ago. 
    When I put a new contact in my phone, my phone completely freezes and I have to shut off my phone and turn it back on to get it working again.  When the phone freezes, the little hourglass shows up at random, and that's it.  Once I turn my phone back on, my new contact is saved though.  This is a very irritating problem.  Any ideas of how to fix the address book?  Please help me.  Thank you all very much!
    Mike

    Try this website for the software:
    http://vzw.smithmicro.com/blackberry/download.aspx?ct=personal
    ~Tami~
    Intellectuals solve problems; geniuses prevent them.
    -- Albert Einstein

  • 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;

  • Can different family member accounts share an address book in iCloud?

    we have a primary mobileme account which is now set up in icloud.  we have a family pack with a secondary family member account set up for my wife's business email.  This secondary account now also has its own icloud account that we set up.  Works fine.  The question is this - when my wife is logged in to her icloud secondary account and looking at her work-related emails, how can she access the addresses in the address book that is linked to the main icloud account?  She is usually working from a PC so it's not a matter of just looking at the local copy of the address book.  She needs to log out of the secondary icloud account, log in to the primary, look up the address, and then go back to the secondary account to send the email from her work email address.  Too cumbersome.  And icloud does not seem to like having two instances of icloud running at the same time on the same computer.
    Any thoughts would be appreciated.
    Thanks -
    Joel

    You're welcome.
    Happy Holidays to you and your family.
    Please note the items listed under Legend in the right sidebar of this page.

  • How can I add an e-mail address to my address book from an e-mail?

    Someone sends me an e-mail and I do not have their e-mail in my Thunderbird address book. Is there a way to enter their information into my address book without having to retype it all into my address book. In other e-mail programs that I have used, all I needed to do was click on the message and then click on a drop-down menu item that would simply copy all of the contact information into a new address book entry. Is it possible to do that in Thunderbird?

    When viewing a message in a tab or the message pane there is a star to the right of the senders address. If the star is filled with color the address is already in one of your address books. If the star is not filled, click the star to add them. Click the star a second time to open the edit dialog box to add more details to the contact.
    This is not the same star that is to the left of the message header when viewing the inbox.

Maybe you are looking for

  • Sproxy and abap mapping

    Hi All, 1.how can i get the data into sproxy(application system) from integration builder(integration server)?. 2.how to do setting in TC SM59 for http destination for this? 3.pls give abap mapping scenario Thanks & Regards,

  • Will Not Sleep In Energy Saver Mode

    My iMac G5 20" 1.8Ghz will not sleep when I set it to sleep in the energy saver panel. This just started for no specific reason a few months ago. It will sleep fine when selected from the Apple menu. I have been through the discussions and no one see

  • I am syncing a playlist to an IPhone.

    All the songs in the playlist are checked, but only about half are syncing to the IPhone.  What could cause this?

  • Rfq wrt pr

    when i want to create rfq with ref to pr...i create a pr but its mandatory to enter price in pr...so when we create a rfq with this pr...are we sending the price to vendor as well ...or ther is some way where entering value or price isnt mandatory in

  • JTree + Setting Icon

    I have created a JTree that works fine. I wonder If there is a way of changing the tree icon of a specific leaf when I selected (Only that particular leaf). I tried few things with TreeRenderer but the best done was that I managed to change all the l