Lots of problems with my Macbook

Hey
I have been having a lot of issues with my macbook recently, and I have a feeling that they are all related. And any help to resolve them would be much appreciated!
The first problem I've been having is the start up. My macbook takes about 15 minutes to start up, where it is just stuck on the white screen with an Apple logo. I have absolutely no applications set to run at start up, so that isn't the problem.
My next problem is the macbook freezing. Every time I open a new application, or even open a new tab in Google Chrome, my macbook freezes for a minute or so, and I get the spinning beach ball. At which point, I can't click anything, not even able to force quit the application that has caused it to freeze. Like i said, it does it with any application, so it's not a specific application thats causing it.
Another problem is the macbook running very slow in general. If I am lucky in opening a new application, and the macbook doesn't freeze, then it does still tend to go incredibly slow, and open the application much slower than it should.
These problems just came a long randomly, and wasn't due to me installing any new applications or anything. Also, I have checked my CPU and there is nothing there which is using up a lot of CPU or anything, My hard-drive is also not the problem, as I have a 250gb hard drive, and am using only about 180gb of it. My RAM is 4gb, so it shouldn't be bad at all. I am running OSX Lion, but don't have an install CD as i downloaded it off the macbook Apple Store.
The solutions that I have already tried for these are resetting PRAM and resetting SMC, but no difference. Any help would be much appreciated! Thank You!

Open Applications -> Utilities -> Activity Monitor
What processes are sucking the life out of your computer?
Click on "CPU" at the bottom of the window
What is your % Idle?
Click on "System Memory"
How much free memory do you have?

