Buttons and actionlistener help.

the following code has 2 buttons, how would i use a button to get me differnt graphics but inside the same window,
say i clicked next the graphics would be slightly altered which I will do but it wont open a new window it will be in the same window, but different shapes.
I am having trouble with action listeners and really need help in how they work iv read up but dont understand, and how this would be implemented for this.
much help would be appreciated.
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class square extends JPanel
    public square()
        setPreferredSize(new Dimension(800, 700));
        int eb = 80;
        setBorder(BorderFactory.createEmptyBorder(eb, eb, eb, eb));
        setLayout(new BorderLayout(5, 10));
       JPanel buttonPanel = createButtonPanel();
         add(buttonPanel, BorderLayout.SOUTH);
    private JPanel createButtonPanel()
        JPanel bp = new JPanel();
        bp.setOpaque(false);
               JButton btn2 = new JButton("<-  Back Step ");
                JButton btn = new JButton("Next Step   ->");
                bp.add(btn2);
                bp.add(btn);
        return bp;
    @Override
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
        Rectangle2D rect = new Rectangle2D.Double(250, 150, 100, 100);
        Rectangle2D     rect2 = new Rectangle2D.Double(400, 150, 100, 100);
         Rectangle2D     rect3 = new Rectangle2D.Double(550, 150, 100, 100);
         Rectangle2D     rect4 = new Rectangle2D.Double(250, 300, 100, 100);
         Rectangle2D     rect5 = new Rectangle2D.Double(400, 300, 100, 100);
         Rectangle2D     rect6 = new Rectangle2D.Double(550, 300, 100, 100);
         Rectangle2D     rect7 = new Rectangle2D.Double(250, 450, 100, 100);
         Rectangle2D     rect8 = new Rectangle2D.Double(400, 450, 100, 100);
         Rectangle2D     rect9 = new Rectangle2D.Double(550, 450, 100, 100);
         g.drawString("b0,0", 300, 130);
        g.drawString("b1,0", 300, 110);
         g.drawString("b2,0", 300, 90);
             g.drawString("b0,1", 450, 110);
        g.drawString("b1,1", 450, 90);
        g.drawString("b2,1", 450, 70);
             g.drawString("b0,2", 600, 90);
        g.drawString("b1,2", 600, 70);
        g.drawString("b2,2", 600, 50);
         g.drawString("a0,0", 200, 200);
        g.drawString("a1,0", 150, 200);
         g.drawString("a2,0", 100, 200);
             g.drawString("a0,1", 150, 350);
        g.drawString("a1,1", 100, 350);
        g.drawString("a2,1", 50, 350);
               g.drawString("a0,2", 100, 500);
        g.drawString("a1,2", 50, 500);
        g.drawString("a2,2", 15, 500);
        g2.setPaint(Color.black);
        g2.draw(rect);
        g2.draw(rect);
          g2.draw(rect2);
         g2.draw(rect3);
          g2.draw(rect4);
         g2.draw(rect5);
          g2.draw(rect6);
         g2.draw(rect7);
          g2.draw(rect8);
          g2.draw(rect9);
        Stroke oldStroke = g2.getStroke();
        g2.setStroke(new BasicStroke(5));
        g2.setStroke(oldStroke);
    private static void createAndShowUI()
        JFrame frame = new JFrame("Matrix Multiplication - Step by Step ");
        frame.getContentPane().add(new square());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
            public void run()
                createAndShowUI();
}

