[code here]Need modification:Make my DrawPanel keep what I have paint

Hi
please try it first
it's to draw some random shade on a JPanel
I just want the DrawPanel keep the random shades when resize.....
Thank you for your patience
DrawFrame.java
import javax.swing.*;
import java.awt.*;
public class DrawFrame extends JFrame {
  public static Shade[] shades;
  static {
    shades = new Shade[] {
        new CircleType(), new RectType(), new DiamondType()
  static InfoPanel ip = new InfoPanel();
  static DrawPanel dp = new DrawPanel();
  public DrawFrame() {
    JButton draw = new JButton("draw");
    Container cp = this.getContentPane();
    cp.add(new JLabel("Created by iooirrr on 2003.4.19~4.21 version 0.3"), BorderLayout.NORTH);
    JScrollPane dpjsp = new JScrollPane(dp);
    dpjsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    dpjsp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_NEVER);
    cp.add(dpjsp, BorderLayout.CENTER);
ScrollPaneLayout spl = new ScrollPaneLayout();
    JScrollPane ipjsp = new JScrollPane(ip);
    ipjsp.setLayout(spl);
    ipjsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    ipjsp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    cp.add(ipjsp, BorderLayout.WEST);
String[] shadename = new String[shades.length];
    for (int i = 0; i < shades.length; i ++) {
      shadename[i] = shades.getName();
ip.shadeList.setListData(shadename);
Rectangle max = GraphicsEnvironment.getLocalGraphicsEnvironment().getMaximumWindowBounds();
this.setLocation(0, 0);
this.setSize(max.width, max.height);
this.show();
public void make(Container cp, Component c, GridBagLayout gbl, GridBagConstraints gbc) {
// gbc.fill = GridBagConstraints.BOTH;
gbl.setConstraints(c, gbc);
cp.add(new JScrollPane(c));
public static void main(String[] parameters) {
DrawFrame df = new DrawFrame();
df.setDefaultCloseOperation(JFrame.EXIT_ON_CLOSE );
DrawPanel.java
import javax.swing.*;
import javax.swing.border.*;
import java.awt.*;
import java.awt.event.*;
public class DrawPanel extends JPanel {
  JTextArea jTextArea1 = new JTextArea();
  public DrawPanel() {
    this.setSize(this.getMaximumSize());
    this.addMouseListener(new MouseListener() {
      public void mouseClicked(MouseEvent e) {
        drawExample();
      public void mousePressed(MouseEvent e) {
      public void mouseReleased(MouseEvent e) {
      public void mouseEntered(MouseEvent e) {
      public void mouseExited(MouseEvent e) {
  public void paint(Graphics g) {
    // super.paint(g);
    setOpaque(false);
  public Graphics returnGraphics() {
    return this.getGraphics();
  public void drawExample() {
    DrawFrame.ip.sumarea = 0;
    DrawFrame.ip.sumperi = 0;
    DrawFrame.ip.areaT.setText("");
    DrawFrame.ip.periT.setText("");
    Shade.serial = 0;
    for (int i = 0; i < DrawFrame.shades.length; i ++) {
      DrawFrame.shades.number = 0;
this.getGraphics().clearRect(0, 0, this.getSize().width, this.getSize().height);
InfoPanel.info.setText("");
for(int i = 0; i < InfoPanel.shadeindex.size(); i ++) {
try {
Shade oneshade = DrawFrame.shades[Integer.parseInt(InfoPanel.shadeindex.elementAt(i).toString())].returnclass();
oneshade.drawself(this.getGraphics(), this.getVisibleRect().width, this.getVisibleRect().height);
DrawFrame.ip.sumarea += oneshade.returnArea();
DrawFrame.ip.sumperi += oneshade.returnPeri();
DrawFrame.ip.areaT.setText(String.valueOf(DrawFrame.ip.round(DrawFrame.ip.sumarea, 3)));
DrawFrame.ip.periT.setText(String.valueOf(DrawFrame.ip.round(DrawFrame.ip.sumperi, 3)));
} catch (Exception e) {
System.out.println(e.toString());
InfoPanel.java
import javax.swing.*;
import java.awt.*;
import java.awt.event.*;
import java.util.*;
public class InfoPanel extends JPanel {
  static JList shadeList = new JList();
  static JList typeList = new JList();
  static JTextField amountT = new JTextField(10);
  static JButton add = new JButton("add to");
  static JButton remove = new JButton("remove");
  static JButton draw = new JButton("draw");
  static Vector type = new Vector();
  static Vector shadeindex = new Vector(); // ??????????????shades????????
  static JTextField areaT = new JTextField(10);
  static JTextField periT = new JTextField(10);
  static JTextArea info = new JTextArea(10, 10);
  double sumarea;
  double sumperi;
  public InfoPanel() {
    // get information
    JLabel amountL = new JLabel("Enter the amount you want to draw: ");
    JLabel shadeL = new JLabel("The shade you can draw: ");
    shadeList.setVisibleRowCount(5);
    JLabel typeL = new JLabel("The type you want to draw: ");
    typeList.setVisibleRowCount(5);
    // result
    JLabel periL = new JLabel("all perimeters' sum are: ");
    periT.setEditable(false);
    JLabel areaL = new JLabel("all areas' sum are: ");
    areaT.setEditable(false);
    GridBagLayout gbl = new GridBagLayout();
    GridBagConstraints gbc = new GridBagConstraints();
    setLayout(gbl);
    gbc.fill = GridBagConstraints.HORIZONTAL;
    make(amountL, gbl, gbc);
    make(amountT, gbl, gbc);
    gbc.insets = new Insets(10, 0, 0, 0);
    make(shadeL, gbl, gbc);
    gbc.insets = new Insets(0, 0, 0, 0);
    make(new JScrollPane(shadeList), gbl, gbc);
    make(add, gbl, gbc);
    make(typeL, gbl, gbc);
    make(new JScrollPane(typeList), gbl, gbc);
    make(remove, gbl, gbc);
    gbc.insets = new Insets(10, 0, 0, 0);
    make(draw, gbl, gbc);
    gbc.insets = new Insets(0, 0, 0, 0);
    make(areaL, gbl, gbc);
    make(areaT, gbl, gbc);
    make(periL, gbl, gbc);
    make(periT, gbl, gbc);
    make(new JLabel("Each shade's information list here:"), gbl, gbc);
    JScrollPane infojsp = new JScrollPane(info);
    infojsp.setVerticalScrollBarPolicy(JScrollPane.VERTICAL_SCROLLBAR_ALWAYS);
    infojsp.setHorizontalScrollBarPolicy(JScrollPane.HORIZONTAL_SCROLLBAR_ALWAYS);
    make(infojsp, gbl, gbc);
    // amountT handle mouse entered event
    amountT.addMouseListener(new MouseListener() {
      public void mouseClicked(MouseEvent e) {
      public void mousePressed(MouseEvent e) {
      public void mouseReleased(MouseEvent e) {
      public void mouseEntered(MouseEvent e) {
        amountT.setText("");
        amountT.requestFocusInWindow(); // ??requestFocus()????????????
      public void mouseExited(MouseEvent e) {
//  add(new JList(new String[]{"1", "2", "3"}));
    this.setSize(this.getPreferredSize());
    add.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        addtoType();
    remove.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        removeType();
    draw.addActionListener(new ActionListener() {
      public void actionPerformed(ActionEvent e) {
        draw();
  public void make(Component c, GridBagLayout gbl, GridBagConstraints gbc) {
    gbc.gridx = 0;
    gbl.setConstraints(c, gbc);
    add(c);
  public void addtoType() {
    int[] sindex = shadeList.getSelectedIndices();
    for(int i = 0; i < sindex.length; i ++) {
      if(type.indexOf(DrawFrame.shades[sindex].getName()) == -1) {
type.addElement(DrawFrame.shades[sindex[i]].getName());
shadeindex.addElement(String.valueOf(sindex[i]));
typeList.setListData(type);
typeList.updateUI();
public void removeType() {
int[] tindex = typeList.getSelectedIndices();
String[] temp = new String[tindex.length];
for(int i = 0; i < tindex.length; i ++) {
temp[i] = type.elementAt(tindex[i]).toString();
for(int i = 0; i < tindex.length; i ++) {
type.removeElement(temp[i]);
for(int i = 0; i < temp.length; i ++) {
for(int j = 0; j < DrawFrame.shades.length; j ++) { // ??????????????????????????
if (DrawFrame.shades[j].getName() == temp[i]) {
shadeindex.removeElement(String.valueOf(j));
typeList.setListData(type);
typeList.updateUI();
public void draw() {
long starttime=System.currentTimeMillis(); // ????????????????????
for (int i = 0; i < DrawFrame.shades.length; i ++) {
DrawFrame.shades[i].number = 0;
info.setText("");
int amount;
Shade.serial = 0;
sumarea = 0;
sumperi = 0;
try {
amount = Integer.parseInt(amountT.getText());
} catch (Exception e) {
amount = (int)((Math.random() + 1) * 10); //????????10-20??
amountT.setText("Random produce an int: " + amount);
if (type.size() == 0) { // ????????????????????
for(int i = 0; i < DrawFrame.shades.length; i ++) {
if(type.indexOf(DrawFrame.shades[i].getName()) == -1) {
type.addElement(DrawFrame.shades[i].getName());
shadeindex.addElement(String.valueOf(i));
typeList.setListData(type);
typeList.updateUI();
Graphics g = DrawFrame.dp.getGraphics();
g.clearRect(0, 0, DrawFrame.dp.getSize().width, DrawFrame.dp.getSize().height);
info.append("Each shade Information:\n");
for(int i = 0; i < amount; i ++) {
try {
Shade oneshade = DrawFrame.shades[Integer.parseInt(shadeindex.elementAt((int)(Math.random() * shadeindex.size())).toString())];
oneshade.drawself(g, DrawFrame.dp.getVisibleRect().width, DrawFrame.dp.getVisibleRect().height);
sumarea += oneshade.returnArea();
sumperi += oneshade.returnPeri();
oneshade.areaSum += oneshade.returnArea();
oneshade.periSum += oneshade.returnPeri();
} catch (Exception e) {
System.out.println(e.toString());
info.append("\n");
info.append("Each Type Information:\n");
for(int i = 0; i < shadeindex.size(); i ++) {
Shade eachshade = DrawFrame.shades[Integer.parseInt(shadeindex.elementAt(i).toString())];
String name = eachshade.getName();
int eachsum = eachshade.number;
info.append(eachsum + " " + name + "\n");
info.append(" " + "sum area:" + round(eachshade.areaSum, 3) + "\n");
info.append(" " + "sum peri:" + round(eachshade.periSum, 3) + "\n");
for(int i = 0; i < type.size(); i ++) {
try {
Shade oneshade = DrawFrame.shades[Integer.parseInt(shadeindex.elementAt(i).toString())].returnclass();
oneshade.drawself(g, this.getWidth(), this.getHeight());
sumarea += oneshade.returnArea();
sumperi += oneshade.returnPeri();
} catch (Exception e) {
System.out.println(e.toString());
areaT.setText(String.valueOf(round(sumarea, 3)));
periT.setText(String.valueOf(round(sumperi, 3)));
long endtime=System.currentTimeMillis();
long totaltimetaken=endtime-starttime;//time in milliseconds
info.append("\n");
info.append("Total time used: " + totaltimetaken + " Millis\n");
public double round(double d, int deci) {
double factor = Math.pow(10, deci);
return (Math.round(factor * d))/factor;
Shade.java
import java.awt.*;
public abstract class Shade {
  public double area;
  public double peri;
  static int serial;
  public int number;
  public double areaSum;
  public double periSum;
  abstract public String getName();
  abstract public void drawself(Graphics g, double dpwidth, double dpheight);
  abstract public double returnArea();
  abstract public double returnPeri();
  public Shade returnclass() {
    return this;
}CircleType.java
import java.awt.*;
public class CircleType extends Shade {
  public double r; // ????10??20
  public String getName() {
    return "Circle";
  public void setR() {
    r = (Math.random() + 1) * 10;
  public double returnArea() {
    area = Math.PI * Math.pow(r, 2);
    return area;
  public double returnPeri() {
    peri = 2 * Math.PI * r;
    return peri;
  public void drawself(Graphics g, double dpwidth, double dpheight) {
    setR();
    int x = (int)(dpwidth * Math.random()); // DrawPanel ?????????? ????????????????????
    int y = (int)(dpheight * Math.random());
    if(x < 2 * r) {
      x += 2 * r;
    } else if ( dpwidth - x < 2 * r ) {
      x -= 2 * r;
    if(y < 2 * r) {
      y += 2 * r;
    } else if (- y + 2 * r < dpwidth) {
      y -= 2 * r;
    int width = (int)(2 * r);
    int height = (int)(2 * r);
    g.setColor(Color.blue);
    g.drawOval(x, y, (int)(2 * r), (int)(2 * r));
    g.drawString(String.valueOf(++serial), x + (int)r, y + (int)r);
    InfoPanel.info.append(serial + " is " + "No." + ++ number + " " + getName() + "\n" );
    InfoPanel.info.append("    " + "Area:" + DrawFrame.ip.round(returnArea(), 3) + "\n");
    InfoPanel.info.append("    " + "Peri:" + DrawFrame.ip.round(returnPeri(), 3) + "\n");
    // g.drawString("Area:" + returnArea() + ";" + "Peri:" + returnPeri(), x, y);
}DiamondType.java
import java.awt.*;
public class DiamondType extends Shade {
  public double area;
  public double peri;
  public double w, h; // ??, ??
  public void setWH() {
    w = (Math.random() + 1) * 30;
    h = (Math.random() + 1) * 30;
  public String getName() {
    return "diamond";
  public void drawself(Graphics g, double dpwidth, double dpheight) {
    int x = (int)(dpwidth * Math.random()); // DrawPanel ?????????? ????????????????????
    int y = (int)(dpheight * Math.random());
    setWH();
    if(x < w) {
      x += w;
    } else if ( dpwidth - x < w ) {
      x -= w;
    if(y < h) {
      y += h;
    } else if (- y + h < dpwidth) {
      y -= h;
    g.setColor(Color.darkGray);
    g.drawPolygon(new int[] {x, (int)(x + w/2), (int)(x + w), (int)(x + w/2)}, new int[] {(int)(y + h/2), y, (int)(y + h/2), (int)(y + h)}, 4);
    g.drawString(String.valueOf(++serial), x + (int)(w/2), y + (int)(h/2));
    // g.drawString("iooi's diamond. area:" + returnArea() + ";" + "Peri:" + returnPeri(), x, y);
    InfoPanel.info.append(serial + " is " + "No." + ++ number + " " + getName() + "\n" );
    InfoPanel.info.append("    " + "Area:" + DrawFrame.ip.round(returnArea(), 3) + "\n");
    InfoPanel.info.append("    " + "Peri:" + DrawFrame.ip.round(returnPeri(), 3) + "\n");
  public double returnArea() {
    area = w * h;
    return area/2;
  public double returnPeri() {
    peri = 2 * (w + h);
    return peri * Math.sqrt(2) / 2;
}RectType.java
import java.awt.*;
public class RectType extends Shade {
  public double w, h; // ??, ??
  public String getName() {
    return "Rect";
  public void setWH() {
    w = (Math.random() + 1) * 20;
    h = (Math.random() + 1) * 20;
  public double returnArea() {
    area = w * h;
    return area;
  public double returnPeri() {
    peri = 2 * (w + h);
    return peri;
  public void drawself(Graphics g, double dpwidth, double dpheight) {
    setWH();
    int x = (int)(dpwidth * Math.random()); // DrawPanel ?????????? ????????????????????
    int y = (int)(dpheight * Math.random());
    if(x < w) {
      x += w;
    } else if ( dpwidth - x < w ) {
      x -= w;
    if(y < h) {
      y += h;
    } else if (- y + h < dpwidth) {
      y -= h;
    g.setColor(Color.red);
    g.drawRect(x, y, (int)w, (int)h);
    g.drawString(String.valueOf(++serial), x + (int)(w/2), y + (int)(h/2));
    InfoPanel.info.append(serial + " is " + "No." + ++ number + " " + getName() + "\n" );
    InfoPanel.info.append("    " + "Area:" + DrawFrame.ip.round(returnArea(), 3) + "\n");
    InfoPanel.info.append("    " + "Peri:" + DrawFrame.ip.round(returnPeri(), 3) + "\n");
    // g.drawString("Area:" + returnArea() + ";" + "Peri:" + returnPeri(), x, y);

I really don't want to look through all that code to see how you are doing your painting, I do have some pointers though:
1) Your drawPanel extends JPanel, meaning you should override the paintComponent(Graphics g) and NOT the paint(Graphics g) method. Swing components use paint() to call paintBorder, paintChildren, and paintComponent. If you override the paint then try to use a border or add buttons to the panel then you won't get the correct results. paint() is used for AWT components.
2) To try to answer your question, your paintComponent method should contain ALL YOUR DRAWING. You should not call getGraphics then use that to draw anything on your panel. One thing you can do is create an image the size of the panel, draw on the image wherever you want, then use paintComponent to draw that image.
[You can create an image using component's createImage (width, height) command]
[You would draw on the image buy using the Image getGraphics() method, then drawing on it however you do on any other graphics object]
[You would draw the image to the panel in the paintComponent method using the Graphics g parameter and doing a g.drawImage(...)]

Similar Messages

  • Newb here, need help! just check out what i have, make reccomendations please!!

    Windows xp 32-bit,
    4 gigs ram,
    dual sli 7200 nvidia cards,
    60gb internal hardrive, 1.5 terabyte external hard drive (brand new, very empty)
    Recorded 24p and 60i on a Canon XL-2 (miniDV)
    IEEE 1394 firewire connected from pc to uploading device. Unfortunatly i borrowed the xl-2 from school, and am trying to capture from a panasonic pv-gs36 i borrowed from a friend (only friend with a device that records with a miniDV cam).
    I have been working fine on premier, very smooth when i import files, but when i tried to capture, as soon as i hit capture it freezes my whole set up, i have to manually restart my pc. I need to capture and export these clips to quicktime so i can edit in final cut at school (as requested by my instructer) the project is due in exactly one week, and the edit bays are always full which is why i opted for capturing at home with premier cs4.
    Im in panic mode now though, cause of this freeze issue. I'll have access to an xl-2 for the remainder of the week if the panasonic cam is the problem, but if not, please let me know!! ill go out and buy a new graphics card if that really is the issue... but i cant afford the quadro....which is why i opted for adobe premier instead of avid.
    im thinking its freezing because i recorded on an xl-2 and am trying to capture on this panasonic cam... could this be why?
    i installed premier on the 60 gig internal hard drive...should i uninstall it and install it on the external 1.5 tb one? should my settings be a certain way when i start a new project? Please help out a stressed out student during finals week! I will be super grateful to any info anyone can provide. thanks again for all your time and effort =)

    I'm unsure if the external drive is eSATA. I did buy it a few days ago 1.5 tb for 129.99 at fry's...good deal. What are the advantages of having an eSATA? The drive i have is a seagate Free agent-Desk external drive, model number st315005fda2e1-rk
    <img src="http://www.thinkdigit.com/uploads/seagate_freeagent_desk.jpg">
    Again, total noob here...
    the external is USB 2.0, and yea, i only have 1 firewire port. Also, something i failed to  mention is...I actually run my computer off my 42 inch samsung hd tv (720p native). When i was installing the whole production suite it asked me to get a moniter with higher resolution, but the click top continue installing anyway button was there so i went for it. Could this be the problem?
    I'm fairly sure i recorded in standard play with 2 channel audio with the canon, so im starting suspect it is this dinky panasonic dv cam thats causing me all this headache.
    also....please dont insult me too much...but:
    whats a panny?
    Whats scenalyzer?
    annnnd finally, no input on the cards? I was thinking that was going to be the problem for sure. The cards are great for gaming but im not really sure what kind of cards are (at least decent) for editing and capturing.
    I appreciate your help, ive been looking at the boards all night and this morning, i noticed you are kind of a superstar around here Millaard, so i really appreciate the effort =)

  • Im trying to make a payment but it says the CC is not aprovved for Salvadorean Itunes store, and when i try to change my country dont let me cause i need to make that payment .. what should i do?

    im trying to make a payment but it says the CC is not aprovved for Salvadorean Itunes store, and when i try to change my country dont let me cause i need to make that payment .. what should i do?

    Supply a payment method which is valid in Salvador, or ask the iTunes Store staff for assistance.
    (113417)

  • I need a duplicate of the chit, what i have to do ?

    I need a duplicate of the chit, what i have to do ?  I do not know how to contact the store, because i am from Brazil and the store that i bought the iphone is in Miami at The falls malls. I need halp because my phone don't turn on

    What "chit" are you referring to? Do you mean the receipt for the purchase of your iPhone? If so, you will have to call the store from which you purchased the iPhone and ask if they can send you another copy of the receipt. You can find their phone number here:
    http://www.apple.com/retail/thefalls/
    Note that you will not be able to get support for a US-sold iPhone in Brazil. The warranty will be valid only in the US. So if the iPhone has a hardware problem and needs replacement, you will have to send the iPhone to a friend or relative in the US who can take or send it to Apple and then return the iPhone to you.
    Regards.

  • How do I keep my downloaded content on my iPhone 4 when connectng to iTunes? It says erase and sync. I want to keep what I have downloaded, and manually manage contend on iTunes. Can I do this without it saying erase and sync?

    How do I keep my downloaded content on my iPhone 4 when connectng to iTunes? It says erase and sync. I want to keep what I have downloaded, and manually manage contend on iTunes. Can I do this without it saying erase and sync?

    No backup? Never a good idea to not maintain a backup of your important data. If you do not have a backup, follow these instructions:
    By design, the iphone will sync itunes content with one computer at a time. Any attempt to sync such content with a second computer will result in ALL itunes content being first erased from your phone & then replaced with the content from the second computer. This is a design feature and cannot be overridden. Because you formatted your computer, your phone, will see your computer as a "new" computer. The itunes content sync is one way: computer to phone. If you have photos that were synced to your phone or music ripped on your own that were not backed up, you will first have to extract them from your phone using third party software, before you do anything else:
    http://www.wideanglesoftware.com/touchcopy/index.php
    Once you've done that, do the following in the order specified:
    1. Disable auto sync when an ipod/iphone is connected under preferences in itunes(under the edit menu).
    2. Make sure you have one contact & one event in whatever supported applications you use for contact & calendar syncing. These entries can be fake, doesn't matter, the important point is that these programs not be empty.
    3. Connect your phone, itunes running, do not sync at this point.
    4. Store>Authorize this computer.
    5. File>Transfer Purchases(To make sure all purchased content on your phone will be in your itunes library).
    6. Right click in the device pane & select reset warnings.
    7. Right click again and select backup.
    8. Right click again & select restore from backup, select the backup you just made. When prompted to create another backup, decline.
    9. This MUST be followed by a sync to restore your itunes content, which you select from the various tabs, You'll get a popup regarding your contacts & calendars asking to merge or replace, select merge.
    That's as good as it gets without a backup of your itunes library and other important data..

  • What do i do if i need to make a new apple account but have gift card money on the one im using now?

    i have to make a new apple id because i cant remember the security questions to my old one and cant use the money i have on it. but i dont want that money to go to waste. is there any way to transfer that money to the new account i want to create?

    You can't transfer a balance from one account to another account, nor use it to gift content to another account. Have you tried getting the questions on your existing account reset ?
    If you have a rescue email address (which is not the same thing as an alternate email address) set up on your account then go to https://appleid.apple.com/ and click 'Manage your Apple ID' on the right-hand side of that page and log into your account. Then click on 'Password and Security' on the left-hand side of that page and on the right-hand side you should see an option to send security question reset info to your rescue email address.
    If you don't have a rescue email address (you won't be able to add one until you can answer 2 of your questions) then you won't get the reset option - you will need to contact iTunes Support or Apple to get them reset.
    e.g. you can try contacting iTunes Support : http://www.apple.com/support/itunes/contact/ - click on Contact iTunes Store Support on the right-hand side of the page, then Account Management , and then 'Forgotten Apple ID security questions'
    or try ringing Apple in your country and ask to talk to the Accounts Security Team : http://support.apple.com/kb/HE57
    When they've been reset (and if you don't already have a rescue email address) you can then use the steps half-way down this page to add a rescue email address for potential future use : http://support.apple.com/kb/HT5312 . Or you could change to 2-step verification : http://support.apple.com/kb/HT5570

  • Need Help: old comp. crashed, how do I keep what I have?

    Its hard for me to say. But I'll give it a shot. I synced my iphone with my itunes on an old computer. That old computer crashed suddenly. Now, I have a new computer and I'm putting together a new library. So this is my dilemma, I bought several ringtones, music, etc. and wish to add it to my new library. I dont want to lose what Ive already bought. But, if I choose to sync, itunes tells me that they will completely wipe out my iphone and add what my new library has. How do I keep everything? What can I do?

    iTunes includes an option to transfer content that was purchased from the iTunes Store from an iPod or iPhone.
    Without syncing, at the iTunes menu bar go to File and select Transfer Purchases From - the name of your iPhone. This is for content that is available on your iPhone that was purchased from the iTunes Store only.
    Other than that is one of the reasons why maintaining a backup of all your important data including your iTunes library stored on an external drive or some other media used for backup purposes only is so important.

  • HT1338 why can't i open itunes, it keeps telling me i need mac os x  & that is what i have

    can anyone help me i haven't been able to open my itunes at all

    What is the iTunes version you are having, and what is the MacOS X version?
    Both versions need to match - iTunes 11.1 needs MacOS X version 10.6.8 or later. Is your profle signature Mac OS X (10.4.10) correct?
    - Léonie

  • My pc harddrive crashed.  is there a way to download my ipod to the computer to keep what i have?

    My external harddrive crashed and i wondered if there is a way to download my ipod and save both purchased and music from my CD's.

    It has always been very basic to always maintain a backup copy.  Use your backup copy to put everything back.
    If for some reason you failed to maintain a backup, then you can transfer itunes purchases:  File>Transfer Purchases.
    The ipod is not a backup device.

  • Display FLV file on web page - what code is needed

    In Premiere Elements 7 I used the share option to make a .FLV file to place on a web page. What code is needed to display this file? What other steps are needed to have the file play on a web page? I get the ides that I need to embed a played on my web page, how do I do that? I find no help in the premiere elements help file.
    thanks
    Al

    Maybe you should ask in the Premiere Elements forum http://forums.adobe.com/community/premiere/premiere_elements ?

  • I need to make a task with less as3 code and more timeline structure and event dispatcher !

    I went to an interview in a big company. I had to make a  task in which there is a wall with 3 lines and 5 columns filled with bombs.When you click on a bomb the bomb changes its scale, a robot enters, goes under the bomb and takes it, then goes to a smaller wall, makes the bomb smaller and place it at the same place it had been in the previous wall.I made the task with tween througout as3 code.The interviewer told me it was good but i need to make it with the less code possible and with more complex timeline structure and to use event dispatcher.What is the best way to do this ?

    The immediate thing that comes to mind is they might want to see that you can balance work between design teams and development teams.
    To do that, the robots movements (pick up bomb, bomb grows/shrinks, arms/treads/legs moving, sequences of 'doing things') can be timeline based so animators can work on those separate from code.
    Developers would be working on the logic of keeping score, moving the robot around to the correct spot with path detection, collision detection, etc.
    It's very similar to thinking in simple factories (which Flash is good at being automatically with timelines), and a bit of MVC (or just VC in some cases).
    Big companies have lots of different types of employees so you'll probably be very specific in your role so you're efficient.

  • I successfully uploaded a book using iBook Author.  I need to make a correction. I keep getting this error message: ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets: assets/media/chick02.m4p" at Book (MZItmspBookPackage)

    I appreciate any help or assistance.  I have been trying to update one of my books for for the past few days with no success.  I really just need to change two letters. But since I was updating I thought I would make a couple more improvements.  I clicked disable portrait and made my pictures a little bigger to fit the whole page.  But now I keep getting this error for multiple sound effects throughout the book. ERROR ITMS-9000: "Files of type audio/x-m4a are not allowed outside of widgets: assets/media/chick02.m4p" at Book (MZItmspBookPackage).  I did not change the audio.  The audio files are placed in widgets.  I had no problem the first time it uploaded. I have recreated my whole book from scratch and it still does not work. Does anyone have a suggestion? Thank you for your attention to my question.

    Florida author wrote:
    Could it matter that I am dragging my audio files onto my document?  They appear to be in a widget once dragged in. I use the widget insector to make changes. However,  I did not go to the top of the screen and click widget and then insert my audio file.
    I don't believe that would make any difference. Drag-and-drop is just a UI shortcut for using the menu items.
    Also some of the audio file were used in previous books.  Would that cause an error?
    No. Each book is a stand-alone entity. It doesn't matter if the same audio file appears in another book.
    From what people have reported here, it looks like there is a bug in the submission system. Other than trying the suggestions posted in the linked-to thread, I don't think there is anything you can do to fix it.
    I would submit a bug report to Apple though. Quite a lot of people seem to be affected by this problem, and if they hear about the same problem from lots of different sources, that will (presumably) elevate the importance of fixing it.
    Michi.

  • TS3694 My iPad says it has to restore to update, but it will not.  It is caught in a cycle of not being able to restore but needed to restore.  I keep getting error code 3014 but I can not figure out what this means!

    My iPad says it has to restore to update, but it will not.  It is caught in a cycle of not being able to restore but needed to restore.  I keep getting error code 3014 but I can not figure out what this means! nor can I do anything about it!  So Frutrated!

    Also...
    See Here  >  http://support.apple.com/kb/HT1808
    You may need to try this More than Once...
    But... if the Device has been Modified... this will Not necessarily work.

  • I need to play a song on a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through the whole presentation ? Thanks.

    I need to play a song in a row in a Keynote presentation, how do I do this ? I use to drag and drop the mp3 in Keynote but it stops playing when the slide move to the other one... how can I make the song keep playing through out the presentation ?
    Thanks.

    Drag the file into the audio window in the Document inspector...

  • Hi, when I download Adobe Creative Cloud I open it and then a message appears saying "...Error Code 204", what I have did, or what do I need to do to make it install properly !?

    Hi, when I download Adobe Creative Cloud I open it and then a message appears saying "...Error Code 204", what I have did, or what do I need to do to make it install properly !?

    Walegena37827201 please see Error downloading and installing Creative Cloud application for information on how to resolve Error 204.  If you have any questions regarding the steps listed in the document you are welcome to update this discussion.

Maybe you are looking for