Similar Messages

  • Lots of problems with newer MacBook Pro

    I bought my first Mac about a year and a half ago. Unfortunately I've had lots of problems with it. I need to get it repaired, but I'm not sure what's wrong. I live in Thailand so I want to have some idea of what's going on before taking it to a shop (so they don't try to price gouge me).
    The first problem happened about 9 months after i bought it. The computer would become incredibly slow. Sometimes it would take 15 minutes to boot up and sometimes it wouldn't boot up at all. But sometimes it was fine. If it did boot up, sometimes when I'd go into a folder in Finder, nothing would show up. The spinning loader graphic would just spin at the bottom of the Finder window. I ran a disk check and it said it found multiple errors that could not be fixed. I erased the hard drive and reinstalled Lion and everything seemed fine. Since I live in Thailand and I need my computer for work, I didn't want to ship it off to Apple to be fixed. It seemed fine after formatting the hard drive, so I figured it was fixed.
    About 3 months later the problem came back, but much worse. I couldn't boot up or anything. I took it to a small Mac repair shop because at this point the 1 year warranty had expired. Of course inside the shop it booted up fine and I had to explain to the guy that for 5 days I haven't even been able to turn it on. Finally after restarting 4 times it began slowing down and he could see what I was experiencing. He said he could try replacing the hard drive, but couldn't guarantee it would fix it. I needed my computer badly at this point so I said let's try. I came back a couple days later and he had transferred everything to the new hard drive and installed it. Everything seemed to be working fine.
    That worked, although sometimes (rarely) something weird would happen, like the computer would just shut down for no reason. But, the DVD drive stopped working. It loads a disc OK, but it can't read it and won't burn a DVD. One time it wouldn't eject my DVD for about 30 minutes. I was trying everything I could find on Google. Finally it spit it out.
    Now, about 6 months later, I was watching a movie and about 10 small colored boxes popped up on the screen. They went away after a few seconds, so I closed my movie and went to shut down my computer. The entire screen then filled with horizontal rainbow colored static. It stayed for about 30 seconds, then the screen turned grey. I could hear and feel the fans blowing at full speed.
    And then for about a full day it went away, until earlier today. As I was backing up all my files I played a quick part of a movie. The same squares popped up on the screen so I immediately closed the movie and they went away.
    I finished backing up and then erased the hard disk. I started installing Mountain Lion, and it stopped at about 75%. I canceled the installer and restarted. After a few seconds the screen turned solid blue with white staticky lines. And now that happens every time I turn on the computer after about 30 seconds. There's no operating system because before I can even get to the installer before the screen goes.
    Sorry for the huge amount of info. I just don't have enough experience with Macs to know what's going on. My current issue resembles a video card problem, the issues before resemble a hard drive and DVD drive issue. Replacing the hard drive fixed it temporarily. Could a problem with the logic board cause all of these issues?
    Thanks for any help with this.

    A few things to note...
    If you had contacted Apple about each of the issues that you reported here, they would  have kept a log of the problems that would help them determine whether to continue support after the warranty expires.
    You might consider asking about "Flat Rate Repair Pricing." See the discussion thread here and note that some users report that the flat rate repair pricing is only available in the U.S. and Japan.
    gavin310 wrote:
    (typically they just ship your computer to Singapore instead of working on it "in-house" from what I read).
    Actually, I had great  experiences with two different macs sent to the repair depot. One computer had narcolepsy on day one. Apple sent me a box, I packed up the PB and dropped it off at UPS. Apple fixed and returned to my house two days later. The second MBP had a known video card problem. I took it to an Apple Store Genius who ran a specifc test and deduct that it was the known defective video card. The store was out of parts and ordering would take a week. Knowing my past experience with the Repair Depot, I ask for that option. The genius took my MBP and shipped it to the depot that night. Three days later, I received the fixed MBP and on the work order, their tests showed failed fans that they also replaced. Three or four weeks later, the Apple Store called to tell me they got the video card in stock.
    Gather up your grit, perseverance, and persistence before contacting Apple. Try bypassing phone support by contacting them via their online support system with the link I provided in the previous post. (I remember using the online support system and was able to choose to have them call me. At the time, I had AppleCare so i'm not certain with out-of-warranty.) Another option is to seek an authorized Apple service provider.
    Good Luck!

  • I'm having lots of problems with my Macbook, don't know where to start.

    I've got an Intel Core 2 Duo Macbook, about 4-5 years old, running 10.5.8. It's set up with two logins, one each for my wife and I. We're having problems with several things:
    Every time I open a PDF, Acrobat asks for my administrator password and reinstalls itself.
    We use OpenOffice - but every time we quit the application, it opens right up again and recovers the last doc we were working on.
    We use two airport express routers - one to create the wireless network and run the printer, one to stream music to the stereo, mostly via Airfoil. It seems overly complex, but the cable comes in one end of the house through the basement, and the stereo is at the other end of the house upstairs, and it worked fine until last week. We've lost contact with the stereo AX, and even plugged in with an ethernet cable I can't set it up - I can go through the menus, and when I try to finalize everything it just sits there blinking amber and eventually I lose the connection with the AX in the basement too - but I get it back upon restarting the computer.
    My wife is having problems with copying and pasting in Firefox/Yahoo mail using her login, but I can't duplicate them in mine.
    Firefox forgets things in my login that it remembers in hers - like it won't ever open to my homepage, always the "thanks for updating" page. I've googled that and found a few references to the problem, and tips for fixing it (deleting a few files), but they haven't worked for me.
    We have intermittent problems with permissions - occasionally I can't write to a folder I created.
    In the past I've been able to download HD video direct (without converting) from my Panasonic Lumix LX-5 camera through iMovie, but last time I tried the files were greyed out and unavailable.
    A few months back everything froze and it wouldn't start up. A friend, who is a Mac IT guy, had a look at it and reinstalled the system, and it's worked ok since, with the exceptions noted above. We do back up regularly with Time Machine, and for most of the time I've had the macbook I used Saphos antivirus, until I read it could cause problems with Time Machine, at which point I uninstalled it.
    I'm not a computer guy, I just want to have a reliable machine I can use every day without having to sit down and reconfigure some settings to get it to work. I have no idea whether these problems are related, or totally random, or a result of something I did. I half want to just forget it and replace the laptop and the one AX I can't get to work, but if it's a relatively simple fix, I'd realy prefer not to spend the money right now.
    Any recomendations would be appreciated, and feel free to ask for further information - hopefully I'll be able to provide it!
    Andrew

    Just curious. Have you opened disk utilities application in the utility folder and select your drive, and run repair permissions. This may or may not help. It also may take awhile if it has never been done. Good luck!

  • Lots of Problems with New MacBook Air

    I just got my MacBook Air and when I type any number on the keyboard it will type as if I am pressing the shift key and in Safari if I click something it will be added to my bookmarks bar and it doesnt recognize the camera, which is the internal one. Please help!

    A few things to note...
    If you had contacted Apple about each of the issues that you reported here, they would  have kept a log of the problems that would help them determine whether to continue support after the warranty expires.
    You might consider asking about "Flat Rate Repair Pricing." See the discussion thread here and note that some users report that the flat rate repair pricing is only available in the U.S. and Japan.
    gavin310 wrote:
    (typically they just ship your computer to Singapore instead of working on it "in-house" from what I read).
    Actually, I had great  experiences with two different macs sent to the repair depot. One computer had narcolepsy on day one. Apple sent me a box, I packed up the PB and dropped it off at UPS. Apple fixed and returned to my house two days later. The second MBP had a known video card problem. I took it to an Apple Store Genius who ran a specifc test and deduct that it was the known defective video card. The store was out of parts and ordering would take a week. Knowing my past experience with the Repair Depot, I ask for that option. The genius took my MBP and shipped it to the depot that night. Three days later, I received the fixed MBP and on the work order, their tests showed failed fans that they also replaced. Three or four weeks later, the Apple Store called to tell me they got the video card in stock.
    Gather up your grit, perseverance, and persistence before contacting Apple. Try bypassing phone support by contacting them via their online support system with the link I provided in the previous post. (I remember using the online support system and was able to choose to have them call me. At the time, I had AppleCare so i'm not certain with out-of-warranty.) Another option is to seek an authorized Apple service provider.
    Good Luck!

  • I have a year old iMac and Macbook, both on 10.7.3.  Every time the iMac goes to sleep I lose wi-fi.  No problem with the Macbook and iPad.  A lot of people seem to have the same problem.  What's the solution?

    I have a year-old iMac and Macbook, both on 10.7.3.  Every time the iMac goes to sleep I lose wi-fi from  Airport Express.  No problem with the Macbook or my iPad.  It seems a lot Mac users are having the same problem.  Is there a solution?  Does Apple have a solution?

    Sometimes there are problems.
    Somethings to try but probably won't help....
    1. Repair Disk Permissions
    2. Startup in Safe mode by holding down the "Shift" key....
    3. Reset the P Ram by holding down the "Command/Option/P/R" keys at the same time...
    The above are standard items to do on any Mac from time to time.
    I repair permissions at least once a month....
    The other 2 periodically as they do straighten things out when they get out of whack....
    Thanks for the feedback.

  • Is there a phone number to call Adobe.  I go around an endless loop pressing their contact info tabs?  Maybe someone at this sight can help. I am new to digital photo - I have been a B&W film photographer for many years. I have a problem with a Macbook Ai

    Is there a phone number to call Adobe.  I go around an endless loop pressing their contact info tabs?  Maybe someone at this sight can help. I am new to digital photo - I have been a B&W film photographer for many years. I have a problem with a Macbook Air.  It was working fine - I was using LR and a message came on the screen that said something like the memory was dangerously low.  I stopped and tried to delete LR files.  I couldn't do it.  I closed the program and tried reopening and got the message that there is not enough memory available to open LR.  I contacted Apple.  They spent a half hour on the phone with me and eventually told me they didn't know how to help. The tech said that LR had gobbled up all the memory and said I should contact Adobe and ask where and how my photo files are stored and to delete them.  I have several back-ups.  Thanks - Arthur

    This sort of error message only comes up for Lightroom when your hard disk is full. Indeed this has nothing to do with internal memory as that will be intelligently be dealt with. If you have a mac Book Air that is not so surprising as the cheapest versions come with very small hard disks and if you shoot raw with any recent camera, you'll fill up your hard disk very quickly and you can probably only store a few months of pictures if you are a typical photographer. So the bottom line is that you need to create some room on your hard disk. You should move some of your originals to an external hard disk. You can also delete some of your backup copies of your catalog file that Lightroom automatically generates every few days and that quickly gobble up hard disk space. So first figure out how full your hard disk is. To see that, go to the apple menu, hit -> About this Mac -> More info->Storage. You should see your internal hard disk on top and you'll find that it is almost entirely full with photos. Now find your Lightroom catalog file using Finder. It is usually in a folder in the Pictures folder in your home directory. You should see a Lightroom 5 Catalog.lrcat file, a previews file and a folder called backups. Inside the backups folder, you'll find a lot of subfolders. They have names that show the dates the backups were created. If you have backups of your entire hard disk, you can delete these backups when they are older than a few months. I usually only keep the last 4 around. Just drag the folders into the trash can on the dock on the bottom of your screen and empty the trash. This will probably free up enough space that Lightroom will already run again. Now start thinking about where you will want to store older images. If you have a good USB3 or Thunderbolt hard disk that is probably the best option. There is a video here by Adobe that has some instructions on how to do this: Is Your Hard Drive Full? Here’s How to Move Images to Another Drive in Lightroom. « Julieanne Kost's Blog If that doesn't work because you don't have enough hard drive space to run Lightroom yet, here is another set of instructions to move your files using the finder to the other hard disk: How do I move only my photos to another hard drive, leaving the catalog where it is? - The Lightroom Queen. If you follow that, as soon as you confirm all your images are on the new hard disk, you can delete them from your internal one. She is not so clear about that part but if you don't delete the originals that you moved off you don't free up space. You should move the folder structure over to the new hard disk and then reconnect the folders in Lightroom. That should make it refind all your images.
    That said, if you are uncomfortable with the computer in itself, your best bet is to find a local photography club. There is invariably a Lightroom savvy person in there that could help you move your files. That might be your best bet if you are uncomfortable moving these yourself. A general mac savvy person like you would find at an Apple store or so generally will not be able to help you with this except when they are photographers themselves and know Lightroom. You might get lucky with that.

  • I have just downloaded OSX Mavericks and am having a lot of problems with my iCloud account. I get a message "this iMac can't connect to iCloud because of a problem with (and then it quoted my e-mail address) Does anybody know what the problem could be??

    As mentioned above I have just downloaded OSX Maverick to my iMac. I am now having a lot of problems with iCloud. I get the message that "This iMac can't connect to iCloud because of a problem with, and then it goes on to quote my e-mail address. It then says to open iCloud preferences to fix this problem.
    I do this and no matter what I seem to do this message continues to return.
    Can anybody explain how to resolve this problem (please bear in mind that I am noy very computer literate).
    Many thanks
    Mike

    Hello John
    Sorry I haven't got back to you sooner.
    Thanks very much for your help, your solution solved my problem.
    Thanks again and kind regards
    Mike

  • How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something"sign... it just doesn't start the system....

    How do I fix a initializing problem with my macbook pro? I only get to the blank screen with the apple logo and the "processing something" sign... it just doesn't start the system....
    Please help
    Marcelo

    If there is no loading bar, it's usually a problem with a third party kext file in OS X itself.
    You can press the power button down to force a hardware shutdown, then reboot holding the shift key down on a wired or built in keyboard, this will disable them and you go around and update your third party software.
    Gray, Blue or White screen at boot, w/spinner/progress bar
    Also take this time to backup your users files off the machine if possible.
    Most commonly used backup methods
    Sometime that won't work and you need to do more
    ..Step by Step to fix your Mac

  • After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!

    After having yet another problem with my MacBook Pro and having to wipe the drive, I am now unable to sync my iPhones etc without erasing all the music on them. Is there a way around this? I have no other library!
    iTunes is a mess! It couldn't find it's own libraries and I was forced to create a new one. Now I don't know where my music is or if any's missing.

    columbus new boy wrote:
    How crap is that?
    It's not crap at all.
    It's not that simple. For example, I've 3500 songs on my MacBook but don't want them all on my phone, so I have to manually select each song again???
    There has to be a solution.
    Why not simply make a playlist with the songs you want on the iPhone?
    and maintain a current backup of your computer.

  • Hi, i've just got a problem with my macbook pro: I bought it two years ago and suddenly, it stopped working. Im freaking out. No answer from the people hwo suposed to know about these problems. Any tip??

    Help!
    i had a problem with my macbook pro: on tuesday 16th (agoust, 2011) I went to a friend's house and show her some document i had in my computer, then i turned off my mac and it asked me: "there are some actualizations available, do you want to update before turn off?" i clicked on yes, waited for update and then the macbook turned off. When I got back home, I tried to turn it on again.... but nothing: it didn't sound baaaammmmm as allways, it didn't reacted. I tried again, but useless.
    The next day i went to one of these "authorized management centers", but they coudn't say anything or do anything about it. First they told me the problem was the battery, then the hard disk, then the video card... but don't. I left my mac there by two weeks, hoping they could help me, but they didn't. So I picked it up and go to other place.
    The rare thing is that i have just two years with my mac, and i didn't do anything stupid on it (didn't fall, get wet, microwave, hot, shocked, hit or anything) It just stopped working. Two times it turned on. But if not, it's the same story:
    When i pushed the button to turn on, sounds like baaaaaammmm, but then again, and again, and again, and the screen doesn't get blue or anything, it appears a foder with a "?" and then the computer turns off...
    Im wondering if this is a problem on this computers, because some of my friends told me things much like that that happened with their macbooks.
    What's going on??? why this is happening?? cn you help me?

    This article may help: A flashing question mark appears when you start your Mac.

  • I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies

    I am experiencing some major problems with my MacBook Pro. I have had some issues with it turning on/off at random times, but today, when starting, I get the grey start-up screen and a recovery bar. After filling in approx 1/4 of the way, the machine dies. After starting it in recovery mode, it will not allow me to download OS X Mavericks- it says the disk is locked. Any ideas? I do not have a back-up and do not want to erase everything before I have explored my options. Help?

    try forcing internet recover, hold 3 keys - command, option, r - you should see a spinning globe
    most people will tell you to do both pram and smc resets (google) and if you still have issues, either clean install (easy) or troubleshoot (hard)

  • I need advise and help with this problem . First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product . At the present time I'm having lots of problems with the router so I was looking in to

    I need advise and help with this problem .
    First , I have been with Mac for many years ( 14 to be exact ) I do have some knowledge and understanding of Apple product .
    At the present time I'm having lots of problems with the router so I was looking in to some info , and come across one web site regarding : port forwarding , IP addresses .
    In my frustration , amongst lots of open web pages tutorials and other useless information , I come across innocent looking link and software to installed called Genieo , which suppose to help with any router .
    Software ask for permission to install , and about 30 % in , my instinct was telling me , there is something not right . I stop installation . Delete everything , look for any
    trace in Spotlight , Library . Nothing could be find .
    Now , every time I open Safari , Firefox or Chrome , it will open in my home page , but when I start looking for something in steed of Google page , there is
    ''search.genieo.com'' page acting like a Google . I try again to get raid of this but I can not find solution .
    With more research , again using genieo.com search eng. there is lots of articles and warnings . From that I learn do not use uninstall software , because doing this will install more things where it come from.
    I do have AppleCare support but its to late to phone them , so maybe there some people with knowledge , how to get this of my computer
    Any help is welcome , English is my learned language , you may notice this , so I'm not that quick with the respond

    Genieo definitely doesn't help with your router. It's just adware, and has no benefit to you at all. They scammed you so that they could display their ads on your computer.
    To remove it, see:
    http://www.thesafemac.com/arg-genieo/
    Do not use the Genieo uninstaller!

  • HT204406 I let my match subscription go because I was having a lot of problems with it. I re-subscribed and it reset all my database of music back to when I last had match. How do I fix this?

    I ended up letting my itunes match subscription go because I was having a lot of problems with it. I was getting a lot of music where it would play the censored version instead of explicit like I have. After attempting numerous times to fix I gave up and let match expire. I had updated my library by downloading a number of AAC versions from itunes and then manually deleted all of them and added the proper files back by re-ripping my CD's again. I also added a bunch of new music and because I use a rating system, re organized all my music and rated some stuff with new ratings and higher star ratings.
    About 3 months passed and I decided to give match another try. After getting it, I found it odd that my database was put there in virtually no time. Not only that, a significant amount of music I deleted (but was in the old match subscription) showed up. I knew it was broken at that point, but today, I was listening to music and items which I know have been updated and changed, have also reverted back to old settings. Is there a way to fix this?
    Also, I'm REALLY annoyed with match again. After all my work, I STILL have censored music as my match music. It is really annoying to have different music on my computer than what is in the cloud (not to mention the music which will not upload to the cloud and just constantly says "waiting"!!)

    Yeah, and it didn't work.
    I had problems when I updated to iOS 5 (lost all my apps - a few of my friends had the same problem) and when there was an update to iOS 4 (camera wouldn't work). The iOS 5 issue was sorted by backup (but I lost the app data) but for the iOS 4 issue I had to return my iPod to get a new one.

  • I have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    i have a problem with my MacBook Pro is the almost of my app not working at all like a app store and terminal and other important apps please if u can help me as fast as you can cuz i don't wanna format it that's why am on Mac now not win ?

    Abdussalam.A,
    you mentioned that Terminal does not work at all for your MacBook Pro. What currently happens when you run Terminal? In what way does it not work?

  • Lots of problems with program

    Guys,
    I really am having a lot of problems with a program. I got the program to compile but it looks absolutely nothing like it is supposed to look. I have a deadline for tomorrow and sent my teacher an email but the chances of him getting back to me by tomorrow night for a weekend is pretty much slim to none. Anyways I am sending my output and if anyone could give me advice or feedback on why it does not look right if it is something small and if its alot of things go ahead and call me dumb.
    here is my code:
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    public class Checkerboard extends Frame implements ActionListener
         private Panel topPanel;
         private TextArea topDisplay[];
         private Panel bottomPanel;
         private TextField startField = new TextField(10);
         private TextField stopField = new TextField(10);
         private TextField stepField = new TextField(10);
         private Label startLabel = new Label ("Start");
         private Label stopLabel = new Label ("Stop");
         private Label stepLabel = new Label ("Step");
         private Button goButton;
         private Button clearButton;
         private boolean clearText;
         private boolean first;
         private int start;
         private int stop;
         private int step;
         //constructor methods
         public Checkerboard()
              //construct components and initialize beginning values
              topPanel = new Panel();
              topDisplay = new TextArea[16];
              goButton = new Button("Go");
              clearButton = new Button("Clear");
              first = true;
              bottomPanel = new Panel();
              int start = 0;
              int stop = 0;
              int step = 0;
              bottomPanel.add(startField);
              bottomPanel.add(stopField);
              bottomPanel.add(stepField);
              bottomPanel.add(startLabel);
              bottomPanel.add(stopLabel);
              bottomPanel.add(stepLabel);
              bottomPanel.add(goButton);
              goButton.addActionListener(this);
              bottomPanel.add(clearButton);
              clearButton.addActionListener(this);
              clearText = true;
              //set layouts for the Frame and Panels
              setLayout(new BorderLayout());
              topPanel.setLayout(new GridLayout(4, 4, 10, 10));
              bottomPanel.setLayout(new GridLayout(3, 3, 5, 5));
              //construct the Display
              for(int i = 1; i <= 15; i++)
                        topDisplay[i] = new TextArea(null, 3, 5, 3);
              //set color to the panel
              //row 1
              for(int x = 1; x <= 4; x++)
              //set color for
              setBackground(Color.white);
              //row 2
              for(int x = 5; x <= 8; x++)
              //set color for
              setBackground(Color.white);
              //row 3
              for(int x = 9; x <= 12; x++)
              //set color for
              setBackground(Color.white);
              //row 4
              for(int x = 13; x <= 16; x++)
              //set color for
              setBackground(Color.white);
              //add components to frame
              add(topPanel, BorderLayout.NORTH);
              add(bottomPanel, BorderLayout.CENTER);
              //allow the x to close the application
              addWindowListener(new WindowAdapter()
                        public void windowclosing(WindowEvent e)
                                  System.exit(0);
                   } //end window adapter
         public static void main(String args[])
              Checkerboard f = new Checkerboard();
              f.setTitle("Checkerboard Array");
              f.setBounds(50, 100, 300, 400);
              f.setLocationRelativeTo(null);
              f.setVisible(true);
         } //end main
         public void actionPerformed(ActionEvent e)
              //convert data in TextField to int
              int start = Integer.parseInt(startField.getText());
              int stop = Integer.parseInt(stopField.getText());
              int step = Integer.parseInt(stepField.getText());
              for(int i = 1; i <=16; i++)
              setBackground(Color.blue);
              for(int i = start; i <= stop; i++)
              setBackground(Color.yellow);
              //test clear
              String arg = e.getActionCommand();
              //clear button was clicked
              if(arg.equals("Clear"))
                   clearText = true;
                   start = 0;
                   stop = 0;
                   step = 0;
                   first = true;
                   setBackground(Color.white);
                   startField.requestFocus();
              } //end the if clear
         }//end action listener
    }//end classThis will incorporate arrays, for loops, and Frames all in one.
    Create a panel containing an array of 16 TextArea components that change color to correspond with the start, stop, and step values entered by the user. Perform the following tasks to create the Checkerboard Array application shown below. When the user enters the start, stop, and step fields and then clicks the Go button, the results are also shown below.
    1.     Call your application Checkerboard.java
    2.     You will need the following variables� declare them as private:
    a.     16 component TextArea array
    b.     a Panel to hold the array
    c.     3 TextField components with length of 10
    d.     3 int variables to receive the start, stop, and step values
    e.     3 Labels to display the words Start, Stop, and Step
    f.     a Go button
    g.     a Clear button
    h.     a Panel to hold the 3 TextFields, 3 Labels, and the 2 Buttons
    3.     Create a constructor method to:
    a.     construct each of the components declared above and initializes the start, stop, and step variables to zero (when constructing the TextArea components, use the following parameters: null, 3, 5, 3)
    b.     set the Frame layout to BorderLayout
    c.     write a for loop to loop the array and set each of the 16 TextArea components in that array so they cannot be edited. In the same loop, set each of the TextArea components text to be 1 more than the index number. Also in this same loop, set the background of each of the TextArea components to white.
    d.     set the Panel for the TextArea components to GridLayout with 4 rows, 4 columns, and both gaps set to 10
    e.     set the Panel for the TextFields, Labels, and button to GridLayout with 3 rows, 3 columns, and both gaps set to 5
    f.     add the components to their respective Panels
    g.     make the buttons clickable
    h.     place the Panels in the Frame� put one in the NORTH and one in the CENTER
    i.     Enter the addWindowListener() method described in the chapter� this is the method that overrides the click of the X so it terminates the application
    4.     In your actionPerformed() method:
    a.     convert the data in your TextFields to int and store them in the variables declared above
    b.     write a loop that goes through the array setting every background color to blue
    c.     write another loop that�s based on the user inputs. Each time the loop is executed, change the background color to yellow (so� start your loop at the user�s specified starting condition. You�ll stop at the user�s specified stopping value. You�ll change the fields to yellow every time you increment your loop based on the step value. REMEMBER: Your displayed values are 1 off from your index numbers!!)
    5.     Write a main() method that creates an instance of the Checkerboard Frame.
    a.     set the bounds for the frame to 50, 100, 300, 400
    b.     set the title bar caption to Checkerboard Array
    c.     use the setVisible() method to display the application Frame during execution
    6.     After you get all of this complete, include error handling to make sure:
    a.     the values entered in the TextFields are valid integers
    b.     the start value is greater than or equal to 1 and less than or equal to 16
    c.     the stop value is greater than or equal to 1 and less than or equal to 16
    d.     the step value is greater than or equal to 1 and less than or equal to 16
    e.     the start condition is less than the stop condition
    f.     when an error occurs, give an error message in a dialog box that is specific to their error, remove the text from the invalid field, and put the cursor in that field so the user has a chance to re-enter� this can be accomplished by using multiple try/catch statements
    g.     only change the colors if the numbers are valid
    7.     Create a clear button as seen in the example below. This button should:
    a.     clear out all 3 TextFields
    b.     change the background color of all TextArea array elements to white
    c.     put the cursor in the start field
    8.     Document!!
    I know you guys are probably busy with your own stuff but any help and I would certainly appreciate it

    got the yellow boxes to come up but just one box.....so is there something wrong with my yellow set background because I am not seeing any more errors
    //packages to import
    import javax.swing.JOptionPane;
    import java.awt.*;
    import java.awt.event.*;
    public class Checkerboard extends Frame implements ActionListener
         private Panel topPanel;
         private TextArea topDisplay[];
         private Panel bottomPanel;
         private TextField startField = new TextField(10);
         private TextField stopField = new TextField(10);
         private TextField stepField = new TextField(10);
         private Label startLabel = new Label ("Start");
         private Label stopLabel = new Label ("Stop");
         private Label stepLabel = new Label ("Step");
         private Button goButton;
         private Button clearButton;
         private boolean clearText;
         private boolean first;
         private int start;
         private int stop;
         private int step;
         //constructor methods
         public Checkerboard()
              //construct components and initialize beginning values
              topPanel = new Panel();
              topDisplay = new TextArea[16];
              goButton = new Button("Go");
              clearButton = new Button("Clear");
              first = true;
              bottomPanel = new Panel();
              int start = 0;
              int stop = 0;
              int step = 0;
              bottomPanel.add(startField);
              bottomPanel.add(stopField);
              bottomPanel.add(stepField);
              bottomPanel.add(startLabel);
              bottomPanel.add(stopLabel);
              bottomPanel.add(stepLabel);
              bottomPanel.add(goButton);
              goButton.addActionListener(this);
              bottomPanel.add(clearButton);
              clearButton.addActionListener(this);
              clearText = true;
              //set layouts for the Frame and Panels
              setLayout(new BorderLayout());
              topPanel.setLayout(new GridLayout(4, 4, 10, 10));
              bottomPanel.setLayout(new GridLayout(3, 3, 5, 5));
              //construct the Display
              for(int i = 0; i <= 15; i++)
                        topDisplay[i] = new TextArea(null, 3, 5, 3);
                        topDisplay.setText(String.valueOf(i+1));
                        topDisplay[i].setEditable(false);
                        topPanel.add(topDisplay[i]);
              //add components to frame
              add(topPanel, BorderLayout.NORTH);
              add(bottomPanel, BorderLayout.CENTER);
              //allow the x to close the application
              addWindowListener(new WindowAdapter()
                        public void windowClosing(WindowEvent e)
                                  System.exit(0);
                   } //end window adapter
              public static void main(String args[])
                        Checkerboard f = new Checkerboard();
                        f.setTitle("Checkerboard Array");
                        f.setBounds(50, 100, 300, 400);
                        f.setLocationRelativeTo(null);
                        f.setVisible(true);
                   } //end main
                   public void actionPerformed(ActionEvent e)
                        boolean done = false;
                        //test go
                        String arg = e.getActionCommand();
                        //go button was clicked
                        if(arg.equals("Go"))
                   //convert data in TextField to int
                   int start = Integer.parseInt(startField.getText());
                   int stop = Integer.parseInt(stopField.getText());
                   int step = Integer.parseInt(stepField.getText());
                   while(!done)
                        try
                             if((start <= 1) && (start > 16)) throw new NumberFormatException();
                             else done = true;
                        } //end try
                        catch (NumberFormatException f)
                             JOptionPane.showMessageDialog(null, "You must enter start between 1 and 16", "Error", JOptionPane.ERROR_MESSAGE);
                             startField.setText(" ");
                             startField.requestFocus();
                        } //end catch
                        try
                             if ((stop < 1) && (stop > 16)) throw new NumberFormatException();
                             else done = true;
                        } //end try
                        catch (NumberFormatException f)
                             JOptionPane.showMessageDialog(null, "You must enter stop between 1 and 16", "Error", JOptionPane.ERROR_MESSAGE);
                             stopField.setText(" ");
                             stopField.requestFocus();
                        } //end catch
                        try
                             if ((step < 1) && (step > 16)) throw new NumberFormatException();
                             else done = true;
                        } //end try
                        catch (NumberFormatException f)
                             JOptionPane.showMessageDialog(null, "You must enter step between 1 and 16", "Error", JOptionPane.ERROR_MESSAGE);
                             stepField.setText(" ");
                             stepField.requestFocus();
                        } //end catch
                        try
                             if (start > stop) throw new NumberFormatException();
                             else done = true;
                        } //end try
                        catch (NumberFormatException f)
                             JOptionPane.showMessageDialog(null, "Stop cannot be larger than start", "Error", JOptionPane.ERROR_MESSAGE);
                             startField.setText(" ");
                             stopField.setText(" ");
                             stepField.setText(" ");
                             startField.requestFocus();
                        } //end catch
              } //end while
                        for(int i = 0; i <=15; i++)
                        topDisplay[i].setBackground(Color.blue);
                        for(int i = start; i <= stop; step++)
                        topDisplay[i].setBackground(Color.yellow);
                   } //end the if go
                   //clear button was clicked
                   if(arg.equals("Clear"))
                        clearText = true;
                        startField.setText("");
                        stopField.setText("");
                        stepField.setText("");
                        first = true;
                        setBackground(Color.white);
                        startField.requestFocus();
                   } //end the if clear
         }//end action listener
    }//end class

