Getting grid layout to work with a class that extends JFrame

In my code, I have a class extending JFrame and setting the layout to grid works and the code to add with three parameters compiles just fine but when I run it I get this:
java.lang.IllegalArgumentException: illegal component position
     at java.awt.Container.addImpl(Container.java:999)
     at java.awt.Container.add(Container.java:928)
     at javax.swing.JFrame.addImpl(JFrame.java:479)
     at java.awt.Container.add(Container.java:928)
on the add(myLabel, 1, 1); line

I see on these from
http://java.sun.com/j2se/1.5.0/docs/api/java/awt/Container.html#add(java.awt.Component)
1.public Component add(Component comp)
2.public Component add(String name, Component comp)
3.public Component add(Component comp, int index)
you should use method add(...) of JPanel instead

Similar Messages

  • Japplet is not able to call a class that extends JFrame in internet Explore

    Hi
    I am doing an application on Japplet.The Japplet class calls anathor class which extends JFrame.When I am running this appication on Applet Viewer it works fine.but when I am running this aplication in internet Explorer the Frame window doesn't come.What might be the problem.
    Thanks
    Srikants

    There is no error or exceptio comming when i am running that application on Internet Explorer.Convert the html page to use the object tag instead of the applet tag.
    The IE build in jre (called msjvm) cannot display JFrame since the version is
    1.1.2 and it has no javax classes.
    Still problems?
    A Full trace might help us out:
    http://forum.java.sun.com/thread.jspa?threadID=656028

  • How to do validation with a class that extends DispatchAction?

    I'm trying to mess around with some validation with struts for a .jsp form and I've read a tutorial that says I need to extend ValidatorForm instead of ActionForm...however, I'm using DispatchAction instead of ActionForm. What is the best way to do validation if I'm using a DispatchAction?
    Thanks a lot.

    Hey evnafets,
    I do have the struts validator configured in the struts config file, and I do get the following message:
    Jun 21, 2005 10:06:55 AM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validator-rules.xml'
    Jun 21, 2005 10:06:55 AM org.apache.struts.validator.ValidatorPlugIn initResources
    INFO: Loading validation rules file from '/WEB-INF/validation.xml'
    I added the <form-set> tags but am still getting nothing, I'm now wondering if it may have something to do with the following, which I just noticed...
    In my .jsp file, I have something like this:
    <html:form action="/modifyBook">
    <html:errors />
    <b>Name: </b><html:text property="fname" value="${entry.fname}"/> <html:text property="lname" value="${entry.lname}" /><br/>
    <html:hidden property="method" value="edit"/>
    <html:submit property="submitValue">Edit</html:submit>
    <html:cancel property="cancelValue">Cancel</html:cancel>And in the "edit" method of the ModifyBookAction class, I cast the form into a DynaValidatorForm and just have my code to perform the edit. Now, what I'm wondering is, is the form getting properly associated with a "ModifyBookForm" which is what the rules are written for? The only tie I see is in the struts config where there is this:
          <action        
             name="ModifyBookForm"
             parameter="method"
             path="/modifyBook"
             scope="request"
             type="com.yourcompany.struts.action.ModifyBookAction"
             validate="true">
             <forward
                  name="failure"
                  path="/form/error.jsp"
                  redirect="true"/>
             <forward
                name="success"
                path="/loadBook.do"
                redirect="true" />
          </action>Is this enough? I'm thinking that the validation may be set up correctly, I'm just not implementing it in the right way?
    Thanks again

  • Trouble getting a JMF program working with another program

    hello.
    my name is james mcfadden. i am having difficulty compiling the first program (a menu GUI) here. even though the second program (the JMF program) can be compiled and runned as a separate application, i'm trying to get be able to use the first program to run the second program. when i compile the first program i get the following errors. i don't know what are causing these errors?
    ----jGRASP exec: javac -g X:\CP4B Project\Demo.java
    Demo.java:284: cannot find symbol
    symbol : constructor Media()
    location: class Media
    Media media=new Media();
    ^
    Demo.java:288: cannot find symbol
    symbol : constructor Media()
    location: class Media
    Media media=new Media();
    ^
    Demo.java:292: cannot find symbol
    symbol : constructor Media()
    location: class Media
    Media media=new Media();
    ^
    3 errors
    ----jGRASP wedge2: exit code for process is 1.
    ----jGRASP: operation complete.
    //Written by:Seamus McFadden
    //Class:CP4B
    //Program Number:1
    //Program Name:Demo.java
    //Description:
    //Supervisor:Gerard McCloskey
    import java.awt.*;//Contains all of the classes for creating user interfaces and for painting graphics and images
    import java.awt.event.*;//Provides interfaces and classes for dealing with different types of events fired by AWT components
    import javax.swing.*;//Provides a set of lightweight components that, to the maximum degree possible, work the same on all platforms
    public class Demo extends JFrame{
        public static void main(String[] args){
            int choice=-1;//a variable of type int that is set to -1
            do{
               choice=getChoice();//invokes the method getChoice()
               if(choice!=0){
                   getSelected(choice);//invokes the method getSelected(choice)
               }//end if
               //if the user chooses 4, it will cause him or her to exit the system
            }while(choice!=5);//end do-while
            System.exit(0);//closes down the menu screen
        }//end main
        public static int getChoice(){
            String choice;//a variable of type string
            int ch;//a variable of type int
            choice=JOptionPane.showInputDialog(null,
                    "1. Product Menu\n" +
                    "2. Member Menu\n" +
                    "3. Rental Menu\n" +
                          "4. Media Menu\n" +
                    "5. Log Off\n\n" +
                    "Enter your choice");//asks the user for some input
            ch=Integer.parseInt(choice);//a class that wraps a value of the primitive type int in an object
            return ch;//a method that returns an integer value
        }//end getChoice
        public static void getSelected(int choice){
            if(choice == 1) {
                   product();
            }//end if
            if(choice==2){
               member();
            }//end if
            if(choice==3){
               rental();
            }//end if
                if(choice==4){
               media();
            }//end if
        }//end getSelected
        public static void product(){
             int productChoice=-1;//a variable of type int that is set to -1
           productChoice=getProductChoice();//invokes the method getChoice()
           if(productChoice!=0){
              getProductSelected(productChoice);//invokes the method getSelected(choice)
           }//end if
           System.exit(0);//closes down the menu screen
        public static void member(){
           int memberChoice=-1;//a variable of type int that is set to -1
           memberChoice=getMemberChoice();//invokes the method getChoice()
           if(memberChoice!=0){
              getMemberSelected(memberChoice);//invokes the method getSelected(choice)
           }//end if
           System.exit(0);//closes down the menu screen
        public static void rental(){
           int rentalChoice=-1;//a variable of type int that is set to -1
           rentalChoice=getRentalChoice();//invokes the method getChoice()
           if(rentalChoice!=0){
              getRentalSelected(rentalChoice);//invokes the method getSelected(choice)
           }//end if
           System.exit(0);//closes down the menu screen
          public static void media(){
           int mediaChoice=-1;//a variable of type int that is set to -1
           mediaChoice=getMediaChoice();//invokes the method getChoice()
           if(mediaChoice!=0){
              getMediaSelected(mediaChoice);//invokes the method getSelected(choice)
           }//end if
           System.exit(0);//closes down the menu screen
          public static int getProductChoice(){
           String productChoice;//a variable of type string
           int pch;//a variable of type int
           productChoice=JOptionPane.showInputDialog(null,
                   "1. Add product details\n" +
                   "2. View product details\n" +
                   "3. Edit product details\n" +
                         "4. Delete product details\n" +
                   "5. Exit\n\n" +
                   "Enter your choice");//asks the user for some input
           pch=Integer.parseInt(productChoice);//a class that wraps a value of the primitive type int in an object
           return pch;//a method that returns an integer value
        }//end getChoice
          public static int getMemberChoice(){
           String memberChoice;//a variable of type string
           int mch;//a variable of type int
           memberChoice=JOptionPane.showInputDialog(null,
                   "1. Add member details\n" +
                   "2. View member details\n" +
                   "3. Edit member details\n" +
                             "4. Delete member details\n" +
                   "5. Exit\n\n" +
                   "Enter your choice");//asks the user for some input
           mch=Integer.parseInt(memberChoice);//a class that wraps a value of the primitive type int in an object
           return mch;//a method that returns an integer value
        }//end getChoice
          public static int getRentalChoice(){
           String rentalChoice;//a variable of type string
           int rch;//a variable of type int
           rentalChoice=JOptionPane.showInputDialog(null,
                   "1. Add rental details\n" +
                   "2. View rental details\n" +
                   "3. Edit rental details\n" +
                             "4. Delete rental details\n" +
                   "5. Exit\n\n" +
                   "Enter your choice");//asks the user for some input
           rch=Integer.parseInt(rentalChoice);//a class that wraps a value of the primitive type int in an object
           return rch;//a method that returns an integer value
        }//end getChoice
          public static int getMediaChoice(){
           String mediaChoice;//a variable of type string
           int mtch;//a variable of type int
           mediaChoice=JOptionPane.showInputDialog(null,
                   "1. Listen to songs\n" +
                             "2. View movie previews\n" +
                             "3. View game previews\n" +
                   "4. Exit\n\n" +
                   "Enter your choice");//asks the user for some input
           mtch=Integer.parseInt(mediaChoice);//a class that wraps a value of the primitive type int in an object
           return mtch;//a method that returns an integer value
        }//end getChoice
          public static void getProductSelected(int productChoice){
           if(productChoice==1){
                  addProducts();
           }//end if
           if(productChoice==2){
              viewProducts();
           }//end if
           if(productChoice==3){
              editProducts();
           }//end if
               if(productChoice==4){
              deleteProducts();
           }//end if
        }//end getSelected
          public static void getMemberSelected(int memberChoice){
           if(memberChoice==1){
                  addMembers();
           }//end if
           if(memberChoice==2){
              viewMembers();
           }//end if
           if(memberChoice==3){
              editMembers();
           }//end if
               if(memberChoice==4){
              deleteMembers();
           }//end if
        }//end getSelected
          public static void getRentalSelected(int rentalChoice){
           if(rentalChoice==1){
                  addRentals();
           }//end if
           if(rentalChoice==2){
              viewRentals();
           }//end if
           if(rentalChoice==3){
              editRentals();
           }//end if
               if(rentalChoice==4){
              deleteRentals();
           }//end if
        }//end getSelected
          public static void getMediaSelected(int mediaChoice){
           if(mediaChoice==1){
                  hearSongs();
           }//end if
           if(mediaChoice==2){
              viewMovies();
           }//end if
           if(mediaChoice==3){
              viewGames();
           }//end if
        }//end getSelected
          public static void addProducts(){
           ProductForm product=new ProductForm();
           product.getInput();
               product.setVisible(true);
          public static void viewProducts(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editProducts(){
           ProductForm product=new ProductForm();
               product.getInput();
               product.setVisible(true);
          public static void deleteProducts(){
           ProductForm product=new ProductForm();
               product.setVisible(true);
          public static void addMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void viewMembers(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editMembers(){
           MemberForm member=new MemberForm();
               member.getInput();
               member.setVisible(true);
          public static void deleteMembers(){
           MemberForm member=new MemberForm();
               member.setVisible(true);
          public static void addRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void viewRentals(){
           DatabaseTest tt=new DatabaseTest();
               tt.setVisible(true);
          public static void editRentals(){
           RentalForm rental=new RentalForm();
               rental.getInput();
               rental.setVisible(true);
          public static void deleteRentals(){
           RentalForm rental=new RentalForm();
               rental.setVisible(true);
        public static void hearSongs(){
           Media media=new Media();  
        public static void viewMovies(){
           Media media=new Media();   
        public static void viewGames(){
           Media media=new Media();   
    }//end class Demo
    import java.awt.BorderLayout;
    import java.awt.Component;
    import java.io.IOException;
    import java.net.URL;
    import javax.media.CannotRealizeException;
    import javax.media.Manager;
    import javax.media.NoPlayerException;
    import javax.media.Player;
    import javax.swing.JPanel;
    import java.io.File;
    import java.net.MalformedURLException;
    import javax.swing.JFileChooser;
    import javax.swing.JFrame;
    public class Media extends JPanel{
       public Media(URL mediaURL){
          setLayout(new BorderLayout());//use a BorderLayout
          //Use lightweight components for Swing compatibility
          Manager.setHint(Manager.LIGHTWEIGHT_RENDERER,true);
          try{
             //create a player to play the media specified in the URL
             Player mediaPlayer=Manager.createRealizedPlayer(mediaURL);
             //get the components for the video and the playback controls
             Component video=mediaPlayer.getVisualComponent();
             Component controls=mediaPlayer.getControlPanelComponent();
             if(video!=null)
                add(video,BorderLayout.CENTER);//add video component
             if(controls!=null)
                add(controls,BorderLayout.SOUTH);//add controls
             mediaPlayer.start();//start playing the media clip
          }//end try
          catch(NoPlayerException noPlayerException){
             System.err.println("No media player found");
          }//end catch
          catch(CannotRealizeException cannotRealizeException){
             System.err.println("Could not realize media player");
          }//end catch
          catch(IOException iOException){
             System.err.println("Error reading from the source");
          }//end catch
       }//end Media constructor
       // launch the application
       public static void main( String args[] ) {
          // create a file chooser
          JFileChooser fileChooser = new JFileChooser();
          // show open file dialog
          int result = fileChooser.showOpenDialog( null );
          if ( result == JFileChooser.APPROVE_OPTION ) {
             URL mediaURL = null;
             try {
                // get the file as URL
                mediaURL = fileChooser.getSelectedFile().toURL();
             } // end try
             catch ( MalformedURLException malformedURLException ) {
                System.err.println( "Could not create URL for the file" );
             } // end catch
             if ( mediaURL != null ) {
                JFrame mediaTest = new JFrame( "Media Tester" );
                mediaTest.setDefaultCloseOperation( JFrame.EXIT_ON_CLOSE );
                Media mediaPanel = new Media( mediaURL );
                mediaTest.add( mediaPanel );
                mediaTest.setSize( 300, 300 );
                mediaTest.setVisible( true );
             } // end inner if
          } // end outer if
       } // end main
    }

    hello.
    thanks for the reply. how do i create argument
    constructors in Java?Please re-read my post ... you already have one. If you want to use it, simply pass in the argument to it that it wants. In this case it wants a URL (Universal Resource Locator). Please check out the java.net.URL package in the [url http://java.sun.com/javase/6/docs/api/]API doco.
    You can build a URL like this:
    URL url = getClass().getResource( "textfile.txt" ); // Just an example - where the file resides in the same location as the class file.

  • I followed all the directions to get Norton 360 to work with Firefox 8, but nothing works. I love Firefox, but if my Norton 360 won't work with it I'll be stuck with IE, which I do not like. Please Help Me!

    I followed all the directions to get Firefox 8 to work with my Norton 360, but nothing has worked. Is there anything else I can do? I didn't know there was an issue when I first upgraded to Firefox 8 so didn't choose the Norton plug ins immediately so I uninstalled Firefox hoping to be able to do it correctly when I Downloaded it again. Unfortunately it didn't ask me any thing regarding Norton so I went to Plug ins as directed to Enable Norton 360's plug ins, but none were listed.
    What can I do now? I LOVE Firefox! If we can't make it work I'll be stuck with Internet Explorer which I do not care for at all!
    I need to have Norton Security to protect my computer. Please help me find a solution to this problem ASAP.
    Thank you,
    Susan L Woods
    [email protected]

    Hi Susie, I use Norton 360 and have the latest Firefox 8 installed is working fine for me. Firefox 8 support for [http://community.norton.com/t5/Norton-360/Firefox-8-Support-for-Norton-Toolbar/td-p/581640 Norton Toolbar] was released on Nov 8th. Install the appropriate add-ons based on the version of Norton 360 you're using (see official Norton link above). Hope this helps.

  • I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the Component and Audio ports on my TV?

    I have an Retina display MacBook Pro with HMDI out port. I also have an HDMI to Component cable with Audio Plugs. How can I get HDMI out to work with this cable when plugged into the MacBook Pro and connected to the TVs Component and Audio in ports.

    Will not work.  To my knowledge, dual converting like that isn't supported.  The Mac must detect the connected video output device and that sort of info cannot be done across an analog component uni-directional connection.

  • How do I Get My Router to Work With iChat ? FAQ 2

    Replaces iCh: FAQ 2 How to get my router to work with iChat?
    Getting your router started with iChat.
    Appropriate for using iChatAV 2 upwards
    Glossary for this FAQ
    Routers: Any configurable device that sits between your computer and the internet link you have.
    Routers seem to fall into two categories
    Those that work straight from the box. See Apple Doc 93333
    NOTE
    This Doc has not been updated since Jan 04
    and those that do not.
    This post will deal with what you may need to look at.
    First off make sure your device is acting as a DHCP server. (if you are already on the internet you may not have to bother with this.)
    Check in the Network Preference Pane, in the "Built in Ethernet" option from the "Show" drop down list.
    Make sure the TCP/IP tab is the 'front' one. You should be able to see Configure IPv4 and it most likely reads Using DCHP. Make a note of your IP address. It will start 10.xxx.xxx.xxx or 192.168.xxx.xxx (the 'x' s will stand for any number between 1 and 255).
    Your router is most likely to be configurable from your browser. You will need to find the IP address to type into the browser from any Readme or PDF files that came on the install disk or visit the makers website and download a manual.
    DMZ Demilitarised Zone
    This is a less secure setting that basically opens all ports and points the incoming data to your computer. (not helpful if you have more than one computer on your LAN)
    NAT Sometimes called NAPT and related to Port Forwarding (also Virtual Server or Pin Holes)
    These settings are usually found in an Advanced setting.
    You will need to set an incoming IP address (Usually 0.0.0.0 for any outside server), a port that data will arrive on, the Inside computers IP address (your computer) and the port it will deal with the data on and the protocol it will use.
    iChat uses TCP and UDP so some devices will need the settings done twice, once for each protocol.
    See Apple Doc 93208 for more information.
    Note:
    Note 1 should read:
    1. All iChat AV traffic is UDP except for ports 5190 and 5298, which need to be open for both TCP and UDP; and 5220, 5222, which need to be open for TCP only.
    UPnP Universal Plug n Play.
    This is a simple Plug and Play type of setting. iChat can find it's own way through a router if the device has this capability.
    Trigger Ports
    Some devices offer a security measure that works by a first or trigger port receiving a data packet and then opening further ports when accepted.
    The first port for incoming Video or Audio invites is port 5678. When you click on the invite window the process moves to port 5060 (so these will need to be opened by the trigger port) for negotiating the final group of ports from the group of 20 (16384-16403 These will need to open when the trigger says so as well). Therefore port 5678 triggers ports 5678, 5060, 16384-16403. All on UDP. Port 5190 neeeds to trigger port 5190 for both TCP and UDP
    Wireless
    Here you will have to read around but this Apple Doc 58514 might be a good starting place.
    Multiple devices
    Make sure only one is acting as a DHCP server. Make sure wireless devices are bridged properly.
    Further Help
    I have found that this site (ADSLGuide) to be helpful.
    It is British based but I have linked you to the Apple Related Discussions Forum.
    Eliminating Problems on my Personal web pages.
    The ports and their function within iChat. (my pesonal Web pages again)
    This is not a step by step approach. You will have to read around the information about your device.
    Collected FAQs and Expansions: Index Page
    Also http://www.portforward.com/routers.htm for instructions with Pics on Port Forwarding.
    Ralph
    G4 Dual 1Ghz MDD with extra HDs X3. Mac OS X (10.4.3) Have you read the iChat FAQs ?? They have moved to Users Tips

    Replaces iCh: FAQ 2 How to get my router to work with iChat?
    Getting your router started with iChat.
    Appropriate for using iChatAV 2 upwards
    Glossary for this FAQ
    Routers: Any configurable device that sits between your computer and the internet link you have.
    Routers seem to fall into two categories
    Those that work straight from the box. See Apple Doc 93333
    NOTE :This Doc has not been updated since Jan 04
    and those that do not.
    This post will deal with what you may need to look at.
    First off make sure your device is acting as a DHCP server. (if you are already on the internet you may not have to bother with this.)
    Check in the Network Preference Pane, in the "Built in Ethernet" option from the "Show" drop down list.
    Make sure the TCP/IP tab is the 'front' one. You should be able to see Configure IPv4 and it most likely reads Using DCHP. Make a note of your IP address. It will start 10.xxx.xxx.xxx or 192.168.xxx.xxx (the 'x' s will stand for any number between 1 and 255). The range 172.16.xxx.xxx is also a possible value at this point. Rarely used, but it is part of the RFC for Address Allocation for Private Internets.
    Your router is most likely to be configurable from your browser. You will need to find the IP address to type into the browser from any Readme or PDF files that came on the install disk or visit the makers website and download a manual.
    DMZ Demilitarised Zone
    This is a less secure setting that basically opens all ports and points the incoming data to your computer. (not helpful if you have more than one computer on your LAN)
    NAT Sometimes called NAPT and related to Port Forwarding (also Virtual Server or Pin Holes)
    These settings are usually found in an Advanced setting.
    You will need to set an incoming IP address (Usually 0.0.0.0 for any outside server), a port that data will arrive on, the Inside computers IP address (your computer) and the port it will deal with the data on and the protocol it will use.
    iChat uses TCP and UDP so some devices will need the settings done twice, once for each protocol.
    See Apple Doc 93208 for more information.
    Note:
    Note 1 should read:
    1. All iChat AV traffic is UDP except for ports 5190 and 5298, which need to be open for both TCP and UDP; and 5220, 5222, which need to be open for TCP only.
    UPnP Universal Plug n Play.
    This is a simple Plug and Play type of setting. iChat can find it's own way through a router if the device has this capability.
    Trigger Ports
    Some devices offer a security measure that works by a first or trigger port receiving a data packet and then opening further ports when accepted.
    The first port for incoming Video or Audio invites is port 5678. When you click on the invite window the process moves to port 5060 (so these will need to be opened by the trigger port) for negotiating the final group of ports from the group of 20 (16384-16403 These will need to open when the trigger says so as well). Therefore port 5678 triggers ports 5678, 5060, 16384-16403. All on UDP. Port 5190 neeeds to trigger port 5190 for both TCP and UDP
    Wireless
    Here you will have to read around but this Apple Doc 58514 might be a good starting place.
    Multiple devices
    Make sure only one is acting as a DHCP server. Make sure wireless devices are bridged properly.
    Further Help
    I have found that this site (ADSLGuide) to be helpful.
    It is British based but I have linked you to the Apple Related Discussions Forum.
    Eliminating Problems on my Personal web pages.
    The ports and their function within iChat. (my pesonal Web pages again)
    This is not a step by step approach. You will have to read around the information about your device.
    Collected FAQs and Expansions: Index Page
    Also http://www.portforward.com/routers.htm for instructions with Pics on Port Forwarding.
    With thanks to Macmuse.
    Ralph
    G4 Dual 1Ghz MDD with extra HDs X3. Mac OS X (10.4.3) Have you read the iChat FAQs ?? They have moved to Users Tips<</a>/span>

  • HT3310 how do i get my headphone to work with the iphone?

    how do i get my headphone to work with the iphone? Are there some settings
    that I need to turn on so I can use my headphone while talking on the phone?

    Are you using the earbuds that came with the iPhone? If you are using other earphones, it's possible that they need an adaptor to work with the iPhone's recessed headphone jack. 

  • How do I get Front Row to work with Lion?

    Hello fellow Mac users,
    How do I get Front Row to work with Lion? I have an iMac 27 inch computer and is the sole entertainment provider for my bedroom. I refuse to put a TV in my room and wanted to know how to get Front Row to work again on my mac? It seems that the upgrade to Lion erased the app.
    I have quite a few movies and series that I bought off iTunes and is a shame that I can't use a media center app like Front Row on Lion.

    I kind of have the opposite problem. I need to know how to turn off my remote on the computer. I am using the remote for my Apple TV and it keeps making the volume on my Computer go up and down (with annoying sounds).
    There used to be a way to un-sync the remote with the comp but I cannot remember how and the Apple help is not much help! I have Lion.
    Thanks!
    Best,
    Tony

  • How do I get my AppleID to work with iCloud?

    How do I get my AppleID to work with iCloud? It says that I have a valid ID, but that I can't use it with iCloud...
    How do I fix this?
    Thanks!!

    Firstly, you need to change your details with Apple,  Start here, change your country if necessary and go to manage your account.
    In order to change your Apple ID or password for your iCloud account on your iOS device, you need to delete the account from your iOS device first, then add it back using your updated details. (Settings > iCloud, scroll down and hit "Delete Account")
    Providing you are simply updating your existing details and not changing to another account, when you delete your account, all the data that is synced with iCloud will also be deleted from the device (but not from iCloud), but will be synced back to your device when you login again.
    In order to change your Apple ID or password for your iCloud account on your computer, you need to sign out of the account from your computer first, then sign back in using your updated details. (System Preferences > iCloud, click the sign out button)
    In order to change your Apple ID or password for your iTunes account on your iOS device, you need to sign out from your iOS device first, then sign back in using your updated details. (Settings > iTunes & App store, scroll down and tap your ID)
    If you are using iMessages or FaceTime, you will also need to log out and into your ID there too.

  • How do i get my sim to work with this phone?

    I just bought a used iphone, when i put my sim card in, it says it is lock. I have done this before and been able to use instantly, but this time it wont come on. HOw do i get my sim to work with this phone?

    If your iPhone was unlocked and has relocked after an update to iOS, then the iPhone was hacked to unlock it and has now been locked back to the original carrier. You'll need to contact the carrier to whom the iPhone is locked and request unlocking. They may refuse to do so since you're not the person with whom they had the contract.
    Regards.

  • Update to kichat: FAQ 2 - How to get my router to work with iChat?

    kichat: FAQ 2 - How to get my router to work with iChat? December 2008 version 3
    (Note to Hosts. to be removed on acceptance. Please use this to replace http://discussions.apple.com/thread.jspa?threadID=121775 )
    Getting your router started with iChat.
    Appropriate for using iChatAV 2 upwards. Edits have been made for iChat 4
    Glossary for this FAQ
    Routers: Any configurable device that sits between your computer and the internet link you have. This includes Modems that Route as well as "routers"
    Routers seem to fall into two categories
    Those that work straight from the box. See Apple Article HT1787
    NOTE :This Article has not been updated in content since Jan 04 Only being changed to an Article from the Previous Doc listing
    Even then some list that they need tweaks.
    and those that do not.
    This post will deal with what you may need to look at.
    First off make sure your device is acting as a DHCP server. (if you are already on the internet you may not have to bother with this.)
    Check in the Tiger System Preferences > Network Preference Pane, in the "Built in Ethernet" option from the "Show" drop down list.
    In Leopard the Networks are listed on the left with icons. The Airport Option will need you to access the Advance Button for the Next bit.
    Make sure the TCP/IP tab is the 'front' one. You should be able to see Configure IPv4 and it most likely reads Using DCHP. Make a note of your IP address. It will start 10.xxx.xxx.xxx or 192.168.xxx.xxx (the 'x' s will stand for any number between 1 and 255). The range 172.16.xxx.xxx is also a possible value at this point. Rarely used, but it is part of the RFC for Address Allocation for Private Internets.
    Your router is most likely to be configurable from your browser. You will need to find the IP address to type into the browser from any Readme or PDF files that came on the install disk or visit the makers website and download a manual.
    The Port Forward.com site lists many devices and clicking on one will take you to a list of Applications. This iChat will open an page that will start by telling you the defaults to access the device
    Opening or Allowing ports. Several Methods not all devices have all of them.
    DMZ (Demilitarised Zone)
    This is a less secure setting that basically opens all ports and points the incoming data to your computer. (not helpful if you have more than one computer on your LAN). It can be considered as an extreme form of Port Forwarding
    Port Forwarding (also Virtual Server or Pin Holes)
    These settings are usually found in an Advanced setting.
    You may need to set an incoming IP address (Usually 0.0.0.0 to any outside server), a port that data will arrive on, the Inside computer's IP address (your computer) and the port it will deal with the data on and the protocol it will use.
    See this pic for an example of the description above.
    In this example shows that on some Port AND Protocols need to be listed.
    iChat uses TCP and UDP so some devices will need the ports listed one by one and some settings done twice, once for each protocol. The example above has a "Both" setting
    See Apple Article HT1507 Previously Doc 93208 for more information. This is the Tiger iChat 3 list. The same ports are needed for Leopard except for these changes
    My Note 2:
    On the first link Note 1 under tables in that link would be better if it read:
    " 1. All iChat AV traffic is UDP -
    except for ports 5190 and 5298, which need to be open for both TCP as well;
    and 5220, 5222, which need to be open for TCP only. "
    Note 2
    GoggleTalk needs port 5223 on TCP. Also note the Server name for iChat 3 set ups
    UPnP Universal Plug n Play.
    This is a simple Plug and Play type of setting. iChat can find it's own way through a router if the device has this capability.
    By Not doing Port Forwarding, Triggering or DMZ and enabling UPnP the application is allowed to control the modem and the ports that are open.
    They close after the application has finished with them on a timed basis.
    On some devices the number of "hops" (how far away the UPnP can be "seen") can be reduced from a default of 4)
    Trigger Ports
    Some devices offer a security measure that works by a first or trigger port receiving a data packet and then opening further ports when accepted.
    The first port for incoming Video or Audio invites is port 5678.
    Pre iChat 4
    When you click on the invite window the process moves in to port 5060 (so these will need to be opened by the trigger port) for negotiating the final group of ports from the group of 20 (16384-16403 These will need to open when the trigger says so as well). Therefore port 5678 triggers ports 5678, 5060, 16384-16403. All on UDP. Port 5190 neeeds to trigger port 5190 for both TCP and UDP.
    See this variation where only the ports listed above are completed.
    The other single ports need to be set one by one in addition. (5220,5222, 5223 5297, 5298, 5353)Replace
    iChat 4
    The port used in IChat 4 is port 16402 instead of port 5060. The group of 20 ports is reduced to 10 (16393-16402). This is because all the In and Out Audio and Video data is on one port. Other that than the settings are the same.
    At this time there is no Info on the ports the Screen Sharing in iChat 4 uses.
    Wireless
    Here you will have to read around but this Apple Article TA25949 Previously Doc 58514 might be a good starting place.
    Essentially whether you are wireless or Ethernet to your routing device makes very little difference to the way you do things.
    Your computer will get two IPs from a DHCP server if you are connected by both methods. (iChat does not like this)
    Multiple devices
    Make sure only one is acting as a DHCP server. Make sure wireless devices are bridged properly.
    Further Help
    I have found that this site (ADSLGuide) to be helpful.
    It is British based but I have linked you to the Apple Related Discussions Forum.
    Eliminating Problems on my Personal web pages.
    The ports and their function within iChat. (my personal Web pages again)
    This is not a step by step approach. You will have to read around the information about your device.
    Collected FAQs and Expansions: Index Page Based on FAQs here by EZ Jim and myself
    Also http://www.portforward.com/routers.htm for instructions with Pics on Port Forwarding and access info as mentioned earlier.
    Click on your device.
    Select iChat on the next page.
    Follow the info on the next.
    This site is godd for finding out the Default IP to use in a web browser and the default User ID and Passwords needed to do so.
    Gives you a chance to look at at pics to give clues to where some of these other things are.
    With thanks to Macmuse for comment on the Original (Aug 23rd 2004)
    and to EZ Jim for his work on iSights on my web pages.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    9:51 PM Saturday; December 6, 2008

    kichat: FAQ 2 - How to get my router to work with iChat? December 2008 version 3
    (Note to Hosts. to be removed on acceptance. Please use this to replace http://discussions.apple.com/thread.jspa?threadID=121775 )
    Getting your router started with iChat.
    Appropriate for using iChatAV 2 upwards. Edits have been made for iChat 4
    Glossary for this FAQ
    Routers: Any configurable device that sits between your computer and the internet link you have. This includes Modems that Route as well as "routers"
    Routers seem to fall into two categories
    Those that work straight from the box. See Apple Article HT1787
    NOTE :This Article has not been updated in content since Jan 04 Only being changed to an Article from the Previous Doc listing
    Even then some list that they need tweaks.
    and those that do not.
    This post will deal with what you may need to look at.
    First off make sure your device is acting as a DHCP server. (if you are already on the internet you may not have to bother with this.)
    Check in the Tiger System Preferences > Network Preference Pane, in the "Built in Ethernet" option from the "Show" drop down list.
    In Leopard the Networks are listed on the left with icons. The Airport Option will need you to access the Advance Button for the Next bit.
    Make sure the TCP/IP tab is the 'front' one. You should be able to see Configure IPv4 and it most likely reads Using DCHP. Make a note of your IP address. It will start 10.xxx.xxx.xxx or 192.168.xxx.xxx (the 'x' s will stand for any number between 1 and 255). The range 172.16.xxx.xxx is also a possible value at this point. Rarely used, but it is part of the RFC for Address Allocation for Private Internets.
    Your router is most likely to be configurable from your browser. You will need to find the IP address to type into the browser from any Readme or PDF files that came on the install disk or visit the makers website and download a manual.
    The Port Forward.com site lists many devices and clicking on one will take you to a list of Applications. This iChat will open an page that will start by telling you the defaults to access the device
    Opening or Allowing ports. Several Methods not all devices have all of them.
    DMZ (Demilitarised Zone)
    This is a less secure setting that basically opens all ports and points the incoming data to your computer. (not helpful if you have more than one computer on your LAN). It can be considered as an extreme form of Port Forwarding
    Port Forwarding (also Virtual Server or Pin Holes)
    These settings are usually found in an Advanced setting.
    You may need to set an incoming IP address (Usually 0.0.0.0 to any outside server), a port that data will arrive on, the Inside computer's IP address (your computer) and the port it will deal with the data on and the protocol it will use.
    See this pic for an example of the description above.
    In this example shows that on some Port AND Protocols need to be listed.
    iChat uses TCP and UDP so some devices will need the ports listed one by one and some settings done twice, once for each protocol. The example above has a "Both" setting
    See Apple Article HT1507 Previously Doc 93208 for more information. This is the Tiger iChat 3 list. The same ports are needed for Leopard except for these changes
    My Note 2:
    On the first link Note 1 under tables in that link would be better if it read:
    " 1. All iChat AV traffic is UDP -
    except for ports 5190 and 5298, which need to be open for both TCP as well;
    and 5220, 5222, which need to be open for TCP only. "
    Note 2
    GoggleTalk needs port 5223 on TCP. Also note the Server name for iChat 3 set ups
    UPnP Universal Plug n Play.
    This is a simple Plug and Play type of setting. iChat can find it's own way through a router if the device has this capability.
    By Not doing Port Forwarding, Triggering or DMZ and enabling UPnP the application is allowed to control the modem and the ports that are open.
    They close after the application has finished with them on a timed basis.
    On some devices the number of "hops" (how far away the UPnP can be "seen") can be reduced from a default of 4)
    Trigger Ports
    Some devices offer a security measure that works by a first or trigger port receiving a data packet and then opening further ports when accepted.
    The first port for incoming Video or Audio invites is port 5678.
    Pre iChat 4
    When you click on the invite window the process moves in to port 5060 (so these will need to be opened by the trigger port) for negotiating the final group of ports from the group of 20 (16384-16403 These will need to open when the trigger says so as well). Therefore port 5678 triggers ports 5678, 5060, 16384-16403. All on UDP. Port 5190 neeeds to trigger port 5190 for both TCP and UDP.
    See this variation where only the ports listed above are completed.
    The other single ports need to be set one by one in addition. (5220,5222, 5223 5297, 5298, 5353)Replace
    iChat 4
    The port used in IChat 4 is port 16402 instead of port 5060. The group of 20 ports is reduced to 10 (16393-16402). This is because all the In and Out Audio and Video data is on one port. Other that than the settings are the same.
    At this time there is no Info on the ports the Screen Sharing in iChat 4 uses.
    Wireless
    Here you will have to read around but this Apple Article TA25949 Previously Doc 58514 might be a good starting place.
    Essentially whether you are wireless or Ethernet to your routing device makes very little difference to the way you do things.
    Your computer will get two IPs from a DHCP server if you are connected by both methods. (iChat does not like this)
    Multiple devices
    Make sure only one is acting as a DHCP server. Make sure wireless devices are bridged properly.
    Further Help
    I have found that this site (ADSLGuide) to be helpful.
    It is British based but I have linked you to the Apple Related Discussions Forum.
    Eliminating Problems on my Personal web pages.
    The ports and their function within iChat. (my personal Web pages again)
    This is not a step by step approach. You will have to read around the information about your device.
    Collected FAQs and Expansions: Index Page Based on FAQs here by EZ Jim and myself
    Also http://www.portforward.com/routers.htm for instructions with Pics on Port Forwarding and access info as mentioned earlier.
    Click on your device.
    Select iChat on the next page.
    Follow the info on the next.
    This site is godd for finding out the Default IP to use in a web browser and the default User ID and Passwords needed to do so.
    Gives you a chance to look at at pics to give clues to where some of these other things are.
    With thanks to Macmuse for comment on the Original (Aug 23rd 2004)
    and to EZ Jim for his work on iSights on my web pages.
    I may receive some form of compensation, financial or otherwise, from my recommendation or link.
    9:51 PM Saturday; December 6, 2008

  • How can I get my ipod to work with itunes?

    When I connect my ipod classic into my new computer it seems that itunes does not recognize it. How can I get my ipod to work with itunes? I'm afraid to disconnect my ipod because the display is saying Do Not Disconnect.

    1. Update iTunes to the latest version. Plug in your iPod. If iTunes still can't recognize it, then in iTunes in the top left corner click help> run diagnostics. On the box that comes up, check the last two things. Click next and it should identify your iPod.
    2. Click on your windows start menu. Type in "services". Click on it and when it pops up, on the bottom of it click on "standard". Now Scroll down to find "Apple Mobile Device" Right click it when you see it and click on "Start". When it has started, close iTunes and replug in your iPod and it should show up.
    3. Check the USB cable
    4 Verify that Apple Mobile Device Support is installed
    5. Restart the Apple Mobile Device Service and verify that the Apple Mobile Device USB Driver is installed.
    6. If you just want to add some photos, songs and movies from computer to your devices, you can use an iTunes alternative to do the job
    7. Check for third-party software conflicts.
    <Link Edited By Host>

  • Can't get out.print to work with XML jsp tags

    <jsp:scriptlet>
    if(ErrorTrap == true) {
         out.println("<tr><td colspan=\"center\" align=\"center\">There was" an error while processing the form</td></tr>");
         ErrorTrap = false;
    </jsp:scriptlet>
    I can't get this script to work with the XML stype jsp tags. It keeps telling me the <jsp> tags are untermintaed. Is there a special trick to fix this or do I have to use the non-XML type tags?

    Sorry, I didn't mean to put the extra " in the out.println text string. :-/

  • Can't get Palm Zire to work with windows 7

    Can't get palm zire to work with windows
    Post relates to: Palm Pilot

    Please review the "stickied" threads near the top of this board, about syncing with Windows 7 and Vista.  It's all there. 
    After you've been through and tried everything there is to try, and still have problems, please post back with specific info about exactly what you've tried, what version of Windows 7 you have (32-bit or 64-bit), etc.
    smkranz
    I am a volunteer, and not an HP employee.
    Palm OS ∙ webOS ∙ Android

Maybe you are looking for