Can we use setinsets in JPanel?

can we use setinsets in JPanel?

Instead of posting twice in the wrong forum, how about posting once in the correct section next time?

Similar Messages

  • Can we use setInsets into JPanel?

    can we use setInsets into JPanel?
    Advance wishes

    yes.So? If LayoutManagers handle insets and JPanels can have LayoutManagers, you will have Inset handling in JPanels.

  • How can i use an inner Jpanel in another JPanel

    Hi, i need to put an inner panel in a container panel.I have been trying for hours but I couldn't make it work. Please waiting for help...
    public class Gui extends JFrame{
         public Gui() {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setEnabled(true);
              setSize(500, 500);
              JPanel mainPanel=new JPanel();
              int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
              int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
              JScrollPane jsp=new JScrollPane(mainPanel,v,h);
              this.add(mainPanel);
              setContentPane(jsp);
                    //this part doesn't works
              JPanel innerPanel=new JPanel();
              innerPanel.setSize(50, 50);
              innerPanel.setLocation(100, 100);
              innerPanel.setBorder(BorderFactory.createLineBorder(Color.black));
              innerPanel.setBackground(Color.red);
                   //this part doesn't works
         public static void main(String[] args) {
              Gui gui= new Gui();
              gui.setVisible(true);
    }

    I'm sorry it's my bad that i have forgotten to add the innerPanel to mainPannel (But of course i tried it in the original code :) ). Now i made the changes you suggested but there are still problems.
    I can see the innerPanel now, but the size and the position of the innerPanel doesn't works.
    public Gui() {
              setDefaultCloseOperation(EXIT_ON_CLOSE);
              setEnabled(true);
              setSize(500, 500);
              JPanel mainPanel=new JPanel();
              int v=ScrollPaneConstants.VERTICAL_SCROLLBAR_ALWAYS;
              int h=ScrollPaneConstants.HORIZONTAL_SCROLLBAR_ALWAYS;
              JScrollPane jsp=new JScrollPane(mainPanel,v,h);
              getContentPane().add(jsp);
              JPanel innerPanel=new JPanel();
              innerPanel.setSize(500, 500);
              innerPanel.setLocation(400, 400);
              innerPanel.setBorder(BorderFactory.createLineBorder(Color.black));
              innerPanel.setBackground(Color.red);
                    mainPanel.add(innerPanel);
                    //also i tried
                    //getContentPane().add(innerPanel);
                    //or
                    //jsp.add(innerPanel);        
    ...

  • How can I use XStream to persist complicated Java Object  to XML & backward

    Dear Sir:
    I met a problem as demo in my code below when i use XTream to persist my Java Object;
    How can I use XStream to persist complicated Java Object to XML & backward??
    See
    [1] main code
    import java.io.BufferedReader;
    import java.io.BufferedWriter;
    import java.io.FileReader;
    import java.io.FileWriter;
    import java.io.IOException;
    import java.util.ArrayList;
    import com.thoughtworks.xstream.XStream;
    import com.thoughtworks.xstream.io.xml.DomDriver;
    public class PhoneList {
         ArrayList<PhoneNumber> phones;
         ArrayList<Person> person;
         private PhoneList myphonelist ;
         private LocationTest location;
         private PhoneList(String name) {
         phones = new ArrayList<PhoneNumber>();
         person = new ArrayList<Person>();
         public ArrayList<PhoneNumber> getphones() {
              return phones;
         public ArrayList<Person> getperson() {
              return person;
         public void addPhoneNumber(PhoneNumber b1) {
              this.phones.add(b1);
         public void removePhoneNumber(PhoneNumber b1) {
              this.phones.remove(b1);
         public void addPerson(Person p1) {
              this.person.add(p1);
         public void removePerson(Person p1) {
              this.person.remove(p1);
         public void BuildList(){
              location = new LocationTest();
              XStream xstream = new XStream();
              myphonelist = new PhoneList("PhoneList");
              Person joe = new Person("Joe, Wallace");
              joe.setPhone(new PhoneNumber(123, "1234-456"));
              joe.setFax(new PhoneNumber(123, "9999-999"));
              Person geo= new Person("George Nixson");
              geo.setPhone(new PhoneNumber(925, "228-9999"));
              geo.getPhone().setLocationTest(location);          
              myphonelist.addPerson(joe);
              myphonelist.addPerson(geo);
         public PhoneList(){
              XStream xstream = new XStream();
              BuildList();
              saveStringToFile("C:\\temp\\test\\PhoneList.xml",convertToXML(myphonelist));
         public void saveStringToFile(String fileName, String saveString) {
              BufferedWriter bw = null;
              try {
                   bw = new BufferedWriter(
                             new FileWriter(fileName));
                   try {
                        bw.write(saveString);
                   finally {
                        bw.close();
              catch (IOException ex) {
                   ex.printStackTrace();
              //return saved;
         public String getStringFromFile(String fileName) {
              BufferedReader br = null;
              StringBuilder sb = new StringBuilder();
              try {
                   br = new BufferedReader(
                             new FileReader(fileName));
                   try {
                        String s;
                        while ((s = br.readLine()) != null) {
                             // add linefeed (\n) back since stripped by readline()
                             sb.append(s + "\n");
                   finally {
                        br.close();
              catch (Exception ex) {
                   ex.printStackTrace();
              return sb.toString();
         public  String convertToXML(PhoneList phonelist) {
              XStream xstream = new  XStream(new DomDriver());
              xstream.setMode(xstream.ID_REFERENCES) ;
              return xstream.toXML(phonelist);
         public static void main(String[] args) {
              new PhoneList();
    }[2].
    import java.io.Serializable;
    import javax.swing.JFrame;
    public class PhoneNumber implements Serializable{
           private      String      phone;
           private      String      fax;
           private      int      code;
           private      String      number;
           private      String      address;
           private      String      school;
           private      LocationTest      location;
           public PhoneNumber(int i, String str) {
                setCode(i);
                setNumber(str);
                address = "4256, Washington DC, USA";
                school = "Washington State University";
         public Object getPerson() {
              return null;
         public void setPhone(String phone) {
              this.phone = phone;
         public String getPhone() {
              return phone;
         public void setFax(String fax) {
              this.fax = fax;
         public String getFax() {
              return fax;
         public void setCode(int code) {
              this.code = code;
         public int getCode() {
              return code;
         public void setNumber(String number) {
              this.number = number;
         public String getNumber() {
              return number;
         public void setLocationTest(LocationTest bd) {
              this.location = bd;
            JFrame f = new JFrame();
            f.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
            f.getContentPane().add(location);
            f.getContentPane().add(location.getControls(), "Last");
            f.setSize(400,400);
            f.setLocation(200,200);
            f.setVisible(true);
         public LocationTest getLocationTest() {
              return location;
         }[3].
    package test.temp;
    import java.io.Serializable;
    public class Person implements Serializable{
         private String           fullname;
           @SuppressWarnings("unused")
         private PhoneNumber      phone;
           @SuppressWarnings("unused")
         private PhoneNumber      fax;
         public Person(){
         public Person(String fname){
                fullname=fname;           
         public void setPhone(PhoneNumber phoneNumber) {
              phone = phoneNumber;
         public void setFax(PhoneNumber phoneNumber) {
              fax = phoneNumber;
         public PhoneNumber getPhone() {
              return phone ;
         public PhoneNumber getFax() {
              return fax;
        public String getName() {
            return fullname ;
        public void setName(String name) {
            this.fullname      = name;
        public String toString() {
            return getName();
    }[4]. LocationTest.java
    package test.temp;
    import java.awt.*;
    import java.awt.event.*;
    import java.awt.geom.*;
    import javax.swing.*;
    import javax.swing.event.*;
    public class LocationTest extends JPanel implements ChangeListener
        Ellipse2D.Double ball;
        Line2D.Double    line;
        JSlider          translate;
        double           lastTheta = 0;
        public void stateChanged(ChangeEvent e)
            JSlider slider = (JSlider)e.getSource();
            String name = slider.getName();
            int value = slider.getValue();
            if(name.equals("rotation"))
                tilt(Math.toRadians(value));
            else if(name.equals("translate"))
                moveBall(value);
            repaint();
        protected void paintComponent(Graphics g)
            super.paintComponent(g);
            Graphics2D g2 = (Graphics2D)g;
            g2.setRenderingHint(RenderingHints.KEY_ANTIALIASING,
                                RenderingHints.VALUE_ANTIALIAS_ON);
            if(ball == null)
                initGeom();
            g2.setPaint(Color.green.darker());
            g2.draw(line);
            g2.setPaint(Color.red);
            g2.fill(ball);
        private void initGeom()
            int w = getWidth();
            int h = getHeight();
            int DIA = 30;
            int padFromEnd = 5;
            line = new Line2D.Double(w/4, h*15/16, w*3/4, h*15/16);
            double x = line.x2 - padFromEnd - DIA;
            double y = line.y2 - DIA;
            ball = new Ellipse2D.Double(x, y, DIA, DIA);
            // update translate slider values
            int max = (int)line.getP1().distance(line.getP2());
            translate.setMaximum(max);
            translate.setValue(max-padFromEnd);
        private void tilt(double theta)
            // rotate line from left end
            Point2D pivot = line.getP1();
            double lineLength = pivot.distance(line.getP2());
            Point2D.Double p2 = new Point2D.Double();
            p2.x = pivot.getX() + lineLength*Math.cos(theta);
            p2.y = pivot.getY() + lineLength*Math.sin(theta);
            line.setLine(pivot, p2);
            // find angle from pivot to ball center relative to line
            // ie, ball center -> pivot -> line end
            double cx = ball.getCenterX();
            double cy = ball.getCenterY();
            double pivotToCenter = pivot.distance(cx, cy);
            // angle of ball to horizon
            double dy = cy - pivot.getY();
            double dx = cx - pivot.getX();
            // relative angle phi = ball_to_horizon - last line_to_horizon
            double phi = Math.atan2(dy, dx) - lastTheta;
            // rotate ball from pivot
            double x = pivot.getX() + pivotToCenter*Math.cos(theta+phi);
            double y = pivot.getY() + pivotToCenter*Math.sin(theta+phi);
            ball.setFrameFromCenter(x, y, x+ball.width/2, y+ball.height/2);
            lastTheta = theta;  // save theta for next time
        private void moveBall(int distance)
            Point2D pivot = line.getP1();
            // ball touches line at distance from pivot
            double contactX = pivot.getX() + distance*Math.cos(lastTheta);
            double contactY = pivot.getY() + distance*Math.sin(lastTheta);
            // find new center location of ball
            // angle lambda = lastTheta - 90 degrees (anti-clockwise)
            double lambda = lastTheta - Math.PI/2;
            double x = contactX + (ball.width/2)*Math.cos(lambda);
            double y = contactY + (ball.height/2)*Math.sin(lambda);
            ball.setFrameFromCenter(x, y, x+ball.width/2, y+ball.height/2);
        JPanel getControls()
            JSlider rotate = getSlider("rotation angle", "rotation", -90, 0, 0, 5, 15);
            translate = getSlider("distance from end",  "translate", 0, 100, 100,25, 50);
            JPanel panel = new JPanel(new GridLayout(0,1));
            panel.add(rotate);
            panel.add(translate);
            return panel;
        private JSlider getSlider(String title, String name, int min, int max,
                                  int value, int minorSpace, int majorSpace)
            JSlider slider = new JSlider(JSlider.HORIZONTAL, min, max, value);
            slider.setBorder(BorderFactory.createTitledBorder(title));
            slider.setName(name);
            slider.setPaintTicks(true);
            slider.setMinorTickSpacing(minorSpace);
            slider.setMajorTickSpacing(majorSpace);
            slider.setPaintLabels(true);
            slider.addChangeListener(this);
            return slider;
    }OK, My questions are:
    [1]. what I generated XML by XSTream is very complicated, especially for object LocationTest, Can we make it as simple as others such as Person object??
    [2]. after I run it, LocationTest will popup and a red ball in a panel will dsiplay, after I change red ball's position, I hope to persist it to xml, then when I read it back, I hope to get same picture, ie, red ball stiil in old position, How to do that??
    Thanks a lot!!

    Positive feedback? Then please take this in a positive way: if you want to work on persisting Java objects into XML, then GUI programming is irrelevant to that goal. The 1,000 lines of code you posted there appeared to me to have a whole lot of GUI code in it. You should produce a smaller (much smaller) example of what you want to do. Calling the working code from your GUI program should come later.

  • Can we use GridBagLayout in JInternal Frame

    i've a question that can we use gridbaglayout in JInternalFrame?

    Yes:
    internalFrame.getContentPane().setLayout(new GridBagLayout());
    // Add children to be laid out to internalFrame,getContentPane()
    //or if you prefer:
    JPanel p = new JPanel(new GridBagLayout());
    internaleFrame.getContentPane().add(p);
    // Add children to be laid out to 'p'
    //

  • Hi, I can't use addRow in JTable

    Hi, I can't use addRow in tableModel1.addRow. I am new in Java
    here some code
    public class Class1 extends JInternalFrame implements TableModelListener
    public Class1(Connection srcCN, JFrame getParentFrame) throws SQLException
        try
        cnCus = srcCN;
              stCus = cnCus.createStatement(ResultSet.TYPE_SCROLL_SENSITIVE,
                        ResultSet.CONCUR_UPDATABLE);
              strSQL = "SELECT * FROM customer ORDER BY n_customer ASC";
        rsCus = stCus.executeQuery(strSQL);
          jbInit();
        catch(Exception e)
          e.printStackTrace();
      private void jbInit() throws Exception
        jScrollPane1.getViewport().add(jTable1, null);
        DefaultTableModel tableModel1 = MyModel();
        this.setClosable(true);
        this.setTitle("REVISION");
        this.setMaximizable(true);
        this.setSize(new Dimension(800, 600));
        this.setResizable(true);
        this.setIconifiable(true);
        this.addKeyListener(new java.awt.event.KeyAdapter()
            public void keyPressed(KeyEvent e)
              this_keyPressed(e);
    private DefaultTableModel MyModel(){
      DefaultTableModel m = new DefaultTableModel(){
      public void setValueAt(Object value, int iRows, int iCols) {
                        try {
                             rsCus.absolute(iRows + 1);
                             rsCus.updateString(iCols + 1, value.toString());
                             rsCus.updateRow();
                             super.setValueAt(value, iRows, iCols);
                        } catch (SQLException e) {
                   public boolean isCellEditable(int iRows, int iCols) {
                        if (iCols == 0)
                             return false;
                        if (iCols == 1)
                             return false;
                        return true;    
               public void addRow(Vector data){} 
    m.setDataVector(Content, ColumnHeaderName);
    return m;
    private void this_keyPressed(KeyEvent e)
    tableModel1.addRow(new Vector[]{"r5"});

    Here is an example of building a DefaultTableModel using the data in a ResultSet:
    import java.awt.*;
    import java.io.*;
    import java.sql.*;
    import java.util.*;
    import javax.swing.*;
    import javax.swing.table.*;
    public class TableFromDatabase extends JFrame
         public TableFromDatabase()
              Vector columnNames = new Vector();
            Vector data = new Vector();
            try
                //  Connect to the Database
                String driver = "sun.jdbc.odbc.JdbcOdbcDriver";
    //            String url = "jdbc:odbc:Teenergy";  // if using ODBC Data Source name
                String url =
                    "jdbc:odbc:Driver={Microsoft Access Driver (*.mdb)};DBQ=c:/data/database.mdb";
                String userid = "";
                String password = "";
                Class.forName( driver );
                Connection connection = DriverManager.getConnection( url, userid, password );
                //  Read data from a table
                String sql = "Select * from Page";
                Statement stmt = connection.createStatement();
                ResultSet rs = stmt.executeQuery( sql );
                ResultSetMetaData md = rs.getMetaData();
                int columns = md.getColumnCount();
                //  Get column names
                for (int i = 1; i <= columns; i++)
                    columnNames.addElement( md.getColumnName(i) );
                //  Get row data
                while (rs.next())
                    Vector row = new Vector(columns);
                    for (int i = 1; i <= columns; i++)
                        row.addElement( rs.getObject(i) );
                    data.addElement( row );
                rs.close();
                stmt.close();
            catch(Exception e)
                System.out.println( e );
            //  Create table with database data
            JTable table = new JTable(data, columnNames);
            JScrollPane scrollPane = new JScrollPane( table );
            getContentPane().add( scrollPane );
            JPanel buttonPanel = new JPanel();
            getContentPane().add( buttonPanel, BorderLayout.SOUTH );
        public static void main(String[] args)
            TableFromDatabase frame = new TableFromDatabase();
            frame.setDefaultCloseOperation( EXIT_ON_CLOSE );
            frame.pack();
            frame.setVisible(true);
    }

  • Want to use JDeskTopPane in JPanel

    Hi
    I want to use JDeskTopPane in a JPanel. The reason is that I want to use some JInternalFrames within a particular panel of my application.
    I am using an applet so obviously I could use this.setContentPane() when loading the APPLET, however I need some kind of setContentPane() method on my JPanel which I am using.
    Not sure if you can do that to a JPanel.
    cheers,
    Oliver

    This section from the Swing tutorial shows you how to use a JDeskTopPane and JInternalFrame:
    http://java.sun.com/docs/books/tutorial/uiswing/components/internalframe.html

  • Modifying code so that JCheckBox can be used instead of JComboBox

    Hello.
    how can I modify the following code so that JCheckBox can be used instead of JComboBox?
    Thanks.
    import javax.swing.*;
    import java.sql.*;
    import java.awt.*;
    import java.awt.event.*;
    public class Exercise32_6 extends JApplet {
      private JComboBox jcboTableName = new JComboBox();
      private JTextArea jtaResult = new JTextArea();
      private JButton jbtShowContents = new JButton("Show Contents");
      private Statement stmt;
      public void init() {
        initializeDB();
        jbtShowContents.addActionListener(new java.awt.event.ActionListener() {
           public void actionPerformed(ActionEvent e) {
              jbtShowContents_actionPerformed(e);
        JPanel jPanel1 = new JPanel();
        jPanel1.add(new JLabel("Table Name"));
        jPanel1.add(jcboTableName);
        jPanel1.add(jbtShowContents);
        this.getContentPane().add(jPanel1, BorderLayout.NORTH);
        this.getContentPane().add(new JScrollPane(jtaResult), BorderLayout.CENTER);
      private void initializeDB() {
        try {
          Class.forName("sun.jdbc.odbc.JdbcOdbcDriver");
          System.out.println("Driver loaded");
          Connection connection = DriverManager.getConnection("jdbc:odbc:VideoLibrary");
          System.out.println("Database connected");
          stmt = connection.createStatement();
          DatabaseMetaData dbMetaData = connection.getMetaData();
          ResultSet rsTables = dbMetaData.getTables(null, null, null, new String[] {"TABLE"});
          System.out.print("User tables: ");
          while (rsTables.next()) {
            jcboTableName.addItem(rsTables.getString("TABLE_NAME"));
        catch (Exception ex) {
          ex.printStackTrace();
      private void jbtShowContents_actionPerformed(ActionEvent e) {
        String tableName = (String)jcboTableName.getSelectedItem();
        try {
          String queryString = "select * from " + tableName;
          ResultSet resultSet = stmt.executeQuery(queryString);
          ResultSetMetaData rsMetaData = resultSet.getMetaData();
          for (int i = 1; i <= rsMetaData.getColumnCount(); i++) {
            jtaResult.append(rsMetaData.getColumnName(i) + "    ");
          jtaResult.append("\n");
          while (resultSet.next()) {
            for (int i = 1; i <= rsMetaData.getColumnCount(); i++) {
              jtaResult.append(resultSet.getObject(i) + "     ");
            jtaResult.append("\n");
        catch (SQLException ex) {
          ex.printStackTrace();
      public static void main(String[] args) {
        Exercise32_6 applet = new Exercise32_6();
        JFrame frame = new JFrame();
        frame.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE);
        frame.setTitle("Exercise32_6");
        frame.getContentPane().add(applet, BorderLayout.CENTER);
        applet.init();
        applet.start();
        frame.setSize(380, 180);
        frame.setLocationRelativeTo(null);
        frame.setVisible(true);
    }

    hello.
    thanks for the reply. i want users of my video library system to be able to view CD/DVD/Game information by name, age category, type and year. Users should be able to click on a check box (e.g. view by name, age category, type or year) and press a button. What would happen then is that data from the Product table would appear in the text area.

  • Inserting a Gui program using JFrames and JPanel

    I'm trying to insert a chat program into a game that I've created! The chat program is using JFrames and JPanels. I want to insert this into a GridLayout and Panel. How can I go about doing this?

    whatever is in the frame's contentPane now, you add to a separate JPanel.
    you also add your chat stuff to the separate panel
    the separate panel is added to the frame as the content pane

  • Can we use IF statement in PDF templates

    Hi,
    I developed a PDF template. I need to underline ang bold the records based on a specific condition. Can we use IF conditon in PDF templates. Please suggest.
    Thanks...

    Billy  Verreynne  wrote:
    The case syntax is a bit funny though as there's not a single condition evaluation (like a DECODE or case structs from some other languages).
    This is what I would expect a typical case struct to look like - evaluating a single condition:
    case <condition>
    when <value-1> then return <result-1>
    when <value-n> then return <result-n>
    else
    return <return-z>
    end
    ?:| You mean like this...?
    SQL> ed
    Wrote file afiedt.buf
      1  select empno, ename, deptno
      2        ,case deptno
      3           when 10 then 'This is Department 10'
      4           when 20 then 'And department 20'
      5           when 30 then 'And of course department 30'
      6         else
      7           'Blimey it is something else!'
      8         end as dept_desc
      9* from emp
    SQL> /
         EMPNO ENAME          DEPTNO DEPT_DESC
          7369 SMITH              20 And department 20
          7499 ALLEN              30 And of course department 30
          7521 WARD               30 And of course department 30
          7566 JONES              20 And department 20
          7654 MARTIN             30 And of course department 30
          7698 BLAKE              30 And of course department 30
          7782 CLARK              10 This is Department 10
          7788 SCOTT              20 And department 20
          7839 KING               10 This is Department 10
          7844 TURNER             30 And of course department 30
          7876 ADAMS              20 And department 20
          7900 JAMES              30 And of course department 30
          7902 FORD               20 And department 20
          7934 MILLER             10 This is Department 10
    14 rows selected.

  • In alv report can i use control break events? if no .whay?

    Hi all,
    in alv report can i use control break events? if no .whay?

    hi,
    you can use control break statements in ALV report.
    for example: if one PO is having more than one line item, that time you need to display PO only once.

  • HT1751 I need to uninstall and reinstall iTunes (it won't let me update). So, how do I copy or back up my iTunes library of over 1,500 songs? Can I use a Flash Drive to do so?

    I need to uninstall and reinstall iTunes (it won't let me update). I have IE 8 on Windows XP, and iTunes 10 something. In my Program files list I see iTunes and iTunes (2) and even iPod and iPod (2) where a tech had to back up and do this for me before. I'm just trying to fix it all. I keep getting the "The feature you are trying to use is on a network resource that is unavailable. Click OK to try again, or enter an alternate path to a folder containing the installation package 'iTunes.msi' in the box below." I can even run a search and find the folder, but it gives me the same error message. I was planning on using the Microsoft Fix-It tool  to help uninstall then Reinstall iTunes. But I need to backup my library. So, how do I copy or back up my iTunes library of over 1,500 songs? Can I copy the folder to desktop or can I use a Flash Drive to backup my music? I don't want to do anything until I know for sure how I can backup my songs, and then reinstall them into iTunes. Thanks for any help.

    Ok, thanks that helps. I don't have an external hard drive though. What about backing up through 'the cloud'? I'm just wondering since my husband syncs his iPod to the PC through iTunes and he's worried that he will lose all the songs on his iPod if the library is lost from iTunes and he tries to 'sync' it up again. I'm not exactly sure how to  'copy the entire iTunes folder' either. I kinda suck at this unless I have step by step instructions, which I haven't found yet on iTunes help or other sources.
    The only way I know how to back anything up is by going back to a restore point, etc. (as stated before, we don't have an external hard drive.)
    Thanks for the info.

  • How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes?

    How can I use 2 Apple IDs in Itunes? I have 2 IOS Devices. They each have there own AppleID. What is the proper way to sync both of them to Itunes? I wanted my teenager's AppleID to be different from mine so that she couldn't charge stuff to my AppleID, therefore I created me another one. Now when I go to Sync either device, it tells me that this IOS device can only be synced with one AppleID. Then I get a message to erase it, not going to do that, lol. If I logout as one ID and login as the other, will it still retain all synced information on the PC from the first IOS device? If I can just log in out of the AppleID, then I have no problem doing that as long as the synced apps, music, etc stays there for both. I am not trying to copy from one to the other, just want to make sure I have a backup for the UhOh times. If logging in and out on the same PC of multiple AppleIDs is acceptible then I need to be able to authorize the PC for both devices. Thanks for the help. I am new to the iOS world.

    "Method Three
    Create a separate iTunes library for each device. Note:It is important that you make a new iTunes Library file. Do not justmake a copy of your existing iTunes Library file. If iTunes is open,quit it.
    This one may work. I searched and searched on the website for something like this, I guess I just didn't search correctly, lol. I will give this a try later. My daughter is not be back for a few weekends, therefore I will have to try the Method 3 when she comes back for the weekend again. "
    I forgot to mention that she has a PC at her house that she also syncs to. Would this cause a problem. I am already getting that pop up saying that the iPod is synced to another library (even though she is signed in with her Apple ID to iTunes) and gives the pop up to Cancel, Erase & Sync, or Transfer Purchases. My question arose because she clicked on "Erase & Sync" by mistake when she plugged the iPod to her PC the first time. When the iPod was purchased and setup, it was synced to my PC first. When she went home, she hooked it up to her PC and then she erased it by accident. I was able to restore all the missing stuff yesterday using my PC. However, even after doing that it still told me the next time I hooked it up last night that the iPod was currently synced with a different library. Hopefully, you can help me understand all this. She wants to sync her iPod and also backup her iPod at both places. Both PCs have been authorised. Thanks

  • Can I Use iTunes Store without Storing Bank Accounts, etc, in my Profile?

    Hi
    Today a fraudulent charge of $89.99 appeared on my iTunes account. This suggests that a hacker has obtained my password, and hence access to all information in my iTunes account, including credit card or Paypal account information. I can deal with having to claim refunds for fraudulent iTunes purchases, but I cannot afford to risk ID Theft, or to have my back account information in the possession of hackers.
    (1) Is it possible to maintain an iTunes account that does not store bank accounts, and ideally stores no personal information other than my email address?
    (2) If I can do this, I assume I'd then have to enter that information for each purchase. Will this information be expunged once the ourchase is complete? Or would it remain on the system in some form, accessible to hackers?
    (3) If (1) is not possible, how do I cancel my iTunes account? There does not seem to be such an option on the iTunes Account Management screens.
    Thanks,
    Chris

    You can remove your credit card from your account. Go into the account, click "Edit payment information" and you will see the option under credit card to click "None."
    For purchasing, you can either enter the card info per transaction, or you can start using iTunes gift cards which are readily available.

  • How can I use apps downloaded by different users on the same iPad?

    I have a 'work' iPad so the apps on it have been downloaded using two different accounts. Which was fine until I did an update at the weekend and suddenly I can only use the one's I downloaded. Is there anyway of 'sharing' these apps so who logs in can use all the apps?

    No, I don't think there is. As far as I know the iPad is meant to be a 'one per Apple ID' device...and isn't really meant to have multiple Apple ID's  downloading apps to a singular device.
    I think the simplest way around your issue is to use only one Apple ID to download everything.

Maybe you are looking for

  • Foreign Exchange loss is not getting correct amount

    Hi Guru's I have maintained loss (x) and gain (Y) accounts in OB09 for the GL account (Z). There is two open items for the GL account (Z), in that one is debit open item and another one is credit open item. The difference is 500 TRY and 0 USD. I just

  • Issues using 11.1.1.7.0 demo material on Windows 64 bit env

    I use ODI 10g - so downloaded 11gR1 version 11.1.1.7.0 and worked through demo to find out more about 11g functionality.  I installed 11gR1 on Windows 7.   I have found an issue with the SRC_SALES_PERSON datastore in the "Parameters - FILE" folder un

  • Iphoto 9.2.3 not working anymore

    Since my last OS update in Lion my iphoto 11 is not working anymore - it crashes 5 seconds after displaying the window. I tried to reinstall it from iLife 11 without any success. I also created a new library. Here is my crash-log: Process:     iPhoto

  • How to add file name to path

    Hi, I use this sentence: set temp to path to home folder from user domain which give me the name of the home folder of the current user. But how in Apple script I can append a file name to that to get something like: "Macintosh HD:Users:user:temp_fil

  • How to do bursting on oracle bi publisher

    Hi everyone, I am currently learning oracle bi publisher and I am using version 10.1.3.2. I want to use bursting to send emails to different people with attachments. I have prepared a report with xml data, rtf template file and I am able to view it.