ok I had a look over it, I got this
import java.awt.BasicStroke;
import java.awt.BorderLayout;
import java.awt.Color;
import java.awt.Dimension;
import java.awt.Font;
import java.awt.Graphics;
import java.awt.Graphics2D;
import java.awt.GridLayout;
import java.awt.RenderingHints;
import java.awt.Stroke;
import java.awt.geom.Ellipse2D;
import java.awt.geom.Rectangle2D;
import javax.swing.BorderFactory;
import javax.swing.JButton;
import javax.swing.JFrame;
import javax.swing.JLabel;
import javax.swing.JPanel;
public class square extends JPanel implements ActionListener
    public square()
        setPreferredSize(new Dimension(800, 700));
        int eb = 80;
        setBorder(BorderFactory.createEmptyBorder(eb, eb, eb, eb));
        setLayout(new BorderLayout(5, 10));
       JPanel buttonPanel = createButtonPanel();
         add(buttonPanel, BorderLayout.SOUTH);
  public void actionPerformed(ActionEvent e) {
        System.out.println("hello");
    private JPanel createButtonPanel()
        JPanel bp = new JPanel();
        bp.setOpaque(false);
               JButton btn2 = new JButton("<-  Back Step ");
                JButton btn = new JButton("Next Step   ->");
                bp.add(btn2);
                bp.add(btn);
         btn.addActionListener(this);
        return bp;
    @Override
    protected void paintComponent(Graphics g)
        super.paintComponent(g);
        Graphics2D g2 = (Graphics2D) g;
        g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                RenderingHints.VALUE_ANTIALIAS_ON);
        Rectangle2D rect = new Rectangle2D.Double(250, 150, 100, 100);
        Rectangle2D     rect2 = new Rectangle2D.Double(400, 150, 100, 100);
         Rectangle2D     rect3 = new Rectangle2D.Double(550, 150, 100, 100);
         Rectangle2D     rect4 = new Rectangle2D.Double(250, 300, 100, 100);
         Rectangle2D     rect5 = new Rectangle2D.Double(400, 300, 100, 100);
         Rectangle2D     rect6 = new Rectangle2D.Double(550, 300, 100, 100);
         Rectangle2D     rect7 = new Rectangle2D.Double(250, 450, 100, 100);
         Rectangle2D     rect8 = new Rectangle2D.Double(400, 450, 100, 100);
         Rectangle2D     rect9 = new Rectangle2D.Double(550, 450, 100, 100);
         g.drawString("b0,0", 300, 130);
        g.drawString("b1,0", 300, 110);
         g.drawString("b2,0", 300, 90);
             g.drawString("b0,1", 450, 110);
        g.drawString("b1,1", 450, 90);
        g.drawString("b2,1", 450, 70);
             g.drawString("b0,2", 600, 90);
        g.drawString("b1,2", 600, 70);
        g.drawString("b2,2", 600, 50);
         g.drawString("a0,0", 200, 200);
        g.drawString("a1,0", 150, 200);
         g.drawString("a2,0", 100, 200);
             g.drawString("a0,1", 150, 350);
        g.drawString("a1,1", 100, 350);
        g.drawString("a2,1", 50, 350);
               g.drawString("a0,2", 100, 500);
        g.drawString("a1,2", 50, 500);
        g.drawString("a2,2", 15, 500);
        g2.setPaint(Color.black);
        g2.draw(rect);
        g2.draw(rect);
          g2.draw(rect2);
         g2.draw(rect3);
          g2.draw(rect4);
         g2.draw(rect5);
          g2.draw(rect6);
         g2.draw(rect7);
          g2.draw(rect8);
          g2.draw(rect9);
        Stroke oldStroke = g2.getStroke();
        g2.setStroke(new BasicStroke(5));
        g2.setStroke(oldStroke);
    private static void createAndShowUI()
        JFrame frame = new JFrame("Matrix Multiplication - Step by Step ");
        frame.getContentPane().add(new square());
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.pack();
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    public static void main(String[] args)
        java.awt.EventQueue.invokeLater(new Runnable()
            public void run()
                createAndShowUI();
}it produces hello once I click the button, but how would I produce the same frame once the button is clicked, not a new frame, the same one iv got with slight adjustments inside it..which i will do.

