Having trouble with Linked Lists

I'm making a JApplet with buttons from a Linked List, and the buttons should be unique but they're all returning the same icon and string. Also my refreshImages method and deleteStudents method aren't working except for the very last button. This seems like it's just because of how Linked Lists operate, but I can't wrap my head around it.
public class FacebookApplet extends JApplet implements ActionListener{
     private Scanner input;
     protected RefSortedList studentsList;
     protected RefUnsortedList buttonList;
     Student studentVar;
     private JButton b, refreshButton, deleteButton;
     private JPanel buttonPanel, etcPanel;
      * Calls:     readStudentNames, setUpImages
     public void init(){
          readStudentNames();
          setUpImages();
          setLayout(new BorderLayout());
          setSize(500,670);
          etcPanel = new JPanel(new BorderLayout());
          refreshButton = new JButton("Refresh");
          deleteButton = new JButton("Delete");
          buttonList.reset();
          etcPanel.add("West", refreshButton);
          etcPanel.add("East", deleteButton);
          add("North", buttonPanel);
          add("South", etcPanel);
          refreshButton.addActionListener(this);
          deleteButton.addActionListener(this);
      * Pre:          students.dat in current directory
      *                studentList instantiated
      * Post:     studentList has Student objects with names, not images(yet)
      * Purpose:     to set up studentList with student names
     private void readStudentNames(){
          try {
               FileReader dataInput = new FileReader("students.dat");
               input = new Scanner(dataInput);
          } catch (FileNotFoundException e) {
               System.err.println("ERROR:Students.dat file not found");
               e.printStackTrace();
          studentsList = new RefSortedList();
          while(input.hasNextLine()){
               String studentName = input.nextLine();
              studentVar = new Student(studentName);
               studentsList.add(studentVar);
          System.out.println(studentsList + "");
     }//readStudentNames()
      * Pre:          studentList set up with names
      *                .jpg files are in current directory
      * Post:     buttons set up with images in buttonList and buttonPanel
      * Purpose:     to set up buttons with Student names and images
     private void setUpImages(){
          ImageIcon studentPic;
          Student studentStringPic;
          studentsList.reset();
          buttonList =  new RefUnsortedList();
          buttonPanel = new JPanel(new GridLayout(5,3));
          for (int k = 0; k < studentsList.size(); k++) {
               studentPic = new ImageIcon(studentVar.toString() + ".jpg");
               studentStringPic = new Student(studentVar.toString(), studentPic);
               b = new JButton(studentStringPic.toString(), studentStringPic.getIcon());
               b.setVerticalTextPosition(AbstractButton.BOTTOM);
              b.setHorizontalTextPosition(AbstractButton.CENTER);
               b.addActionListener(this);
               buttonList.add(b);
              buttonPanel.add(b);
               studentsList.getNext();
      * Pre:          buttonList set up
      * Post:     All buttons enabled
      * Purpose:     To enable all buttons in buttonList
     public void refreshImages(){
          for(int i=0;i<buttonList.size();i++){
               b.setEnabled(true);
               buttonList.getNext();
     * Pre:     buttonPanel, buttonList set up
     * Post:    disabled buttons removed from buttonPanel
     * Purpose: To delete those students whose buttons are disabled
    private void deleteStudents(){
         for(int k=0; k<buttonList.size();k++){
              if(!b.isEnabled())
                   buttonPanel.remove(b);
              buttonList.getNext();
         this.repaint();
     public void actionPerformed(ActionEvent e) {
          JButton b = (JButton) e.getSource();
          if(e.getSource() == deleteButton){
               deleteStudents();
          else if(e.getSource() == refreshButton){
               refreshImages();
          else{
               b.setEnabled(false);
}Student Class:
public class Student implements Comparable{
     private String name;
     private Icon icon;
     public Student(String nameT){
          name = nameT;
     public Student(String nameT, Icon iconT){
          name = nameT;
          icon = iconT;
     public int compareTo(Object arg0) {
          if(this.equals(name))
               return 1;
          else
               return -1;
     }//compareTo()
     public boolean equals(){
          boolean equalTo = false;
          if(this.equals(name))
               equalTo = true;
          return equalTo;
     }//equals()
      * Pre: LL is instantiated and filled
      * Post: none
      * Purpose: return the name of the student
     public String toString(){
          return name;
     }//toString()
     public Icon getIcon(){
          return icon;
}

I fixed the other things, I just need to fix two more problems and then clean up my code so it looks more professional.
First problem: When I add the Student variables to the studentsList, they aren't sorted. I think this is because they aren't being read as Strings and so there's no way to compare them. I could just do studentVar.toString(), but then studentsList would be full of Strings and not Students. Any ideas?
      * Pre:          students.dat in current directory
      *                studentList instantiated
      * Post:     studentList has Student objects with names, not images(yet)
      * Purpose:     to set up studentList with student names
     private void readStudentNames(){
          try {
               FileReader dataInput = new FileReader("students.dat");
               input = new Scanner(dataInput);
          } catch (FileNotFoundException e) {
               System.err.println("ERROR:Students.dat file not found");
               e.printStackTrace();
          studentsList = new RefSortedList();
          while(input.hasNextLine()){
               String studentName = input.nextLine();
              studentVar = new Student(studentName);
               studentsList.add(studentVar);
          System.out.println(studentsList + "");
     }//readStudentNames()Here's the add() method of RefSortedList:
public void add(Comparable element)
  // Adds element to this list.
    LLObjectNode prevLoc;     // trailing reference
    LLObjectNode location;    // traveling reference
    Comparable listElement;   // current list element being compared     
    boolean moreToSearch;            
    // Set up search for insertion point.
    location = list;
    prevLoc = null;
    moreToSearch = (location != null);
    // Find insertion point.
    while (moreToSearch)
      listElement = (Comparable)location.getInfo();
      if (listElement.compareTo(element) < 0)  // list element < add element
         prevLoc = location;
         location = location.getLink();
         moreToSearch = (location != null);   // stop looking at end of list
      else
        moreToSearch = false;     // list element >= add element
    // Prepare node for insertion.
    LLObjectNode newNode = new LLObjectNode(element);
    // Insert node into list.
    if (prevLoc == null)        
      // Insert as first node.
      newNode.setLink(list);
      list = newNode;
    else
      // Insert elsewhere.
      newNode.setLink(location);
      prevLoc.setLink(newNode);
    numElements++;
  }

Similar Messages

  • Having trouble with links to specific destinations in pdfs

    I'm trying to create links from a web page to specific locations (destinations) in a pdf. I make the destinations in Acrobat, then I create the links in the web page (for example, userguide.pdf#intro), and they work perfectly in IE and Opera but not in Firefox. When I try these links in Firefox, it links to the pdf, but to the wrong place (usually the top of the pdf, but sometimes other places too). This has happened on two different computers, too.
    Someone has recently suggested that it may not be a Firefox problem after all, but a Reader problem--specifically, a problem with the Reader plug-in we have on Firefox. Does anyone have any insight on this?

    Hi,
    That usually means that either the Domain name or the Folder is incorrectly specified. Please see https://helpx.adobe.com/muse/using/uploading-site-third-party-hosting.html for an explanation of these fields.
    What values are you entering in these fields? Did Upload to FTP host work for you in previous versions of Muse? Are you using the same settings as before?
    Abhishek

  • Is anyone else having trouble with linking between Xfinity Comcast email and the new iOS7 on iPhone 4s ?

    I downloaded the new iOS7 update for my iPad and iPhone 4s today.  Everything works fine on both devices EXCEPT I get my Comcast emails but when I attempt to reply and send I get a message telling me it is not the correct STMP address/password.
    I called Apple Support, they tried a number of things with me then suggested I call Comcast. Comcast charged me $49.95 to get tech support only to be told in 3 minutes or less: " sorry, it seems Comcast Xfinity and iOS7 upgrade are not communicating on iPhones.
    They then told me to download the Xfinity mobile app and utilize my emails from there.
    Totally inconvenient !
    Is it an Apple fix or Comcast ?
    Thanks
    Jo

    See the tip here,
    https://discussions.apple.com/message/20096362#20096362
    And here's Comcast's guide to email
    http://customer.comcast.com/help-and-support/internet/email-client-programs-with -xfinity-email/
    So comcast charges $50 to get POP/SMTP setup instructions?
    That's annoying...

  • I am having trouble with some of my links having images. For example, Foxfire has a picture that looks like a small world. The links in question are blank.

    I am having trouble with my links/websites having images attached to them. The place where the image should be is blank. For example, AARP has an A for its image. My storage website has a blank broken box where the image should be. I forgot I had trouble and had to reset Foxfire, this problem occurred after that reset.

    cor-el,
    Mixed content normally gives the world globe image, unless you are using a theme that uses a broken padlock instead. Maybe the gray triangle means invalid? I came across that in a few themes (what is invalid was not made clear), but those were not using triangle shapes to indicate that.
    I came across that mention in one of the pages you posted:
    * https://support.mozilla.org/kb/Site+Identity+Button
    I cannot attach a screenshot because I have not seen a triangle of any kind in my address bar.

  • Switched from a PC to a MBP, having trouble with iTunes syncing iPhones, iPods. Devices are still linked to the PC ?

    Switched from a PC to a MBP, having trouble with iTunes syncing iPhones, iPods. Devices are still linked to the PC. How do I undo the PC link without a restore / reformat?

    Post in the iTunes forum:
    https://discussions.apple.com/community/itunes
    Read:
    http://www.apple.com/support/switch101/
    http://www.macworld.com/article/1153952/superguide_switchingtoamac.html

  • Having trouble with flash and linking to Sliding panels - PLEASE help

    Having trouble with Sliding panels and flash. Otherwise everything works fine but when I'm trying to implement the link
    <a href="#" onclick="sp1.showPanel('panel1'); return false;">Panel1</a>
    to a flash button I get confused. I have tried following
    on (press) {
    getURL("javascript:sp1.showPanel('panel1');");
    and it did not work. What would you suggest? I am desperate. Please help me! Any suggestions are highly appreciated!!!!

    Thanks for your answer!
    I have tried both sp1.ShowPanel('panel1'); and window.sp1.ShowPanel('panel1'); they both give blank window with [object]
    I have found a solution that works in other browsers, but not in IE. Well basicly it works, but after a few clicks IE freezes.
    on (press) {
    getURL("javascript:sp1.showPanel('panel1'); void(0);");
    Would you happen to have a solution other than that? I believe that the void(0); causes the IE to freeze.

  • I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    I am having trouble with my mac book air. I think I have a virus because everytime i click on a link it openes up popup windows and other things. How do I reset teh computer?

    Please post a screenshot that shows what you mean. Be careful not to include any private information.
    Start a reply to this message. Click the camera icon in the toolbar of the editing window and select the image file to upload it. You can also include text in the reply.

  • I am having trouble with my iphone 3GS,contact list andphone icon, Help Please

    I am having trouble with my iphone 3GS, when i select my contact list or the phone icon, they open with a white screen and close almost immidiately meaning that i am unable to call or save contacts however i can recieve calls. Help Me Please

    Basic troubleshooting from the User's Guide is reset, restart, restore (first from backup then as new).  Has any of this been tried?

  • I am having trouble with the reminders app for iPad mini on iOS 7. When I. hit add list it doesn't add a list. I've tried everything. Thank you.

    I am having trouble with the reminders app for iPad mini on iOS 7. When I. hit add list it doesn't add a list. I've tried everything. Thank you.

    Device not recognized by iTune
    http://support.apple.com/kb/TS1591

  • TS2972 having trouble with ring tone and or ring back tones...i followed all directions and cant access ring tone from my play list.

    having trouble with ringtone and ringback tones ..i followed all directions for home sharing.  does anyone have a real solution???

    Hello sairdoor123
    From what I understand the issue seems to be with the hardware, obviously since the phone was dropped that could cause undesired results.
    If all your data is backed up to a computer then I would recommend doing a hard reset: http://www.palm.com/cgi-bin/cso_kbURL.cgi?ID=887
    If a hard reset is done then I would caution you with the following choices:  ( Should I have the audio circuit repaired as suggested by one of the repair guys? Or would that be risky?) - I would say this is risky because the person repairing the devise could easily sodder the wrong part of the hardware.
    If you really do think repairing the circuit board is more cost effective then I would recommend researching all your possible repair shops before doing any work. Make sure they have the credentials and experiences.
    Hopefully things work out for you.
    Post relates to: Centro (Sprint)
    Post relates to: Centro (Sprint)

  • I'm having trouble with something that redirects Google search results when I use Firefox on my PC. It's called the 'going on earth' virus. Do you have a fix that could rectify the vulnerability in your software?

    I'm having trouble with a virus or something which affects Google search results when I use Firefox on my PC ...
    When I search a topic gives me pages of links as normal, but when I click on a link, the page is hijacked to a site called 'www.goingonearth.com' ...
    I've done a separate search and found that other users are affected, but there doesn't seem to be a clear-cut solution ... (Norton, McAfee and Kaspersky don't seem to be able to detect/fix it).
    I'd like to continue using the Firefox/Google combination (nb: the hijack virus also affects IE but not Safari) - do you have a patch/fix that could rectify the vulnerability in your software?
    thanks

    ''' "... vulnerability in your software?" ''' <br />
    And it affects IE, too? Ya probably picked up some malware and you blame it on Firefox.
    Install, update, and run these programs in this order. They are listed in order of efficacy.<br />'''''(Not all programs detect the same Malware, so you may need to run them all to solve your problem.)''''' <br />These programs are all free for personal use, but some have limited functionality in the "free mode" - but those are features you really don't need to find and remove the problem that you have.<br />
    ''Note: If your Malware infection is bad enough and you are mis-directed to URL's other than what is posted, you may have to use a different PC to download these programs and use a USB stick to transfer them to the afflicted PC.''
    Malwarebytes' Anti-Malware - [http://www.malwarebytes.org/mbam.php] <br />
    SuperAntispyware - [http://www.superantispyware.com/] <br />
    AdAware - [http://www.lavasoftusa.com/software/adaware/] <br />
    Spybot Search & Destroy - [http://www.safer-networking.org/en/index.html] <br />
    Windows Defender: Home Page - [http://www.microsoft.com/windows/products/winfamily/defender/default.mspx]<br />
    Also, if you have a search engine re-direct problem, see this:<br />
    http://deletemalware.blogspot.com/2010/02/remove-google-redirect-virus.html
    If these don't find it or can't clear it, post in one of these forums for specialized malware removal help: <br />
    [http://www.spywarewarrior.com/index.php] <br />
    [http://forum.aumha.org/] <br />
    [http://www.spywareinfoforum.com/] <br />
    [http://bleepingcomputer.com]

  • I am having trouble with my IMac 27 2006

    I am having trouble with my IMac 27 2006 start up OK will run however picture stops, scattered all over screen shutters and then sometimes freezes. Can I reinstall OSX? Or is there a program that dose Fixes?

    How to Perform an Archive and Install
    An Archive and Install will NOT erase your hard drive, but you must have sufficient free space for a second OS X installation which could be from 3-9 GBs depending upon the version of OS X and selected installation options. The free space requirement is over and above normal free space requirements which should be at least 6-10 GBs. Read all the linked references carefully before proceeding.
    1. Be sure to use Disk Utility first to repair the disk before performing the Archive and Install.
    Repairing the Hard Drive and Permissions
    Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When the menu bar appears select Disk Utility from the Installer menu (Utilities menu for Tiger, Leopard or Snow Leopard.) After DU loads select your hard drive entry (mfgr.'s ID and drive size) from the the left side list. In the DU status area you will see an entry for the S.M.A.R.T. status of the hard drive. If it does not say "Verified" then the hard drive is failing or failed. (SMART status is not reported on external Firewire or USB drives.) If the drive is "Verified" then select your OS X volume from the list on the left (sub-entry below the drive entry,) click on the First Aid tab, then click on the Repair Disk button. If DU reports any errors that have been fixed, then re-run Repair Disk until no errors are reported. If no errors are reported click on the Repair Permissions button. Wait until the operation completes, then quit DU and return to the installer. Now restart normally.
    If DU reports errors it cannot fix, then you will need Disk Warrior and/or Tech Tool Pro to repair the drive. If you don't have either of them or if neither of them can fix the drive, then you will need to reformat the drive and reinstall OS X.
    2. Do not proceed with an Archive and Install if DU reports errors it cannot fix. In that case use Disk Warrior and/or TechTool Pro to repair the hard drive. If neither can repair the drive, then you will have to erase the drive and reinstall from scratch.
    3. Boot from your OS X Installer disc. After the installer loads select your language and click on the Continue button. When you reach the screen to select a destination drive click once on the destination drive then click on the Option button. Select the Archive and Install option. You have an option to preserve users and network preferences. Only select this option if you are sure you have no corrupted files in your user accounts. Otherwise leave this option unchecked. Click on the OK button and continue with the OS X Installation.
    4. Upon completion of the Archive and Install you will have a Previous System Folder in the root directory. You should retain the PSF until you are sure you do not need to manually transfer any items from the PSF to your newly installed system.
    5. After moving any items you want to keep from the PSF you should delete it. You can back it up if you prefer, but you must delete it from the hard drive.
    6. You can now download a Combo Updater directly from Apple's download site to update your new system to the desired version as well as install any security or other updates. You can also do this using Software Update.

  • Having trouble with itunes update.  Error with itunes64.msi. Windows 8.1 64 bit.  Thanks.

    Having trouble with itunes update.  Error with itunes64.msi. Windows 8.1 64 bit.  I tried uninstalling, but I am stuck now trying to reinstall.
    It says itcan't find the itunes64.msi destination folder.

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Help with linked lists and searching

    Hi guys I'm very new to java. I'm having a problem with linked lists. the program's driver needs to create game objects, store them, be able to search the linked list etc. etc. I've read the API but I am really having trouble understanding it.
    First problem is that when I make a new game object through the menu when running the program, and then print the entire schedule all the objects print out the same as the latest game object created
    Second problem is searching it. I just really have no idea.
    Here is the driver:
    import java.util.*;
    public class teamSchedule
         public static void main (String[]args)
              //variables
              boolean start;
              game game1;
              int selector;
              Scanner scanner1;
              String date = new String();
              String venue = new String();
              String time = new String();
              String dateSearch = new String();
              double price;
              String opponent = new String();
              int addindex;
              List teamSchedLL = new LinkedList();
              String dateIndex = new String();
              String removeYN = new String();
              String venueIndex = new String();
              String opponentIndex = new String();
              start = true; //start makes the menu run in a while loop.
              while (start == true)
                   System.out.println("Welcome to the Team Scheduling Program.");
                   System.out.println("To add a game to the schedule enter 1");
                   System.out.println("To search for a game by date enter 2");
                   System.out.println("To search for a game by venue enter 3");
                   System.out.println("To search for a game by opponent enter 4");
                   System.out.println("To display all tour information enter 5");
                   System.out.println("");
                   System.out.println("To remove a game from the schedule enter search for the game, then"
                                            + " remove it.");
                   System.out.println("");
                   System.out.println("Enter choice now:");
                   scanner1 = new Scanner (System.in);
                   selector = scanner1.nextInt();
                   System.out.println("");
                   if (selector == 1)
                        //add a game
                        scanner1.nextLine();
                        System.out.println("Adding a game...");
                        System.out.println("Enter game date:");
                        date = scanner1.nextLine();
                        System.out.println("Enter game venue:");
                        venue = scanner1.nextLine();
                        System.out.println("Enter game time:");
                        time = scanner1.nextLine();
                        System.out.println("Enter ticket price:");
                        price = scanner1.nextDouble();
                        scanner1.nextLine();
                        System.out.println("Enter opponent:");
                        opponent = scanner1.nextLine();
                        game1 = new game(date, venue, time, price, opponent);
                        teamSchedLL.add(game1);
                        System.out.println(teamSchedLL);
                        System.out.println("Game created, returning to main menu. \n");
                        start = true;
                   else if (selector == 2)
                        //search using date
                        scanner1.nextLine();
                        System.out.println("Enter the date to search for in the format that it was entered:");
                        dateIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(dateIndex) == -1)
                             System.out.println("No matching date found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game if they wish.
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(dateIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(dateIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 3)
                        //search using venue name
                        scanner1.nextLine();
                        System.out.println("Enter the venue to search for in the format that it was entered:");
                        venueIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(venueIndex) == -1)
                             System.out.println("No matching venue found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(venueIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(venueIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 4)
                        //search using opponent name
                        scanner1.nextLine();
                        System.out.println("Enter the opponent to search for in the format that it was entered:");
                        opponentIndex = scanner1.nextLine();
                        if (teamSchedLL.indexOf(opponentIndex) == -1)
                             System.out.println("No matching opponent found.  Returning to main menu.");
                             start = true;
                        else
                             //give user option to remove game
                             System.out.println(teamSchedLL.get(teamSchedLL.indexOf(opponentIndex)));
                             System.out.println("Would you like to remove this game? Y/N");
                             removeYN = scanner1.nextLine();
                             if (removeYN == "Y" || removeYN == "y")
                                  teamSchedLL.remove(teamSchedLL.indexOf(opponentIndex));
                                  System.out.println("Scheduled game removed.");
                        System.out.println("\n Returning to main menu. \n");
                        start = true;
                   else if (selector == 5)
                        //display tour info
                        System.out.println("Tour Schedule:");
                        System.out.println(teamSchedLL + "\n");
                   else
                        System.out.println("Incorrect choice entered. Returning to menu");
                        System.out.println("");
                        System.out.println("");
                        System.out.println("");
    and here is the game class:
    public class game
         private static String gameDate;
         private static String gameVenue;
         private static String gameTime;
         private static double gamePrice;
         private static String gameOpponent;
         public static String gameString;
         //set local variables equal to parameters
         public game(String date, String venue, String time, double price, String opponent)
              gameDate = date;
              gameVenue = venue;
              gameTime = time;
              gamePrice = price;
              gameOpponent = opponent;
         //prints out info about the particular game
         public String toString()
              gameString = "\n --------------------------------------------------------";
              gameString += "\n Date: " + gameDate + " | ";
              gameString += "Venue: " + gameVenue + " | ";
              gameString += "Time: " + gameTime + " | ";
              gameString += "Price: " + gamePrice + " | ";
              gameString += "Opponent: " + gameOpponent + "\n";
              gameString += " --------------------------------------------------------";
              return gameString;
    }I'm sure the formatting/style and stuff is horrible but if I could just get it to work that would be amazing. Thanks in advance.
    Message was edited by:
    wdewind

    I don't understand your first problem.
    Your second problem:
    for (Iterator it=teamSchedLL.iterator(); it.hasNext(); ) {
    game game = (game)it.next();
    // do the comparation here, if this is the game want to be searched, then break;
    }

  • I am having trouble with my Mac Mini's ethernet connection.   Defining a new network interface shows no ethernet adaptor.  Reloading SL from DVD repaired.  But SL update lost ethernet again.  Will Lion Fix?

    I am having trouble with my mac mini ethernet.  It had been working for weeks after an update to SL 10.6.8.
    Once it went out and i repaired it by defining a new connection from System Preferences ->Network->(left panel service, +).
    But yesterday, after a power up.  my ethernet was not working again. I tried this old trick to repair it, but the interface choices
    listed for '+' a new service did not include Ethernet any more.  And the Utilities->System Profiler->Ethernet Cards shows
    no ethernet available.
    As a last ditch effort i reloaded my original SL from DVD.  (I think it was version 10.6.4 but i could be mistaken on the version).
    The ethernet worked!  But KeyNote wasn't going to work because apparently the version i purchased depends on 10.6.8.
    So I upgraded again to SL 10.6.8 (Plus some other updates like AirPort which i don't use).
    Now the Ethernet is not working again.  I see the same symptoms as before with the Ethernet seeming not installed.
    Is this a problem seen by others?
    Would going to Lion fix the problem?
    Could AirPort actually be the culprit and not SL?
    If i stay with my original SL, would i need to repurchase a version of KeyNote for the older version of SL?

    Have you reset the SMC?
    Shut down the computer.
    Unplug the computer's power cord.
    Wait fifteen seconds.
    Attach the computer's power cord.
    Wait five seconds, then press the power button to turn on the computer.
    While you're at it, resetting the PRAM won't hurt anything and 'might' help is SMC reset didn't work (PRAM does some port control):
    Shut down the computer.
    Locate the following keys on the keyboard: Command, Option, P, and R. You will need to hold these keys down simultaneously in step 4.
    Turn on the computer.
    Press and hold the Command-Option-P-R keys. You must press this key combination before the gray screen appears.
    Hold the keys down until the computer restarts and you hear the startup sound for the second time.
    Release the keys.
    Something else you might try .... you don't say how you're updating to 10.6.8, however, if you're using Software Update, you might try downloading the 10.6.8 combo update, which contains all updates to 10.6. Sometimes, Software Update doesn't work quite right, and installing the combo update fixes that. Download the update from Apple's download site at http://support.apple.com/downloads/ , using Disk Utility repair permissions, apply the combo update, then repair permissions again.

Maybe you are looking for