A whole lot of problems _

Ok, so I got as a gift an iPod shuffle that used to belong to my aunt. Now, I charged it for an two hours straight, then I had to leave on a trip so I put it away and then charged it straight for like 5 hours. I have no idea what is going on, but when I try to make it play, the green and orange lights just blink one first then the other, and then nothing. I've tried everything, and nothing happens. I've had it next to me without charging for about 20 minutes and now suddenly it's discharged. What is happening? And why do I get both blinking lights, and then nothing? Please, please help me!

try restoring it. If that doesn't work go to plan b.

Similar Messages

  • Restored a whole lot of deleted pictures i deleted accidently.

    Restored a whole lot of deleted pictures i deleted accidently, now the files are corrupt, but i can see them, "blurry" in the camera roll. Anyone with any clues on how to fix this?
    I put the pictures i deleted over to a new album, which was 4 days of fun, and after i transferred them over, i chose to delete the pictures in the camera roll, which was not good. The Iphone deleted both the ones in the camera roll, and the other album. When i figured the other photos were gone too, i tried to react quickly and do a "hard" reboot on my iphone, so that my phone wouldnt "register" the delete..
    The thing is that this is quite complicated, and i think i messed up real hard. Right after the reboot the pictures were there, almost, they were just files. It was 150 pictures with just the "jpeg-file" name on them..My vids shows me a message that sais something about missing URL?
    And ofcourse i have done a restore in Itunes. The restore was on the other hand from the files that was allready corrupted.
    Its complicated, i know...Allthough, if anyone can give me a hand here, its greatly appreciated!

    Well, after reading through your post a couple of times because I wasn't quite sure what you did, I feel I might understand right now.
    You had a number of pictures in the camera roll and you moved them to a new album. You then deleted photos from the Camera roll and now you want to try and recover them? Is that what you are asking?
    If so, there isn't anything you can do. Adding pictures from the Camera roll to an album does not actually MOVE the pictures, it just allows you to cataloge them. If you add pictures to a new album you create on the iPhone and then try to delete them from the iPhone, you get a warning that the pictures are in another album and deleting them from camera roll will cause them to be deleted everywhere. I just tried this to make sure. Actually, the warning box doesn't just say delete, it says delete everywhere. Deleting pictures from the camera roll before importing them to the computer will result in the photos being lost. Your attempt to reboot the phone is what corrupted the files. Unless you did a backup of the phone with the camera roll intact and have not backed it up since then, you would be able to restore to that backup. Problem is, it reads as if you have already done a backup/sync, which would result in the last backup being overwritten by the latest one. In my opinion, unless something I wrote earlier has happened, then you have lost the photos.

  • Whole slew of problems with my iPod and I'm about to go nuts..

    My 1.5 year old 4th generation iPod has been having issues recently after having the same issues in the past. Freezing, sad iPod icon, etc.
    It was hooked up to my computer when all of a sudden it said that it was corrupted (it was fine before). So I went to restore it in iTunes, and it couldn't. I disconnected and tried to restore it, it didn't work. I tried to force it into disk mode, and I can get the Apple to come up, but then it makes a weird buzzing/clicking noise and the sad iPod face comes back up.
    I've been having funky problems with iTunes too, though nothing like with the iPod. Is it worth sending in the be serviced? It's too old to be covered under its warrenty, and I'm a poor college student (it was a present to myself two summers ago for working all through summer instead of taking a vacation) and I need to be sure that the cost of getting it repaired is worth it.
    4th generation (I'm pretty sure)   Windows XP   Makes a weird whirring/clicking noise, though there aren't any loose parts inside.

    Thanks for the link, I tried a couple more things in there and managed to force it into disk mode only to have it fail on me again. Now I'm unable to get past the Apple icon without running into a sad iPod or a folder with an exclamation point, it likes to switch it up.
    I think there's something wrong with the hard drive, as the link says I should hear it spinning when it turns on. Mine starts, but clicks and stops as it misses something and the cycle repeats.
    Since it's out of warranty, there isn't a whole lot I can do as far as cost goes, but I will definitely explore all options before buying a new one.
    Thanks again!

  • P6 windows does not start at times. Other times programs stops responding and then whole lot sraches

    p6 windows does not start sometimes at times it does progarams stop responding. The whole lot has crashed twice needing me to do a recovery. What is going on. The computer is slow this time after doing a system recovery

    @Harty, 
    In your very first post you stated, this issue started after a system recovery, how long ago did you do the recovery?
     Please respond back at your earliest convenience.
    Thanks
    Clicking the White Kudos star on the left is a way to say Thanks!
    Clicking the 'Accept as Solution' button is a way to let others know which steps helped solve the problem!

  • RE K7N2G Lots of Problems

        I tried to insert a quote and the whole threads been quoted .
       Please please see the bottom post by me    Wonkonoby and please please comment comment
         this could be what I have sought for quite a while

     this post was re : the other thread K7N2G-L Lots of Problems because I teied to insert a quote and the whole thread got posted .

  • 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

  • A lot of problems after installing Windows XP using Boot Camp on a Mac Book

    I have been having a lot of problems after installing Windows XP Home Edition (2002).
    For one, after installing Windows using Boot Camp with Mac OS X 10.5.1, I opened Windows on my Mac Book, inserted the Mac OS X Disk 1 as in the instructions and got the message: +"This package requires a newer version of the Windows installer. Do you want to update the version of the Windows Installer on your system?"+ When I clicked Yes (I had NO idea what it meant at the time), I got the message: "The required resource 'UPDATE' is missing" and the Installer quit.
    How do I fix this problem?
    Another problem I have is that there is no sound on the Windows XP, yet it works perfectly on Mac OS X. Is there any way to fix this problem?
    A third problem I have is that I can't wirelessly connect to the internet using Window XP, yet I can on Mac OS X. I have no idea on how to fix this, and it's really messing with me. D:<
    D: There are way too many problems, and I have a feeling there will be a lot more later on. Help....
    ~Twilight

    ---I'm moving this topic to the Boot Camp forums.
    -Twilight

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

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

  • Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond I do not understand how a company like Apple puts experts to help users Please note that anonymous experts in Internet offer their help for money

    Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond
    I do not understand how a company like Apple puts experts to help users
    Please note that anonymous experts in Internet offer their help for money

    Users of imovie experience a lot of problems and crying for help and no one at Apple did not respond
    I do not understand how a company like Apple puts experts to help users
    Please note that anonymous experts in Internet offer their help for money

  • I have been having a lot of problems since downloading the IOS7 on my iPad whereby it freezes for several minutes.  Can anyone help me or is there something I should be doing right away when this happens?

    I have been having lots of problems with my iPad 2 freezing since I downloaded the IOS7.  It freezes for several minutes each time this happens.  Is there something you can suggest that I do to eliminate this problem in the future?

    First thing to try is a reset: Hold down the home button along with the sleep/wake button until you see the apple, then let go.

  • How do I select and email a whole lot of photos on my iPad from my iPad emails? It seems I have to go into Email and then insert one photo at a time? Isn't there a way to select all in the photos and then email the batch.?

    How do I select and email a whole lot of photos on my iPad from my iPad emails? It seems I have to go into Email and then insert one photo at a time? Isn't there a way to select all in the photos and then email the batch.?

    Actually, you can email up to 5 at a time from the Photos app. Select any more and the email share option will not appear.
    If you explain why you need to email large numbers of photos, we might be able to offer an alternative.

  • Why has my iCal got a whole lot of religious festivals in it - and all of them in German?

    I want to use iCal as my diary, on iCloud. That seems to work. But today I found that I had a whole lot of religious festivals marked in it (and at least duplicated), all in German. I don't want this stuff clogging up my diary, but equally I don't want to have to delete every entry individually (it seems that I can't delete them en bloc). Can anyone tell me what I can do to get rid of all this stuff painlessly? Thanks.

    Actually, you can email up to 5 at a time from the Photos app. Select any more and the email share option will not appear.
    If you explain why you need to email large numbers of photos, we might be able to offer an alternative.

  • 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

  • Loging on a device using a different icloud account

    I have an ipad that my brother uses. His icloud account is set up on it. I want to use mine but it wont let me log in. Help!, I have an ipad that my brother uses. His icloud account is set up on it. I want to use mine but it wont let me log in. Help!

  • Has anyone been able to register Windows?

    Although my original copy of Windows Vista Business was activated, I was never able to register it. I bought a retail copy of Vista Ultimate (Lenovo will not supply a straight Windows disk) and installed and activated it. But still, when I try to reg

  • "Levels" stopped functioning in CS3

    I'm using PS CS3 on a Mac running OS 10.6.4. The adjustment sliders in "levels" within "Adjustments" have no effect on the image. Other functions under "Adjustments" seem to be working although I have checked just a few. Anyone have a solution or is

  • High Resident and Virtual memory for DBWR

    Hello All on 64 bit RHEL5 with physical memory of 98gb. I see in OEM db console for 11gR2 database that dbwr processes is consuming 21gb of Resident and Virtual memory. There are 3 dbwr processes (all using 21g) running and i see swapping happens eve

  • Replenishment Order in WM storage type

    Hi xpert I have a scenario like this Warehouse Number 200 Storage type 210 and storage type 310 Matreial AB100 The requirement is:-------Whenever stock level at storage type 210 falls below a predifined stock level, system should create a order of st