Similar Messages

  • Dynamic Creation of Buttons and Actions HELP

    Hi there,
    I have got a problem (or maybe even two) with the dynamic Creation of buttons. The code below creates the buttons.
    My main problem is, that the parameter created for the button's action isn't propagated to the assigned event handler. I get a null, though the name of the parameter in the event handler and the name of the parameter added to the action are the same.
    Could it also be that I'm always using the same action? I.e. does wdThis.wdGetAddElementAction() always return the same action instance? If yes, how can I create individual actions for each button?
    Any help is appreciated!
    Cheers,
    Heiko
    "    for(int i=rootContainer.getChildren().length; i<wdContext.nodeFeature().size();i++)
                   IPrivateVCT_Feature.IFeatureElement featureElement = wdContext.nodeFeature().getFeatureElementAt(i);
                   IWDTray featureTray = (IWDTray) view.createElement(IWDTray.class, featureElement.getName());
                   IWDCaption header = (IWDCaption) view.createElement(IWDCaption.class, featureElement.getName()+"_Header");
                   header.setText(featureElement.getName());
                   featureTray.setHeader(header);
                   featureTray.setExpanded(false);
                   rootContainer.addChild(featureTray);
                   IWDButton button = (IWDButton) view.createElement(IWDButton.class, featureElement.getName()+"_Button_AddElement");
                   IWDAction actionAddElement = wdThis.wdGetAddElementAction();
                   actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
                   button.setOnAction(actionAddElement);
                   button.setText("Add Element");
                   featureTray.addChild(button);

    Hi Heiko,
    You have done everything correctly....except for 1 line
    in the code...
    Replace the following line in your code:
    actionAddElement.getActionParameters().addParameter("featureIndex", new Integer(i).toString());
    Replace the above line with this code:
    button.mappingOfOnAction().addParameter("featureIndex",i);
    Actually in your code, you are not associating the parameter with the button...
    Note that addParameter(...) comes with two signatures: addParameter(String param, String value) and addParameter(String param, int value). You can use any of them based on yuor need.
    Hope it helps,
    Thanks and Regards,
    Vishnu Prasad Hegde

  • Stuck Hold Button and Replacement Help

    My Ipod wouldn't turn on a few days ago.
    I finally realized that it was because my hold button is broken. It's stuck on hold. I have tried moving it in a lot of ways and it won't unhold.
    Before I discovered this I sent in a replacement/repair request to Ipod. the box arrived today. The problem I described was that the ipod would not turn on etc.
    I'm really nervous now though, cause it said on the policy etc that if they don't have the part/find it not broken etc they charge you up to 100 dollars. I'm afraid that my description will be incorrect or that it knocking around in the box or something will make it not broken anymore.
    Should I send it back in the box that came? what else should I try?
    I don't want to pay anything for repairs. I bought this at the end of august so it's still under warranty
    Harrison

    "cause it said on the policy etc that if they don't have the part/find it not broken etc they charge you up to 100 dollars."
    I think you'll find that this very rarely happens. The usual thing if Apple finds no problem with the iPod is to return it and there's no charge.
    If you pack it properly in the box it shouldn't get knocked around.

  • I have tried loading 3 different cds that I just bought into Itunes and I click the import cd button and it goes through the motions of importing the cds, but when I go to my library none of these cds is there.  Help, please!

    I have tried loading 3 different cds that I recently purchased into Itunes.  I click the import cd button and Itunes goes through the motion of copying and importing the cds, but the songs are not in my music library.  I have searched everywhere to find where these cds might be, but to no avail.  Could really use some help here.  Never used to have this problem.

    Are they in the relevant artist & album folders when you look via Windows Explorer. If so something may have gone wrong with the index of the Music playlist. Download the current iTunes Free Single of the Week. I know it sounds odd, but it should fix the problem.
    If that doesn't work close iTunes and delete the hidden file sentinel from inside the main iTunes folder, then start iTunes again. It should run a consistency check when it starts up.
    tt2

  • My screen continually freezes up.  I've tried closing all apps that are openfreezby double clicking on the home button and closing them. I have held down on the home button and start button simultaneously and it still freezes. Can someone out the help me?

    MY screen continually freezes up. I've tried closing all apps that are open and have held down the home button and start button simultaneously but neither helped. Can someone out there help me?

    Well the next couple of things to try would be to reset all settings, and if that doesn't help, it's probably time to restore the iOS software.
    Settings>General>Reset>Reset all settings. That will take all settings on the iPad back to factory defaults. It will not delete anything and you will not lose any data, but you will have to enter all settings again ...WiFi passwords, enable Siri, select your wallpaper, adjust brightness, turn on location services and set privacy settings, etc, etc.
    You can read about restoring the software here.
    iTunes: Restoring iOS software - Support - Apple
    Should you decide to restore the iOS, it is extremely important that you back up first so that you can restore from the backup and then sync with iTunes afterward in order to restore all content back to the iPad. It is all covered in the kb article.
    If you do not sync with iTunes, then I assume that you backup with iCloud. In that case you can erase the device in Settings>General>Reset>Erase all content and settings. Once again, backing up with I loud is I,operative before you do this so that you can restore from the iCloud backup after you erase the iPad and start over again with activation.
    You should read this first before you restore from either backup.
    How to backup and restore from a backup
    http://support.apple.com/kb/HT1766
    This is a must read before you erase the iPad should you decide to go that route.
    iOS: Understanding 'Erase All Content and Settings' - Support - Apple

  • Everytime I start up my Mac mini I'll be able to use it only for a little while then the beach ball appears and it won't let me do anything I have to keep forcing it to turn off by holding the power button can someone help me?

    I have no external devices connected to my Mac mini but still everytime I use it after about half hour to an hour in whatever I'm using wether it's the Internet or iPhoto or iTunes the beach ball appears and I cannot get it to stop I always have to press and hold the power button and force it to switch off I then do a safe reboot and it starts up again fine but same thing again after a certain amount of time it will freeze. I have also had on some occasions a bright white screen with a folder and a flashing question mark appear but it's not because of any external devices as they have all been removed please can someone help me as I have no idea why this keeps happening to my computer and I'm worried that there's something seriously wrong it's only about 6 months old and I have no experience in dealing with computers ??

    EtreCheck version: 2.1.8 (121)
    Report generated 13 February 2015 15:33:46 GMT
    Download EtreCheck from http://etresoft.com/etrecheck
    Click the [Click for support] links for help with non-Apple products.
    Click the [Click for details] links for more information about that line.
    Hardware Information: ℹ️
        Mac mini (Late 2012) (Technical Specifications)
        Mac mini - model: Macmini6,1
        1 2.5 GHz Intel Core i5 CPU: 2-core
        4 GB RAM Upgradeable
            BANK 0/DIMM0
                2 GB DDR3 1600 MHz ok
            BANK 1/DIMM0
                2 GB DDR3 1600 MHz ok
        Bluetooth: Good - Handoff/Airdrop2 supported
        Wireless:  en1: 802.11 a/b/g/n
    Video Information: ℹ️
        Intel HD Graphics 4000
            LG TV spdisplays_1080p
    System Software: ℹ️
        OS X 10.10.2 (14C109) - Time since boot: 0:11:35
    Disk Information: ℹ️
        APPLE HDD ST500LM012 disk0 : (500.11 GB)
            EFI (disk0s1) <not mounted> : 210 MB
            Macintosh HD (disk0s2) / : 499.25 GB (398.54 GB free)
            Recovery HD (disk0s3) <not mounted>  [Recovery]: 650 MB
    USB Information: ℹ️
        Apple Inc. BRCM20702 Hub
            Apple Inc. Bluetooth USB Host Controller
        Apple, Inc. IR Receiver
    Thunderbolt Information: ℹ️
        Apple Inc. thunderbolt_bus
    Configuration files: ℹ️
        /etc/sysctl.conf - Exists
    Gatekeeper: ℹ️
        Mac App Store and identified developers
    Kernel Extensions: ℹ️
            /Applications/AVG AntiVirus.app
        [loaded]    com.avg.Antivirus.OnAccess.kext (2015.0 - SDK 10.8) [Click for support]
    Launch Agents: ℹ️
        [running]    com.avg.Antivirus.gui.plist [Click for support]
    Launch Daemons: ℹ️
        [loaded]    com.adobe.fpsaud.plist [Click for support]
        [running]    com.avg.Antivirus.infosd.plist [Click for support]
        [running]    com.avg.Antivirus.services.plist [Click for support]
    User Login Items: ℹ️
        iTunesHelper    Application  (/Applications/iTunes.app/Contents/MacOS/iTunesHelper.app)
    Internet Plug-ins: ℹ️
        Silverlight: Version: 5.1.30514.0 - SDK 10.6 [Click for support]
        FlashPlayer-10.6: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        Flash Player: Version: 16.0.0.305 - SDK 10.6 [Click for support]
        QuickTime Plugin: Version: 7.7.3
        Default Browser: Version: 600 - SDK 10.10
    3rd Party Preference Panes: ℹ️
        Flash Player  [Click for support]
    Time Machine: ℹ️
        Time Machine not configured!
    Top Processes by CPU: ℹ️
             5%    WindowServer
             1%    AVG
             0%    AppleSpell
             0%    fontd
             0%    cloudpaird
    Top Processes by Memory: ℹ️
        215 MB    com.apple.WebKit.WebContent
        125 MB    avgd
        107 MB    Safari
        90 MB    Messages
        69 MB    WindowServer
    Virtual Memory Information: ℹ️
        171 MB    Free RAM
        1.68 GB    Active RAM
        1.53 GB    Inactive RAM
        637 MB    Wired RAM
        1.34 GB    Page-ins
        2 MB    Page-outs
    Diagnostics Information: ℹ️
        Feb 13, 2015, 03:20:28 PM    Self test - passed
        Feb 6, 2015, 08:08:07 PM    /Library/Logs/DiagnosticReports/Kernel_2015-02-06-200807_[redacted].panic [Click for details]

  • My iphone 5 has a black screen and is unresponsive and it also has a broken lock button can anyone help?

    I have an iphone 5 that ive had for two years. i plugged it in for the night to charge, and when i woke up it had a black screen. i tried to wake it up using the home button since my lock button does not work. ive tried to hold the lock and home button down for a certain amount of time, but it doesnt work, and im not sure if its the lock button or if my phone is just burnt out. please help.

    Hey there mafro37,
    Welcome to Apple Support Communities.
    The articles linked below will help you troubleshoot the issues that you’ve described, where both the Sleep/Wake button isn’t responding and the iPhone 5 only displays a blank black screen. 
    Get help with buttons and switches on your iPhone, iPad, or iPod touch - Apple Support
    Get help with the screen on your iPhone, iPad, or iPod touch - Apple Support
    Take care,
    -Jason

  • My iPad frequently locks up, even after updating to iOS 7.1.  When it locks up it's nonresponsive to the home button and the only remedy is to force a shut down and reboot. Help!

    My iPad frequently locks up, even after updating to iOS 7.1.  When it locks up it's nonresponsive to the home button and the only remedy is to force a shut down and reboot. Help!

    DEVICE NOT RECOGNISED IN ITUNES
    If you have connected your device to your computer and it does not appear in the side bar in iTunes then for Windows computers read http://support.apple.com/kb/TS1538 or if you have a MAC then read http://support.apple.com/kb/ts1591 for troubleshooting steps.

  • HT5957 I just updated my iphone 4 to the iOS7.0.2 and now I can't get the phone to work its frozen on a screen that shows a blue music button and Itunes below it then below that an arrow pointing upward and below that a pic of my cable charger. Any help?

    I just updated my iphone 4 to the new iOS 7.0.2 and now it's stuck in a screen that has a blue music button and below that itunes and below that and arrow pointing up and below that a pic of a charging cable. Help?

    If you are implying that you've never synced and backed up the device, well that is simply not smart.
    User's can backup their iOS devices at any time by connecting to iTunes and selecting the backup option from the Summary tab or by backing up to iCloud.
    Most people will regularly backup their devices and transfer iTunes purchases to iTunes on the computer for safekeeping.
    Basically, you are stating that the device has not been used as designed and now data has been lost.  Sorry, that's just too bad.  But at least now you know how to prevent this in the future.

  • I preordered One Direction's new album Midnight Memories, but did not purchase it. It is not in my downloads or purchases even though it says it's purchased. I can't even buy it because it says purchased and will not let me click the button. Please help!

    I preordered One Direction's new album Midnight Memories, but did not purchase it. It is not in my downloads or purchases even though it says it's purchased. I can't even buy it because it says purchased and will not let me click the button. Please help!

    Try:
    HT2519 Pre-ordered album, it says...: Apple Support Communities

  • HT1212 my iphone is frozen on the lock screen and will not let me enter my passcode, I have held the home button and power button for up to 1 minute and plugged it up to itunes because its locked it wont work? i need help

    i have connected it to itunes like i was told to do and it wont do anything because its locked with a passcode and its frozen on the lock screen and will not let me enter myt passcode and after a while it just shuts off, it has been doing this for almost 48 hours. I was told to hold the home button and power button to shut it down and that I could then restart it and it would work... Nothing has helped, What can I try???

    Reset the device by pressing and holding the home and power buttons for 15-20 seconds until the white Apple logo appears.
    If that does not resolve, restore the device via iTunes on the computer.
    If all else fails, take the device to Apple (or whomever provides support in your country) for evaluation and possible replacement.

  • I go to my settings and i change something and then i hit the home button and it wont let me go home. So i then try to turn my screen of and turn it back on to see if that will help. It will not shut off either. How do i fix this problem?

    I have a problem! I go to my settings to change something and then i hit the home button to go home and it will not let me. So I hit the button on the top to turn it off to see if i can make it anybetter. My screen will not turn off! I tried to shut it off and it wont let me do that either. So now i am stuck in my iPod settings until my iPod dies. How do i fix this problem?

    A reset may help. Tap and hold the Home button and the On/Off buttons for approximately 15-20 seconds, until the Apple logo reappears. When the logo appears, release both buttons.
    No content is affected by this procedure.

  • HT1379 A flashing question mark appears when I re/start my MacBook Air 2013. At first, I pressed Power & Option button and it recovered from Internet. Then, four options appeared but none of them are helpful. Could u please help me to solve it asap?

    Hello,
    A flashing question mark appears when I re/start my MacBook Air 2013. Then, I pressed POWER & OPTOIN buttons and internet options appeared for internet recovery. After internet recovery, the OS X utilities appears with four options (Restore from Time machine, Reinstall OS X, Get help online and Disk utility). But none of them seemed helpful. On the last option Disk utility, the icon created only with 33KB and other disk 1 Mac Os X Base system. On First Aid, the icon Repair disk is disabled. So I could not click on repair disk. Could you please suggest me how to solve this problem asap? Thank you so much for your help in advance!

    You can try the following:
    Install or Reinstall Lion/Mountain Lion from Scratch
    Be sure you backup your files to an external drive or second internal drive because the following procedure will remove everything from the hard drive.
    Boot to the Recovery HD:
    Restart the computer and after the chime press and hold down the COMMAND and R keys until the menu screen appears. Alternatively, restart the computer and after the chime press and hold down the OPTION key until the boot manager screen appears. Select the Recovery HD and click on the downward pointing arrow button.
    Erase the hard drive:
      1. Select Disk Utility from the main menu and click on the Continue button.
      2. After DU loads select your startup volume (usually Macintosh HD) from the
          left side list. Click on the Erase tab in the DU main window.
      3. Set the format type to Mac OS Extended (Journaled.) Optionally, click on
            the Security button and set the Zero Data option to one-pass. Click on
          the Erase button and wait until the process has completed.
      4. Quit DU and return to the main menu.
    Reinstall Lion/Mountain Lion: Select Reinstall Lion/Mountain Lion and click on the Install button.
    Note: You will need an active Internet connection. I suggest using Ethernet if possible
                because it is three times faster than wireless.

  • So i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button. it turned white and i tried charging it when it died but it went back to usual please help!

    so i was updating my ipod touch (4g) to ios 6 and i needed to stop it in the middle of updating. so i held the home button and the lock button at the same time for it to restart. It started turning on with the apple symbol and then the screen went white. I kept trying to do the same thing but it wouldnt work. Eace time i did that the screen was a different color. I was yellow/white at one point, blue at another time and sometimes the color behind the apple symbol. It got really HOT and i just let it die. When it was dead i put it on a charger. once it got charged up it started turning on with the apple symbol. then it turned white again and then restarted without me touching anything. When it restarted it turned the blue again. i took it off the charger immediantly because i didnt want it getting as hot as it was before. ive tried every way i know how to fix it but not putting it in the computer because i dont want it to ruin the computer. Please help because i really dont want to get a new ipod. Ive read a lot about how to fix it here on apple but there all the same answer and it still doesnt work. Please respond ASAP! thank you! i could really use your help right now!

    First see if placing the iPod in Recovery Mode will allow a restore.
    Next try DFU mode and restore.
    How to put iPod touch / iPhone into DFU mode « Karthik's scribblings
    If not successful then time for an appointment at the Genius Bar of an Apple store. You are not alone with this problem.

  • My Ipad is stuck on the connect to itunes screen and I cannot get it to work even when I connect to itunes. I have tried switching it off and plugging it in while the home button and on button are switched but nothing works.  Please help me.

    My Ipad is stuck on the connect to iTunes screen, I have tried plugging into iTunes but it makes the necessary noise but the computer does not recognise it and nothing alters on the Ipad screen. Have tried various computers and leads and it still does not work.  Have also tried the switching off, plugging in to computer and turning on again using the on button and then the home button but nothing works.  This happened while I was downloading software update.   Please help me.

    I suggested several things to GeekyNerdGirl in her first post here. Take a look.
    My iPad is in what seems like permanent restore mode after iOS 7.2 update?
    It can take more than a few attempts before Recovery Mode will work and you have to follow the steps exactly. DFU mode is even harder to perform correctly beside of the 10 second hold. Don't stop trying. Eventually one of these methods could work for you.

Maybe you are looking for