Why won't this Applet work? Any help?

I followed a tutorial, though the tutorial left me to do a lot of the work. Which is good.
Anyway, I finished the Applet, but I get a message in the bottom corner of the window saying "Applet not initialized."
I can't figure out what's wrong.
I downloaded the tutorial's source code and checked it, and I think I have everything they do... I tried running the downloaded source code and it worked fine.
Here's the main class file of my Applet:
import java.applet.*;
import java.awt.*;
import java.net.*;
public class Main2 extends Applet implements Runnable
          AudioClip ballLost = getAudioClip(getCodeBase(), "beep_1.au");
          AudioClip bounce = getAudioClip(getCodeBase(), "beep_2.au");
          Player player = new Player();
          Ball ball1 = new Ball(20, this.getSize().width+40, this.getSize().height-30,1,3,8,ballLost,bounce,player,Color.red);
          Ball ball2 = new Ball(20, this.getSize().width+40, 30,1,5,10,ballLost,bounce,player,Color.blue);
          Thread th;
          Cursor c;
          Image dbImage;
          Graphics dbg;
     boolean isStopped = true;
     public void init()
          c = new Cursor(Cursor.CROSSHAIR_CURSOR);
          this.setCursor(c);
          ballLost = getAudioClip(getCodeBase(), "beep_1.au");
          bounce = getAudioClip(getCodeBase(), "beep_2.au");
          player = new Player();
          ball1 = new Ball(20, this.getSize().width+40, this.getSize().height-30,1,3,8,ballLost,bounce,player,Color.red);
          ball2 = new Ball(20, this.getSize().width+40, 30,1,5,10,ballLost,bounce,player,Color.blue);
     public void start()
          th = new Thread(this);
          th.start();
     public void stop()
          th.stop();
     public void run()
          Thread.currentThread().setPriority(Thread.MIN_PRIORITY);
          while (true)
               if (player.getLives()>0 && !isStopped)
                    ball1.move();
                    ball2.move();
               repaint();
               try
                    Thread.sleep (30);
               catch (InterruptedException ex)
                    // do nothing
               Thread.currentThread().setPriority(Thread.MAX_PRIORITY);
     public void paint(Graphics g)
          if (player.getLives()>0)
               ball1.drawBall(g);
               ball2.drawBall(g);
               if (isStopped)
                    g.setColor(Color.green);
                    g.drawString("Double click to start.", 40, 200);
          else if (player.getLives() <= 0)
               g.setColor(Color.green);
               g.drawString("Game Over!", 40, 200);
               g.drawString("Double click to player again", 40, 300);
               isStopped = true;
     public boolean mouseDown(Event e, int x, int y)
          if (!isStopped)
               if (ball1.userHit(x,y))
                    //Need audio
                    ball1.ballWasHit();
               else if (ball2.userHit(x,y))
                    //Need audio
                    ball2.ballWasHit();
               else
                    //Play normal shot audio
          else if (isStopped && e.clickCount == 2)
               isStopped = false;
               init();
          return true;
     public void update (Graphics g)
          if (dbImage == null)
               dbImage = createImage (this.getSize().width, this.getSize().height);
               dbg = dbImage.getGraphics ();
          dbg.setColor (getBackground ());
          dbg.fillRect (0, 0, this.getSize().width, this.getSize().height);
          dbg.setColor (getForeground());
          paint (dbg);
          g.drawImage (dbImage, 0, 0, this);
}My HTML code uses <APPLET CODE="Main2.class" WIDTH=700 HEIGHT=400>.
And they are both located in the same folder.
Any idea what's going wrong here?
Thanks for any help.

All of the files are in the folder.
My folder contains:
Main2.class
Ball.class
Player.class
ShooterGame.html
beep_1.au
beep_2.au
And corresponding source code files.
Looks correct, right?
...