Maybe you are looking for

  • Price Variance not blocked for payment

    Hi it is about how to create a payment block "R" once the LIV has posted with the price variance beyound the limits set in the OMR6 under AN/AP/PP etc this is in ECC.6.0 would be great that if any one of you can assit me to resove this thanks Suraj f

  • Mouse problems with v10.7 Lion and VMWare Fusion 3.1.3; reboot of Lion temporarily fixes it

    Since installing Lion, my VMWare Fusion 3.1.3 Windows 7 and XP virtual machines have very strange mouse problems.  I thought it might have been caused by 3rd party software on my iMac (Mouse Zoom), because it seemed to work after removing the softwar

  • XP SP3 killed my Thinkpad

    Anybody know what this means: Stop: c0000139 {Entry Pointnot found} The procedure entry point GdigetBitmapBitsSize could not be locatedin the dynamic link library GDI32.dll. I did the XP Service pack 3 today. The download and installation went fine w

  • Cap 4 output corrupted by Flash 10.3?

    I have a SCORM-packaged interactive SWF created in Cap 4 which was used last year with few problems. The course has been redistributed and now users are having problems, I suspect due to an upgrade to Flash 10,3,183,10 as this seems to be the common

  • Freeze header row using over overflow container

    hi All, I have an issue with my header in the gridlayout element, we are using the overflowcontainer element. When there is a scroll bar and user scrolls, the header also scrolls, we want to just scroll the line items and the header should be frozen,