Similar Messages

  • Why won't this code work?

    All I want to do is resize the select panel to the same size as east panel. Why won't it work?
    Space.java_____________________________________________
    import javax.sound.sampled.*;
    import java.awt.*;
    import javax.sound.midi.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import java.io.*;
    public class Space extends JFrame implements ActionListener, Runnable{
         //Sound
         Sequence currentSound;
         Sequencer player;
         Thread soundCheck;
         boolean check = true;
         public void start(){
              soundCheck = new Thread();
              soundCheck.start();
         public void run(){
              try{
                   File bgsound = new File("Sounds" + File.separator + "Space.mid");
                   currentSound = MidiSystem.getSequence(bgsound);
                   player = MidiSystem.getSequencer();
                   player.open();
                   player.setSequence(currentSound);
                   player.start();
                   checkSound();
              } catch (Exception exc){}
         public void checkSound(){
              while(check){
                   if(!player.isRunning()){
                     run();
                   try{
                        soundCheck.sleep((player.getMicrosecondLength() / 1000)-player.getMicrosecondPosition()); // sleep for the length of the track
                   }catch (InterruptedException IE){}
         //Screen Variables:
         Dimension SCREEN = Toolkit.getDefaultToolkit().getScreenSize();
         final int SCREENWIDTH = SCREEN.width;
         final int SCREENHEIGHT = SCREEN.height;
         //Panels:
         JPanel select, main, north, south, east;
        //Buttons:
         JButton instructB, cheatB, playB, exit, about;
         //Labels:
         JLabel open, cheat1, cheat2, cheatInstruct, i1, i2 , i3, aboutLabel;
         //The container and frame:
         static Space jframe;
         Container content;
         //The Constructor:
         public Space(){
              super("Space");
              //set  container attributes:
              content = getContentPane();
              content.setLayout(new BorderLayout());
              //init panels:
              main   = new JPanel();
              select = new JPanel();
              north  = new JPanel();
              east   = new JPanel();
              south  = new JPanel();
              //set panel attributes:
              select.setLayout(new GridLayout(3,0,10,10));     
              select.setBackground(Color.black);
              main.setBackground(Color.black);
              north.setBackground(Color.black);
              //add panels:
              content.add("West", select);
              content.add("Center", main);
              content.add("North", north);
              content.add("East", east);
              //Image Icons:
              Icon exit1 = new ImageIcon("Images" + File.separator + "exit1.gif");
              Icon exit2 = new ImageIcon("Images" + File.separator + "exit2.gif");
              Icon about1 = new ImageIcon("Images" + File.separator + "about1.gif");
              Icon about2 = new ImageIcon("Images" + File.separator + "about2.gif");
              //init buttons, add their listeners, and set their attributes:
              instructB = new JButton("Instructions", new ImageIcon("Images" + File.separator + "ship.gif"));
              instructB.setContentAreaFilled(false);
              instructB.setForeground(Color.yellow);
              instructB.addActionListener(this);
              select.add(instructB);
              cheatB = new JButton("Cheats", new ImageIcon("Images" + File.separator + "cheat.gif"));
              cheatB.setContentAreaFilled(false);
              cheatB.setForeground(Color.yellow);
              cheatB.addActionListener(this);
              select.add(cheatB);
              playB = new JButton("Play", new ImageIcon("Images" + File.separator + "ship2.gif"));
              playB.setContentAreaFilled(false);
              playB.setForeground(Color.yellow);
              playB.addActionListener(this);
              select.add(playB);          
              exit = new JButton();
              exit.setRolloverEnabled(true);
              exit.setIcon(exit1);
              exit.setRolloverIcon(exit2);
              exit.setBorderPainted(false);
              exit.setContentAreaFilled(false);
              exit.addActionListener(this);
              north.add(exit);
              about = new JButton();
              about.setRolloverEnabled(true);
              about.setIcon(about1);
              about.setRolloverIcon(about2);
              about.setBorderPainted(false);
              about.setContentAreaFilled(false);
              about.addActionListener(this);
             north.add(about);
             //Labels:
             open = new JLabel("", new ImageIcon("Images" + File.separator + "open.gif"), JLabel.CENTER);
              main.add(open);
              cheat1 = new JLabel("<html><h1>tport</h1></html>");
              cheat1.setForeground(Color.red);
              cheat2 = new JLabel("<html><h1>zap</h1></html>");
              cheat2.setForeground(Color.green);
              cheatInstruct = new JLabel("<html><h1>Type a cheat at any time during a game, and press the \"Enter\" key.</html></h1>");
              cheatInstruct.setForeground(Color.blue);     
              i1 = new JLabel("<html><h1>The arrow keys move your ship.</h1></html>");
              i1.setForeground(Color.red);
              i2 = new JLabel("<html><h1>The space-bar fires the gun.</h1></html>");
              i2.setForeground(Color.green);
              i3 = new JLabel("<html><h1>The red circles give upgrades.</html></h1>");
              i3.setForeground(Color.blue);
              aboutLabel    = new JLabel("", new ImageIcon("Images" + File.separator + "aboutImage.gif"), JLabel.CENTER);
              //centerPanel();     
         private void centerPanel(final int width, final int height){
              try{
                   Runnable setPanelSize = new Runnable(){
                        public void run(){
                             east.setPreferredSize(new Dimension(width, height));                    
                   SwingUtilities.invokeAndWait(setPanelSize);
              } catch (Exception e){}
         public void actionPerformed(ActionEvent e){
              //if the play button was pressed do:
              if(e.getSource() == playB){
                  //do something
             //else if the cheat button was pressed do:
              else if(e.getSource() == cheatB){
                   //remove and add components
                   main.removeAll();
                   main.setLayout(new GridLayout(3,0,0,0));
                   main.add(cheat1);
                   main.add(cheat2);
                   main.add(cheatInstruct);
                   main.repaint();
                   main.validate();          
              else if(e.getSource() == instructB){
                   //remove and add components
                   main.removeAll();
                   main.setLayout(new GridLayout(3,0,0,0));
                   main.add(i1);
                   main.add(i2);
                   main.add(i3);
                   main.repaint();
                   main.validate();          
              else if(e.getSource() == exit){
                   jframe.setVisible(false);
                   showCredits();          
              else if(e.getSource() == about){
                   main.removeAll();
                   main.setLayout(new FlowLayout());
                   main.add(aboutLabel);                         
                   main.repaint();
                   main.validate();
         public void showCredits(){
              try{
                   String[] args = {};
                   Credits.main(args);
              }catch (Exception e){}
         public static void main(String args[]){
              jframe = new Space();
              jframe.setUndecorated(true);
              jframe.setBounds(0, 0, jframe.SCREENWIDTH, jframe.SCREENHEIGHT);
              jframe.setVisible(true);
            jframe.show();     
            jframe.setResizable(false);
               jframe.setDefaultCloseOperation(EXIT_ON_CLOSE);
             jframe.centerPanel(jframe.select.getWidth(), jframe.select.getHeight());
             jframe.run(); //start music

    The reason it wasn't working was because you were calling the method after you had set the frame visible, so you saw no change. On top of that, jframe.select.getWidth() only works after the frame is visible in this case. So it's best to set a fixed size for one of them, then use getWidth, or as I did... it's the same thing. I also changed the centerPanel method, I'm not sure if all that's exactly needed, but you can change it back if you think you'll need it.
    import javax.sound.sampled.*;
    import java.awt.*;
    import javax.sound.midi.*;
    import javax.swing.*;
    import java.util.*;
    import java.awt.event.*;
    import java.io.*;
    public class Space extends JFrame implements ActionListener, Runnable{
    //Sound
    Sequence currentSound;
    Sequencer player;
    Thread soundCheck;
    boolean check = true;
    public void start(){
    soundCheck = new Thread();
    soundCheck.start();
    public void run(){
    try{
    File bgsound = new File("Sounds" + File.separator + "Space.mid");
    currentSound = MidiSystem.getSequence(bgsound);
    player = MidiSystem.getSequencer();
    player.open();
    player.setSequence(currentSound);
    player.start();
    checkSound();
    } catch (Exception exc){}
    public void checkSound(){
    while(check){
    if(!player.isRunning()){
                run();
    try{
    soundCheck.sleep((player.getMicrosecondLength() / 1000)-player.getMicrosecondPosition()); // sleep for the length of the track
    }catch (InterruptedException IE){}
    //Screen Variables:
    Dimension SCREEN = Toolkit.getDefaultToolkit().getScreenSize();
    final int SCREENWIDTH = SCREEN.width;
    final int SCREENHEIGHT = SCREEN.height;
    //Panels:
    JPanel select, main, north, south, east;
        //Buttons:
    JButton instructB, cheatB, playB, exit, about;
    //Labels:
    JLabel open, cheat1, cheat2, cheatInstruct, i1, i2 , i3, aboutLabel;
    //The container and frame:
    static Space jframe;
    Container content;
    //The Constructor:
    public Space(){
    super("Space");
    //set  container attributes:
    content = getContentPane();
    content.setLayout(new BorderLayout());
    //init panels:
    main   = new JPanel();
    select = new JPanel();
    north  = new JPanel();
    east   = new JPanel();
    south  = new JPanel();
    //set panel attributes:
    select.setLayout(new GridLayout(3,0,10,10));
    select.setBackground(Color.black);
    main.setBackground(Color.black);
    north.setBackground(Color.black);
    //add panels:
    content.add("West", select);
    content.add("Center", main);
    content.add("North", north);
    content.add("East", east);
    //Image Icons:
    Icon exit1 = new ImageIcon("Images" + File.separator + "exit1.gif");
    Icon exit2 = new ImageIcon("Images" + File.separator + "exit2.gif");
    Icon about1 = new ImageIcon("Images" + File.separator + "about1.gif");
    Icon about2 = new ImageIcon("Images" + File.separator + "about2.gif");
    //init buttons, add their listeners, and set their attributes:
    instructB = new JButton("Instructions", new ImageIcon("Images" + File.separator + "ship.gif"));
    instructB.setContentAreaFilled(false);
    instructB.setForeground(Color.yellow);
    instructB.addActionListener(this);
    select.add(instructB);
    cheatB = new JButton("Cheats", new ImageIcon("Images" + File.separator + "cheat.gif"));
    cheatB.setContentAreaFilled(false);
    cheatB.setForeground(Color.yellow);
    cheatB.addActionListener(this);
    select.add(cheatB);
    playB = new JButton("Play", new ImageIcon("Images" + File.separator + "ship2.gif"));
    playB.setContentAreaFilled(false);
    playB.setForeground(Color.yellow);
    playB.addActionListener(this);
    select.add(playB);
    exit = new JButton();
    exit.setRolloverEnabled(true);
    exit.setIcon(exit1);
    exit.setRolloverIcon(exit2);
    exit.setBorderPainted(false);
    exit.setContentAreaFilled(false);
    exit.addActionListener(this);
    north.add(exit);
    about = new JButton();
    about.setRolloverEnabled(true);
    about.setIcon(about1);
    about.setRolloverIcon(about2);
    about.setBorderPainted(false);
    about.setContentAreaFilled(false);
    about.addActionListener(this);
        north.add(about);
        //Labels:
        open = new JLabel("", new ImageIcon("Images" + File.separator + "open.gif"), JLabel.CENTER);
    main.add(open);
    cheat1 = new JLabel("<html><h1>tport</h1></html>");
    cheat1.setForeground(Color.red);
    cheat2 = new JLabel("<html><h1>zap</h1></html>");
    cheat2.setForeground(Color.green);
    cheatInstruct = new JLabel("<html><h1>Type a cheat at any time during a game, and press the \"Enter\" key.</html></h1>");
    cheatInstruct.setForeground(Color.blue);
    i1 = new JLabel("<html><h1>The arrow keys move your ship.</h1></html>");
    i1.setForeground(Color.red);
    i2 = new JLabel("<html><h1>The space-bar fires the gun.</h1></html>");
    i2.setForeground(Color.green);
    i3 = new JLabel("<html><h1>The red circles give upgrades.</html></h1>");
    i3.setForeground(Color.blue);
    aboutLabel    = new JLabel("", new ImageIcon("Images" + File.separator + "aboutImage.gif"), JLabel.CENTER);
    east.setPreferredSize(new Dimension(125, SCREEN.width));
    //centerPanel();
    /*private void centerPanel(final int width, final int height){
    try{
    Runnable setPanelSize = new Runnable(){
    public void run(){
    east.setPreferredSize(new Dimension(width, height));
    SwingUtilities.invokeAndWait(setPanelSize);
    } catch (Exception e){}
    private void centerPanel(final int width, final int height)
         east.setPreferredSize(new Dimension(width, height));
    public void actionPerformed(ActionEvent e){
    //if the play button was pressed do:
    if(e.getSource() == playB){
        //do something
        //else if the cheat button was pressed do:
    else if(e.getSource() == cheatB){
    //remove and add components
    main.removeAll();
    main.setLayout(new GridLayout(3,0,0,0));
    main.add(cheat1);
    main.add(cheat2);
    main.add(cheatInstruct);
    main.repaint();
    main.validate();
    else if(e.getSource() == instructB){
    //remove and add components
    main.removeAll();
    main.setLayout(new GridLayout(3,0,0,0));
    main.add(i1);
    main.add(i2);
    main.add(i3);
    main.repaint();
    main.validate();
    else if(e.getSource() == exit){
    jframe.setVisible(false);
    //showCredits();
    else if(e.getSource() == about){
    main.removeAll();
    main.setLayout(new FlowLayout());
    main.add(aboutLabel);
    main.repaint();
    main.validate();
    /*public void showCredits(){
    try{
    String[] args = {};
    Credits.main(args);
    }catch (Exception e){}
    public static void main(String args[]){
    jframe = new Space();
    //jframe.centerPanel(500, jframe.select.getHeight());
    jframe.setUndecorated(true);
    jframe.setBounds(0, 0, jframe.SCREENWIDTH, jframe.SCREENHEIGHT);
    jframe.setVisible(true);
            jframe.show();
            jframe.setResizable(false);
          jframe.setDefaultCloseOperation(EXIT_ON_CLOSE);
        //jframe.centerPanel(jframe.select.getWidth(), jframe.select.getHeight());
        jframe.run(); //start music
    }Sorry I lost all the indenting :) I guess you can take a look at the few lines I changed and copy those lines.

  • Why won't this scriipt work with Firefox? embed src="News2008Fall.pdf" width="615" height="3200" /embed

    Please tell me why this script won't work with Firefox. It works with Safari. Here is the page that includes the script: www.lionsgatehoa.org/newslettertest.html. Thank you. Tom Engleman
    Here is the script in my html document:
    <embed src="News2008Fall.pdf" width="615" height="3200"></embed>
    edit: removed phone #

    Works for me on Linux.<br />
    Your system details list doesn't show the Adobe Reader plugin, so you will have to (re)install that program.
    See:
    *https://support.mozilla.org/kb/Using+the+Adobe+Reader+plugin+with+Firefox
    *http://kb.mozillazine.org/Adobe_Reader
    *http://get.adobe.com/reader/otherversions/

  • WHY WON"T THIS EVER WORK FOR ME????

    I try all the time to construct websites using CSS and they
    look great on a Mac using Safari/Firefox but whenever I test them
    on a stupid Windows IE they never work properly - EVER!!!
    I have been playing with one which can be seen here:
    Site:
    http://www.names4design.co.uk/ultraclean
    CSS:
    http://www.names4design.co.uk/ultraclean/default.css
    As said on a mac - great, it is all where it should be, but
    on a Wiindows - the nav section is under the content and the
    content is not floating right enough.
    Anyone have any ideas where I am going so wrong or am I
    destined to use tables forever??
    Cheers
    Jan

    > From doing the Google search, I see that you can't
    include these
    > conditional
    > comments within a CSS - it would have to be on the page
    itself.
    Yes. Why is that a problem?
    > Also, I have the #nav width set already (190px) so just
    can't see how to
    > go
    > about it - I am being thick, I am well aware of that!!!
    Clearly, IE6 is not following that directive, since you can
    see that it's
    much wider in that browser.
    I am not sure why it's not properly sized, to be honest....
    Murray --- ICQ 71997575
    Adobe Community Expert
    (If you *MUST* email me, don't LAUGH when you do so!)
    ==================
    http://www.projectseven.com/go
    - DW FAQs, Tutorials & Resources
    http://www.dwfaq.com - DW FAQs,
    Tutorials & Resources
    ==================
    "Jansolo" <[email protected]> wrote in
    message
    news:fqlop4$7c5$[email protected]..
    > The browser I am testing it on on the PC is IE 6.
    >
    > From doing the Google search, I see that you can't
    include these
    > conditional
    > comments within a CSS - it would have to be on the page
    itself.
    >
    > Also, I have the #nav width set already (190px) so just
    can't see how to
    > go
    > about it - I am being thick, I am well aware of that!!!
    >

  • Why won't this fill with any color

    i can draw on both pictures but on the second graphic i would like to fill with the color of my choosing but for some reason i can not
    Attachments:
    picturecntrl3.vi ‏40 KB

    Try this. I didn't try to spend too much time straightening out wiring.
    I had to fix up a few things in it.  For instance, on mouse down, I did a move pen so that it wouldn't draw the first line from 0,0 or last end point all the time.  It only works as a free hand drawing.  It would be possible to do a point to point to point so that you could draw straight line objects (i.e. triangles, squares, etc.) , but you would have to come up with an alternate way to stop creating the array of points to be filled besides mouse up.  Perhaps another button such as draw.
    Message Edited by Ravens Fan on 11-14-2007 04:56 PM
    Attachments:
    picturecntrl5.vi ‏48 KB

  • Why Won't this driver work!!!!!!!!!!!!!!!!!!!!!!

    I just got my sleek back Sleek from CL. I have Win98 and wanted to use the PlayerForSure driver. I installed the driver resart my computer connteced my player to my computer and nothing. I tired this 3 times and NOTHING. Someone PLEASE HELP ME!!!!!!!!!!
    Thank You.

    tandelia,
    Are you on Windows98SE or Windows98? There's is a slight different between the two OS and only Windows98SE should be use as there is very limited or no support for USB in Windows98. You should also try getting the latest USB driver, chipset driver available from your mainboard manufacturer website and see if it helps with USB connection.
    Jason

  • Why won't this iPhone work with this SIM??

    I recently sold my iPhone 3GS on eBay after getting my iPhone 4. Before I shipped it, I took out the SIM, and wiped it of its data. I shipped it out, and now the buyer is telling me that he cannot activate it with his SIM card or service. He says he has the data plan etc. I didn't unlock it or anything... All I did was take out the SIM, wipe it, then ship it. What are some possible reasons he cannot use it with his service? (which is AT&T)

    DaVBMan wrote:
    Lyle Bienstock wrote:
    I'm not sure... can't you just use your old SIM if it has a data plan already on it?
    No, the SIM is sorta unique for the iPhone. He has to tell AT&T he has an iPhone, they will give him new SIM for it. That SIM will work in iPhone (or other phones). But you cannot put a SIM from another phone into an iPhone.
    Sorry, but you are mistaken.
    The iPhone 2G, 3G, and 3GS all use a standard SIM. That is what we are discussing here.
    The iPhone 4 has a microSIM. That is not the OP's issue.
    ANY SIM from any AT&T phone (excluding iPhone 4) will fit into the iPhone and work with it as long as it's a 3G SIM, it should have the 3G fireball logo on it. If it is not a 3G SIM, then the purchaser can go to any AT&T corp store and they will generally give the user a new SIM free of charge.

  • Inline Subclassing: Why won't this override work?

    I'm writing some unit tests (I'm new to JUnit and JMock), and have been having trouble figuring out how to mock an object that doesn't implement an interface. As a work around, I wrote the following:
    ExecuteSupportSvc ess = new ExecuteSupportSvc() {
              @Override
              private MessageHelper createMessageHelper() {
                   return new MessageHelper() {
                        @Override
                        public Integer countMessages(String a, String b, String c) {
                             return 1;
         };I get the error:
    The method createMessageHelper() of type new ExecuteSupportSvc(){} must override a
    superclass methodThere definitely is a method createMessageHelper in my superclass... am I missing something??
    Edited by: Pojo on Apr 14, 2008 10:53 AM

    [�8.2 Class Members|http://java.sun.com/docs/books/jls/second_edition/html/classes.doc.html#30394]: Members of a class that are declared private are not inherited by subclasses of that class.
    ~

  • Why won't my camera work? I used the screen shot for the first time and since i did that every time i take a picture the shutter closes as though it's taking it but no picture gets taken...help! Any suggestions?

    Why won't my camera work? I used the screen shot for the first time and since i did that every time i take a picture the shutter closes as though it's taking it but no picture gets taken...help! Any suggestions?

    Hey briannagrace96,
    Welcome to Apple Support Communities! I'd check out the following article, it looks like it applies to your situation:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    You'll want to go through the following troubleshooting steps, and for more detail on each step follow the link to the article above:
    Try the iPod troubleshooting assistant:
    If you have not already done so, try the steps in the iPod Troubleshooting Assistant (choose your iPod model from the list).
    If the issue remains after following your iPod's troubleshooting assistant, follow the steps below to continue troubleshooting your issue.
    Restart the iPod Service
    Restart the Apple Mobile Device Service
    Empty your Temp directory and restart
    Verify that the Apple Mobile Device USB Driver is installed
    Change your iPod's drive letter
    Remove and reinstall iTunes
    Disable conflicting System Services and Startup Items
    Update, Reconfigure, Disable, or Remove Security Software
    Deleting damaged or incorrect registry keys
    Take care,
    David

  • Functions in a For Loop defining objects from an Array. . .Why Won't This Work?!

    I'm trying to put these functions into a Loop to conserve
    space. Why won't this work?
    .

    Yeah, sly one is right. You can not have the "i" inside the
    onRollOver function, what you have to do is: As the movieClip class
    is dynamic you can create a property of the movieClip which stores
    the value if the "i". And then, inside the onRollOver function, you
    have to make reference to that property.
    for (i=0; i<2; i++) {
    this.regArray
    .iterator = i;
    this.regArray.onRollOver = function () {
    showRegion(regArray[this.iterator]);
    this.regArray
    .onRollOut = function () {
    hideRegion(regArray[this.iterator]);

  • Getting a dotted line around .swf files in my flash site now. this is new as of Firefox 3. Using 4 on a MacBookPro. tried "style outline none" fix. doesn't work. any help?

    Question
    getting a dotted line around .swf files in my flash site now. this is new as of Firefox 3. Using 4 on a MacBookPro. tried "style outline none" fix. doesn't work. any help?

    /* stops annoying focus-selection boxes in FF3 */
    *:active, object:focus, embed:focus
    outline: none;
    }

  • Help...Why won't this compile?

    Why won't this compile?
    Here is my code:
    import java.util.Calendar;
    import javax.swing.JOptionPane;
    public class GetAge{
    public static void main(String[] args){
    int month=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what month(MM) you were born:"));
    int day=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what day(dd) you were born:"));
    int year=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what year(yyyy) you were born:"));
    Calendar rightNow = Calendar.getInstance();
    int year2 = rightNow.get(Calendar.YEAR);
    int day2 = rightNow.get(Calendar.DATE);
    int month2 = rightNow.get(Calendar.MONTH)+1;
    int years = year2-year-1;
    int months = month2-month+12;
    if(day2 >= day)
       int days = day2-day;
    else
       days = day-day2+8;
    JOptionPane.showMessageDialog(null,"You are: " + years
    + " years " + months + " months and " + days + " days old.");
    }

    What you're doing is using days after the if statement; without curly braces only a valid statement is allowed.
    But if you add curly braces, days will be available only in the if block.
    So what you should do is:
    import java.util.Calendar;
    import javax.swing.JOptionPane;
    public class GetAge{
    public static void main(String[] args){
    int month=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what month(MM) you were born:"));
    int day=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what day(dd) you were born:"));
    int year=Integer.parseInt(JOptionPane.showInputDialog
    (null,"Enter what year(yyyy) you were born:"));
    Calendar rightNow = Calendar.getInstance();
    int year2 = rightNow.get(Calendar.YEAR);
    int day2 = rightNow.get(Calendar.DATE);
    int month2 = rightNow.get(Calendar.MONTH)+1;
    int years = year2-year-1;
    int months = month2-month+12;
    int days = 0;      //declare here
    if(day2 >= day)
       days = day2-day;  //...and use here
    else
       days = day-day2+8;   //..and here
    JOptionPane.showMessageDialog(null,"You are: " + years
    + " years " + months + " months and " + days + " days old.");
    }

  • Why won't my speakers work on my iPhone 4S

    Why won't my speakers work on my iPhone 4S when I remove the headset from audio jack?

    See Here
    http://support.apple.com/kb/TS1630
    The Basic Troubleshooting Steps are:
    Restart..  Reset..  Restore...
    Try this First... You will Not Lose Any Data...
    Turn the Phone Off... ( if it isn’t already )
    Press and Hold the Sleep/Wake Button and the Home Button at the Same Time...
    Wait for the Apple logo to Appear and then Disappear...
    Usually takes about 15 - 20 Seconds... (But can take Longer...)
    Release the Buttons...
    Turn the Phone On...

  • Since I upgrade to Lion OS my optical drive stop working can't read or write at all I did what I could to fix it but still not working , any help please

    Since I upgrade to Lion OS my optical drive stop working can't read or write at all I did what I could to fix it but still not working , any help please

    It sounds like you may have multiple problems, but none of them are likely to be caused by malware.
    First, the internet-related issues may be related to adware or a network compromise. I tend to lean more towards the latter, based on your description of the problem. See:
    http://www.adwaremedic.com/kb/baddns.php
    http://www.adwaremedic.com/kb/hackedrouter.php
    If investigation shows that this is not a network-specific issue, then it's probably adware. See my Adware Removal Guide for help finding and removing it. Note that you mention AdBlock as if it should have prevented this, but it's important to understand that ad blockers do not protect you against adware in any way. Neither would any kind of anti-virus software, which often doesn't detect adware.
    As for the other issues, it sounds like you've got some serious corruption. I would be inclined to say it sounds like a failing drive, except it sounds like you just got it replaced. How did you get all your files back after the new drive was installed?
    (Fair disclosure: I may receive compensation from links to my sites, TheSafeMac.com and AdwareMedic.com, in the form of buttons allowing for donations. Donations are not required to use my site or software.)

  • I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    I am setting up a new iMac and need help syncing files to Dropbox.  On my old computer I had it set where when I saved a document, it was saved on my hard drive, as well as to a folder in Dropbox.  I can't remember how I set this up.  Any help?

    The way that Dropbox works is that it keeps a copy of all your files in your local Dropbox folder on your hard drive (which is, by default, directly under your home folder). Adding files to that folder will sync them to the Dropbox server.
    You do of course have to download the Dropbox application to enable this (download link at the top right of http://dropbox.com ).
    Matt

Maybe you are looking for

  • Calendar invitation emails deleted after accepting

    I seems OS X Mail to automatically deletes and erases email invitations for calendar events from the inbox after the user accepts them. They are even removed from the trash, meaning that it is no longer possible to find and view the included message,

  • Group Currency [LC2] is BLANK in BSEG-DMBE2

    Hi All, We have an issue with Group currency / Local Currency 2 which is coming BLANK in FB03 and infact in table BSEG-DMBE2.. The settings are already made for additional local currency thru OB22. Somehow the Group currency / Local currency 2 is zer

  • Why are some of these topics ARCHIVED?

    Hey I am going through this board, and I have answers to problems! I try to reply, but the topic has been locked/archived. What gives???

  • Opening a new tab in the terminal in the same directory as the current tab?

    Hi, Is it possible to setup the terminal to open a new tab in the same directory as the current tab? Regards, Ken

  • Error at online backup - Code BR0278E

    Hi We are facing problem at the time of on-line full database backup thru BRTOOLS. We are using "tape" as backup device and "dd" as backup command.With the same configuration offline backup is working OK. The relevent error message is as follows : -