Oh boy, nothing so far has worked, who can help on this one

Here is the deal...
Apple logo would not dissapear from the screen of my 4 year old ipod (dockstation version, 15GB),
I reformatted (FAT32 as per this forum) and restored my ipod in itunes. When this was done (multiple times now) I was asked to connect my ipod to the power supply.
Doing that right now but the 'Disk Mode' and 'OK to disconnect' screen simply continue to show on the display and the battery icon is charging continously.
This has been for about 2 hours now..
Oh yeah, never had a problem before and I am a mild/medium user..
Any suggestions appreciated as I do not have the money to buy a new Ipod or go to the Apple fixers..
  Windows XP  

thanks for your comments but I have tried all of that.
Apple logo appears and I can even get fase 1 of the restore program in itunes to run.
After part1 of the restore program I am asked to unplug the ipod from itunes and hook it up to power. Then supposedly fase 2 or restoring is tarting but unfortunately nothing happens..
I just listened closely and the ipod makes ticking noises when the apple logo is showing..
Is that bad?

Similar Messages

  • I have a report from WhatisHang which (in theory) tells my why my firefox constantly hangs up. But I need someone who can help figure this out.

    I hope this section will work, i couldnt find a place for Hang ups, and this problem doesnt usually cause a full crash, which is why it was hard to figure it out.
    I finally used the program WhatisHang to try to get an idea of what is causing the seemingly random hanging, but have been unable to find anyone who can help me with it.
    I have posted the Troubleshooting Information, though i dont think it would be of much help.
    I have the report available but dont know where i can post it.

    I must admit I seem possibly to be suffering from hangs also, although as I am often not in a hurry when using firefox on this machine it has little impact. I am using a legacy computer and tend to blame this on the computer or maybe background tasks such as from security software or indexing.
    '''Do you still get the hangs in safe mode with all''' (or maybe all but one essential plugin if you think a plugin is involved in the hangs) '''plugins disabled ?
    Have you tried to rule out
    * background tasks are the problem, <br/>(at least monitor what else is running using Task Manager or sysinternals process explorer)
    * [[is my firefox problem a result of malware|malware]]. <br/>( consider full system scans with multiple tools/software)
    * any other interacting programs or plugins <br/>(some may not be listed in firefox, you may need to check / uninstall from the OS {Windows Control Panel})
    **it may also be an idea to check hangs still occur when WhatIsHangs is not in use.
    * have you tried logging the cc & gc times in the error console, <br/>(if for instance you see times in 1000s of milliseconds appearing you may have then identified one reason for firefox being unresponsive, even if the cause is not yet identified. - a symptom the memshrink firefox developers will no doubt be eager to investigate)
    * if you can get hangs in safe mode, on at least the Aurora channel releases I suggest you immediately go ahead and file a bug yourself. (I will try to find time if not today then next weekend to look more closely at my own system to see if it is showing hangs in firefox use)
    ** ideally try with all default preferences
    ** As you have changed preferences, I suggest you include as a attachment in the bug your list of user modified preferences (use ''about:support'' or Troubleshooting Information option)
    ** State what security software is in use, it could be an important factor.<br/> (I imagine the majority of users have security software, or if not have security vulnerabilities and potentially an undetected malware problem)
    I will try to find and download a copy of WhatIsHang, see if it works on my system and what results it then shows.
    I realise I have not said anything terribly helpful I solving your problem, but I suspect you are not alone in having hangs, if you are able to spare the time to investigate and report I am sure it will help others.
    Firefox has had a few problems recently that would have been solved sooner if they were investigated when first reported, but unfortunatly an advantage of firefox is how easy it is to customise, but the downside is differentiating between a firefox fault and customisation problems.

  • Has somebody who can help me please  with JavaMail and JSP ?

    I am new in JSP
    And I would wish to create a JSP to send an email with attachment.
    For the compilation of my JavaBeans I use JBuilder 9 Personnel version
    Then I have j2sdk1.4.0
    In C:\j2sdk1.4.0\
    For the installation of the API javamail
    it is necessary to download two jar files Mail.jar and activation .jar
    http://java.sun.com/products/javamail/javadocs/index.html
    it is done!
    then, I copied my two files mail.jar and activation.jar in the directory
    C:\j2sdk1.4.0\lib
    And in
    C:\jBuilder 9 \jdk1.4\lib
    I have family Windows XP
    Then from DOS in the the directory c:\ Documents and Settings\MEBARKIA
    I have to add this line:
    SET CLASSPATH=c:\j2sdk1.4.0\lib\mail.jar;c:\j2sdk1.4.0\lib\activation.jar;
    Finally,
    for a test, I downloaded an example of Javabean from : http://java.sun.com/developer/qow/archive/74/
    the source code is:
    import java.beans.*;
    import java.util.*;
    import java.io.*;
    import javax.mail.*;
    import javax.mail.internet.*;
    import javax.activation.*;
    public class XYZMail extends Object
    implements java.io.Serializable {
    private ArrayList mailTo
    = new ArrayList();
    private String mailFrom ;
    private String mailSubject ;
    private String mailMessage ;
    private String mailHost;
    private ArrayList mailAttachments = new ArrayList();
    private Properties props;
    private javax.mail.Session sess;
    private InternetAddress[] address
    = { new InternetAddress() };
    public XYZMail() {
    props = new Properties( ) ;
    props = System.getProperties();
    public long sendMail () throws MessagingException {
    props.put("mail.smtp.host", getMailHost() );
    sess = javax.mail.Session.getDefaultInstance(props, null);
    sess.setDebug( Boolean.valueOf( "false" ).booleanValue() );
    int i = 0;
    MimeMessage msg = new MimeMessage(sess);
    msg.setFrom(new InternetAddress( getMailFrom() ));
    for ( Iterator itr = mailTo.iterator( ); itr.hasNext(); ) {
    address[i] = new InternetAddress((String) itr.next()) ;
    msg.setRecipients(Message.RecipientType.TO, address);
    msg.setSubject( getMailSubject() );
    MimeBodyPart mbp1 = new MimeBodyPart();
    mbp1.setText( getMailMessage() );
    Multipart mp = new MimeMultipart();
    mp.addBodyPart(mbp1);
    if ( ! mailAttachments.isEmpty() ) {
    MimeBodyPart mbp2 = new MimeBodyPart();
    FileDataSource fds=new FileDataSource( (String)
    mailAttachments.get(0) );
    mbp2.setDataHandler(new DataHandler(fds));
    mbp2.setFileName( (String) mailAttachments.get(0) );
    mp.addBodyPart(mbp2);
    msg.setContent(mp);
    msg.setSentDate(new Date());
    Transport.send(msg);
    return 1;
    public ArrayList getMailTo ( ) {
    return mailTo;
    public String getMailFrom ( ) {
    return mailFrom;
    public String getMailSubject ( ) {
    return mailSubject;
    public String getMailMessage ( ) {
    return mailMessage;
    public ArrayList getMailAttachments ( ) {
    return mailAttachments;
    public String getMailHost ( ) {
    return mailHost;
    public void setMailHost ( String host ) {
    mailHost = host;
    public void setMailAttachments ( ArrayList attachments ) {
    mailAttachments = attachments ;
    public void setMailMessage ( String msg ) {
    mailMessage = msg ;
    public void setMailSubject ( String subject ) {
    mailSubject = subject ;
    public void setMailFrom ( String from ) {
    mailFrom = from;
    public void setMailTo ( ArrayList to ) {
    mailTo = to;
    I have all these error messages:
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\mail en ligne 6, colonne 1
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\mail\internet en ligne 8, colonne 1
    "XYZMail.java" : Erreur No. 704 : acc?s impossible au r?pertoire javax\activation en ligne 9, colonne 1
    "XYZMail.java" : Erreur No. 302 : classe javax.mail.Session non accessible ; aucune classe ni source trouv? pour javax.mail.Session en ligne 22, colonne 20
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 23, colonne 9
    "XYZMail.java" : Erreur No. 300 : classe MessagingException introuvable dans classe gestionbadges.XYZMail en ligne 31, colonne 32
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 24, colonne 9
    "XYZMail.java" : Erreur No. 302 : classe javax.mail.Session non accessible ; aucune classe ni source trouv? pour javax.mail.Session en ligne 34, colonne 19
    "XYZMail.java" : Erreur No. 300 : classe MimeMessage introuvable dans classe gestionbadges.XYZMail en ligne 38, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeMessage introuvable dans classe gestionbadges.XYZMail en ligne 38, colonne 23
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 40, colonne 17
    "XYZMail.java" : Erreur No. 300 : classe InternetAddress introuvable dans classe gestionbadges.XYZMail en ligne 42, colonne 18
    "XYZMail.java" : Erreur No. 302 : classe Message.RecipientType non accessible ; aucune classe ni source trouv? pour Message.RecipientType en ligne 46, colonne 27
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 50, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 50, colonne 25
    "XYZMail.java" : Erreur No. 300 : classe Multipart introuvable dans classe gestionbadges.XYZMail en ligne 53, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeMultipart introuvable dans classe gestionbadges.XYZMail en ligne 53, colonne 20
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 57, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe MimeBodyPart introuvable dans classe gestionbadges.XYZMail en ligne 57, colonne 25
    "XYZMail.java" : Erreur No. 300 : classe FileDataSource introuvable dans classe gestionbadges.XYZMail en ligne 59, colonne 1
    "XYZMail.java" : Erreur No. 300 : classe FileDataSource introuvable dans classe gestionbadges.XYZMail en ligne 59, colonne 24
    "XYZMail.java" : Erreur No. 300 : classe DataHandler introuvable dans classe gestionbadges.XYZMail en ligne 61, colonne 25
    "XYZMail.java" : Erreur No. 300 : variable Transport introuvable dans classe gestionbadges.XYZMail en ligne 70, colonne 1
    Thanks for your's help!!!!!

    Thank you very much for your answer wew64.
    Yes, I have a local server TOMCAT
    But the problem
    It is on the compilation I do not arrive has to compile my javabean XYZMail java
    With jbuilder 4
    However I have to configure my CLASSPATH on the level of DOS
    And on the variables of enivrements of Windows XP.
    I copied the two files mail.jar and activation.jar everywhere
    In
    C:\j2sdk1.4.0\lib
    And in
    C:\j2sdk1.4.0\jre
    C:\j2sdk1.4.0\jre\lib
    Even case with
    c:\jBuider 4
    thanks.

  • I can't get ScrollPane.invalidate() to work.  Need help on this one.

    I have a dynamically created scrollpane who's content comes
    from a movieclip in the library.
    When I add this content from the library, I can't for the
    life of me get the scrollpane to correctly render the scrollbars.
    This is the code that I have. The movieclip in the library is
    linked as mc1 (width 100 height 46)
    import fl.containers.ScrollPane;
    import fl.controls.ScrollPolicy;
    import fl.controls.DataGrid;
    import fl.data.DataProvider;
    var aSp:ScrollPane = new ScrollPane();
    aSp.verticalScrollPolicy = "on";
    aSp.horizontalScrollPolicy = "on";
    var aBox:MovieClip = new MovieClip();
    drawBox(aBox);
    aSp.setSize(300, 300);
    aSp.source = aBox;
    addChild(aSp);
    function drawBox(box:MovieClip):void {
    var myMc1:mc1 = new mc1();
    myMc1.y = 50;
    myMc1.x = 50;
    box.addChild(myMc1);
    var mymc2:mc1 = new mc1();
    mymc2.x = 200;
    mymc2.y = 50;
    box.addChild(mymc2);
    }

    I figured it out. Nevermind.

  • Who can help solve this XML/Servlet mystery?

    Hi,
    I'm developing a servlet that accepts an HTTP request, contacts a database, processes the request and return an XML document back to the browser. The XML document returned is dependent on which selection a user makes.
    The problem is that on first request, say user selects "choice one", the correct XML document is returned. However, when the browser's back button is used to go back and make the same choice as previous(ie "choice one"), Explorer 4.5 displays an empty page while netscape 4.5 return a document contains no data error.
    I used oracle xmlclassgenerator to generate the classes that create the XML document to be returned. The problem certainly lies in the method of my servlet that uses these classes to generate the XML document because when I replace the whole method with println statement every thing works fine(but of course without the XML document).
    The content of the method is as follows.
    ACCOUNT acc = new ACCOUNT(id);
    //Create a child and add child to root node
    NUM_OF_RESIDENTS nr = new NUM_OF_RESIDENTS(num);
    acc.addNode(nr);
    //Create another child and add to root node
    FIXED_COST fc = new FIXED_COST();
    ELECTRICITY el = new ELECTRICITY(elec);
    GAS g = new GAS(gas);
    WASH_MACHINE wm = new WASH_MACHINE(wash);
    WATER wat = new WATER(water);
    OTHER oth = new OTHER(other);
    fc.addNode(el);
    fc.addNode(g);
    fc.addNode(wm);
    fc.addNode(wat);
    fc.addNode(oth);
    //finally add to root node
    acc.addNode(fc);
    //Create another child
    TELEPHONE tl = new TELEPHONE();
    SUBSCRIPTION sub = new SUBSCRIPTION(tel);
    COST_PER_TICK cpt = new COST_PER_TICK(tick);
    tl.addNode(sub);
    tl.addNode(cpt);
    acc.addNode(tl);
    //Create another child
    // PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    for(int i=0; i<previous_details.size(); i++){
    //Create another child
    PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    PreviousDetails pd = (PreviousDetails)previous_details.elementAt(i);
    String name = pd.getName();
    String credit = pd.getCredit();
    String debit = pd.getDebit();
    NAME n = new NAME(name);
    LAST_CREDIT lc = new LAST_CREDIT(credit);
    LAST_DEBIT ld = new LAST_DEBIT(debit);
    pacc.addNode(n);
    pacc.addNode(lc);
    pacc.addNode(ld);
    acc.addNode(pacc);
    for(int i=0; i<acc_dates.size(); i++){
    String str = (String)acc_dates.elementAt(i);
    ACCOUNT_DATE ad = new ACCOUNT_DATE(str);
    acc.addNode(ad);
    acc.validateContent();
    ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
    acc.print(out1);
    res.setContentType("text/plain");
    ServletOutputStream os = res.getOutputStream();
    PrintWriter out = new PrintWriter(os);
    out.println(out1.toString());
    out.close();
    catch(Exception e){}
    Am I doing somthing wrong here?
    Thanks.
    null

    <BLOCKQUOTE><font size="1" face="Verdana, Arial">quote:</font><HR>Originally posted by Steven Muench ([email protected]):
    If you paste your code that's in the servlet into a file with a static main() method, and if you wrap the code with a for loop in Java that makes it execute 3 times in a row, does it work properly each of the the 3 times in this scenario?<HR></BLOCKQUOTE>
    I have done as you requested. For your convenience I have pasted both the code and its output below.
    import oracle.xml.classgen.*;
    import oracle.xml.parser.*;
    import java.io.*;
    import java.util.*;
    import java.sql.*;
    import java.math.*;
    public class CreateTest{
    static String id = "10212";
    public static void main (String args[]){
    for(int i=0; i<3; i++){
    System.out.println("Request started!");
    testLoop();
    static void testLoop(){
    try{
    System.out.println("Start DB contact");
    DriverManager.registerDriver(new oracle.jdbc.driver.OracleDriver());
    Connection conn =
    DriverManager.getConnection ("jdbc:oracle:thin:@my_ip:sid","username", "passwd");
    ResultSet rset;
    Vector acc_dates = new Vector();
    Vector previous_details = new Vector();
    String elec = null;
    String gas = null;
    String wash = null;
    String water = null;
    String other = null;
    String tel = null;
    String tick = null;
    String num = null;
    Statement stmt = conn.createStatement();
    rset = stmt.executeQuery("select NUM_OF_RESIDENTS from MEMBER WHERE ID="+id);
    while(rset.next()){
    num = String.valueOf(rset.getInt(1));
    rset = stmt.executeQuery("select ELECTRICITY,GAS,WASH_MACHINE,WATER,OTHER from FIXED_COST where ID="+id);
    while(rset.next()){
    elec = String.valueOf(rset.getFloat(1));
    gas = String.valueOf(rset.getFloat(2));
    wash = String.valueOf(rset.getFloat(3));
    water = String.valueOf(rset.getFloat(4));
    other = String.valueOf(rset.getFloat(5));
    rset = stmt.executeQuery("select SUBSCRIPTION,COST_PER_TICK from TELEPHONE WHERE id="+id);
    while(rset.next()){
    tel = String.valueOf(rset.getFloat(1));
    tick = String.valueOf(rset.getFloat(2));
    rset = stmt.executeQuery("select NICK_NAME, CREDIT, DEBIT from PREVIOUS_ACCOUNT WHERE LAST_ACCOUNT='yes' AND id="+id);
    while(rset.next()){
    String name = rset.getString(1);
    String credit = String.valueOf(rset.getFloat(2));
    String debit = String.valueOf(rset.getFloat(3));
    PreviousDetails pd = new PreviousDetails(name,credit,debit);
    previous_details.addElement(pd);
    rset = stmt.executeQuery("select ACCOUNT_DATE from ACCOUNT_RESULT WHERE ID="+id);
    while(rset.next()){
    acc_dates.addElement(rset.getString(1));
    rset.close();
    stmt.close();
    conn.close();
    System.out.println("End DB contact");
    generateXMLDocument(num,elec,gas,wash,water,other,tel,tick,previous_details,acc_dates);
    catch(Exception e){e.printStackTrace();}
    public static void generateXMLDocument(String num, String elec, String gas, String wash, String water, String other, String tel, String tick, Vector previous_details, Vector acc_dates){
    try{
    //Create the document root node
    ACCOUNT acc = new ACCOUNT(id);
    //Create a child and add child to root node
    NUM_OF_RESIDENTS nr = new NUM_OF_RESIDENTS(num);
    acc.addNode(nr);
    //Create another child and add to root node
    FIXED_COST fc = new FIXED_COST();
    ELECTRICITY el = new ELECTRICITY(elec);
    GAS g = new GAS(gas);
    WASH_MACHINE wm = new WASH_MACHINE(wash);
    WATER wat = new WATER(water);
    OTHER oth = new OTHER(other);
    fc.addNode(el);
    fc.addNode(g);
    fc.addNode(wm);
    fc.addNode(wat);
    fc.addNode(oth);
    //finally add to root node
    acc.addNode(fc);
    //Create another child
    TELEPHONE tl = new TELEPHONE();
    SUBSCRIPTION sub = new SUBSCRIPTION(tel);
    COST_PER_TICK cpt = new COST_PER_TICK(tick);
    tl.addNode(sub);
    tl.addNode(cpt);
    acc.addNode(tl);
    //Create another child
    // PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    for(int i=0; i<previous_details.size(); i++){
    //Create another child
    PREVIOUS_ACCOUNT pacc = new PREVIOUS_ACCOUNT();
    PreviousDetails pd = (Previou sDetails)previous_details.elementAt(i);
    String name = pd.getName();
    String credit = pd.getCredit();
    String debit = pd.getDebit();
    NAME n = new NAME(name);
    LAST_CREDIT lc = new LAST_CREDIT(credit);
    LAST_DEBIT ld = new LAST_DEBIT(debit);
    pacc.addNode(n);
    pacc.addNode(lc);
    pacc.addNode(ld);
    acc.addNode(pacc);
    for(int i=0; i<acc_dates.size(); i++){
    String str = (String)acc_dates.elementAt(i);
    ACCOUNT_DATE ad = new ACCOUNT_DATE(str);
    acc.addNode(ad);
    acc.validateContent();
    ByteArrayOutputStream out1 = new ByteArrayOutputStream(1024);
    acc.print(out1);
    System.out.println("The result is:");
    System.out.println(out1.toString());
    catch(Exception e){}
    The output is:
    Request started!
    Start DB contact
    End DB contact
    The result is:
    <!DOCTYPE ACCOUNT SYSTEM "file:/home/httpd/html/tydex/dtd/ACCOUNT_dtd.txt">
    <ACCOUNT ID="10212">
    <NUM_OF_RESIDENTS>3</NUM_OF_RESIDENTS>
    <FIXED_COST>
    <ELECTRICITY>0.0</ELECTRICITY>
    <GAS>0.0</GAS>
    <WASH_MACHINE>0.0</WASH_MACHINE>
    <WATER>0.0</WATER>
    <OTHER>0.0</OTHER>
    </FIXED_COST>
    <TELEPHONE>
    <SUBSCRIPTION>0.0</SUBSCRIPTION>
    <COST_PER_TICK>0.0</COST_PER_TICK>
    </TELEPHONE>
    <PREVIOUS_ACCOUNT>
    <NAME>dsffd</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    <PREVIOUS_ACCOUNT>
    <NAME>dsfd</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    <PREVIOUS_ACCOUNT>
    <NAME>dsfdfs</NAME>
    <LAST_CREDIT>0.0</LAST_CREDIT>
    <LAST_DEBIT>0.0</LAST_DEBIT>
    </PREVIOUS_ACCOUNT>
    </ACCOUNT>
    Request started!
    Start DB contact
    End DB contact
    Request started!
    Start DB contact
    End DB contact
    Thanks.
    null

  • Let's see who can help with this applet

    Hello. I am new in Java and confused with this assignment.
    I have to write an applet for a store that sells 8 products
    whose retails prices are Product 1 - $2.98, Product 2 - $4.50, Product 3 - $9.98, Product 4 - $ 4.49, Product 5 - $ 6.87,
    Product 6 � $ 12.37, Product 7 - $ 14.30 and Product 8 - $ 11.40.
    The applet: 1) Has an intro message to a store named for you, where you describe what products they have, 2) Reads a series of pairs of numbers: Product Number and Quantity Number.
    Use a switch structure to determine the retail prices for each product. Use "TextField" to obtain the product number from the user. Use a �sentinel controlled� loop to determine when the program should stop looping to display the final result (I used number -1 as sentinel). Display the total value of all products sold.
    This is the program I wrote:
    //java core packages
    import java.awt.*;
    import java.awt.event.*;
    import java.text.NumberFormat;
    import java.util.Locale;
    // Java extension packages
    import javax.swing.*;
    public class MYSHOP extends JApplet implements ActionListener {
    // GUI componentes
    JLabel productNumLabel, quantityNumLabel;
    JTextField productNumField, quantityNumField;
    // variables
    double subtotal = 0;
    double total = 0;
    public void init()
    // display intro message
    JOptionPane.showMessageDialog( null, "Welcome toablabla.\nWe
    offer you blablabla\nClick OK to start shoping",
    "Company information", JOptionPane.PLAIN_MESSAGE );
    // obtain content pane and set its layout to FlowLayout
    Container container = getContentPane();
    container.setLayout( new FlowLayout() );
    // create productNumLabel, productNumField and attach them to
    // content pane
    productNumLabel = new JLabel( "Enter Product Number (-1 to
    quit):" );
    productNumField = new JTextField( 4 );
    productNumField.addActionListener( this );
    container.add( productNumLabel );
    container.add( productNumField );
    // create productNumLabel, productNumField and attach them to
    // content pane
    quantityNumLabel = new JLabel("Enter Quantity:");
    quantityNumField = new JTextField( 4 );
    quantityNumField.addActionListener( this );
    container.add( quantityNumLabel );
    container.add( quantityNumField );
    } // end method init
    public void actionPerformed( ActionEvent actionEvent )
    int index = Integer.parseInt( productNumField.getText() );
    int ammount = 0;
    while ( index != -1 )
    NumberFormat moneyFormat =
    NumberFormat.getCurrencyInstance( Locale.US );
    if( actionEvent == quantityNumField.getText() )
    ammount = Integer.parseInt( quantityNumField.getText() );
    switch (index)
    case 1:
    subtotal += ( 2.98 * ammount );
    break;
    case 2:
    subtotal += ( 4.5 * ammount );
    break;
    case 3:
    subtotal += ( 9.98 * ammount );
    break;
    case 4:
    subtotal += ( 4.49 * ammount );
    break;
    case 5:
    subtotal += ( 6.87 * ammount );
    break;
    case 6:
    subtotal += ( 12.37 * ammount );
    break;
    case 7:
    subtotal += ( 14.30 * ammount );
    break;
    case 8:
    subtotal += ( 11.40 * ammount );
    break;
    case -1:showStatus( "The Total is: " + subtotal );
    System.exit(0);
    break;
    default:
    JOptionPane.showMessageDialog( null,"There is no
    such product", "ERROR",
    JOptionPane.ERROR_MESSAGE);
    } // end switch structure
    } // end while structure
    productNumField.setText(""); // clear productNum field
    quantityNumField.setText(""); // clear quantityNum field
    } // end method actionPerformed
    } // end class MYSHOP
    When I try to compile it, the error I get is "incomparable types: java.awt.event.ActionEvent and java.lang.String", in the line:
    if( actionEvent == quantityNumField.getText() )
    The error pointer points to "==" in that line
    What should I write in that line instead?
    Also, if someone realizes that some part of the code is in the wrong place, please tell me.
    Thanks in advance.

    Instead of
    if( actionEvent == quantityNumField.getText() ) I think you want
    if( actionEvent.getSource() == quantityNumField )HTH,
    Radish21

  • It just doesn't work and help is needed, hence why I'm on a Forum? Brownie points for whoever can help on this one...

    So. As always, it's about iTunes - as Apple is the most inconvenient corporation ever founded. Anyway! I've had this problem for about 6 months and haven't bothered to ask anyone. I've restored the computer numerous times and tried to fix the issue with help from other nonsensical forums. The problem is that 'apple mobile device service' is eating up a large amount of CPU, and therefore tends to make the computer run like a log. I have uninstalled it before but then iTunes won't recognize my iPod - funnily enough. As well as this, iTunes won't connect to the store? However, it doesn't say it's not, it just doesn't load. It states that it is 'accessing iTunes store', but it's not. I'm running all of this on a windows 7 Acer extensa 5235 - just in case that helps. It probably won't, but you guys are clever, right? I mean, I could probably ask you to peel an orange for me, and you'd do it without even physically touching it. Just with the power of your omnipotent minds. Anyway yeah, if anyone can help on this one, would be much appreciated.

    Wow what a rambling mess and complete waste of time.
    Did you try a search of the forums for similar issues?  Doing so would have revealed multiple similar issues with valid troubleshooting, saved you time, and saved those that have read that crap from being subject to your rambling psychosis.
    FYI, in the future, get to the point and cut the crap when asking for help.
    Oh, completely uninstall iTunes and reinstall the current version of iTunes.

  • I need another person Who Can help with this iphone it will not restore on will not completely turn on

    i can't turn on the phone or even restore the phone completely it will not turn on at all !!

    iOS: How to backup - http://support.apple.com/kb/HT1766
    iOS: Unable to update or restore - http://support.apple.com/kb/HT1808

  • Purchased 3 subscriptions for Adobe Acrobat On colleague never received her link . . who can help me this site just sends you around and around

    Please see above, I can't seem to find any support for the above issue.  We just need a link resent to us for our recent purchase.

    What link do you need?  Subscriptions are activated by signing-in with the appropriate Adobe ID.
    You can download the trial from http://www.adobe.com/products/acrobatpro.html

  • I am stumped! Can't open library module-  failure message and can't start Ligthroom 5.7 anymore: "[String "unarchived table s"]:6 : attempt to compare nil with boolean. - Nothing is working anymore! Who can help me?

    My system:
    Windows 7
    Lightroom 5.7
    I allready tried to load an older catalog backup, but that does not help.
    The failure message occurs during the starting process while trying to Open the library:
    "[String "unarchived table s"]:6 : attempt to compare nil with boolean.
    Nothing is working anymore! Who can help me?
    Thank you for your help!

    Ask on the Microsoft forums, as it's their software you're having problems with:
    http://answers.microsoft.com/en-us/mac

  • TS2446 My apple id has been disabled.  I have tried every suggested recovery technique and nothing has worked.  Can someone offer advice?

    My Apple ID has been disabled.  I have tried every suggested recovery method including the ones recommended by Apple.  Nothing has worked.  Can anyone offer a suggestion.
    Thanks,

    Contact iTunes store support.  They deal with disabled IDs all the time.  You can reach them here: http://www.apple.com/emea/support/itunes/contact.html.

  • Canon Pixma MP 540 does not scan any longer after update mountain lion. printer works normally. Who can help.

    My Canon Pixma MP 540 does not scan any longer after update mountain lion. MP Navigator EX 2.0 starts and immediatley stops and comes with this message:
    Application Specific Information:
    *** Terminating app due to uncaught exception 'NSInvalidArgumentException', reason: '-[NSImageCell loadingState]: unrecognized selector sent to instance 0x825c0f0'
    Printer works normally. Who can help.
    Thank you
    PeterPan52

    Hi
    Did you find a solution to this ? I amhaving same problem
    Thanks

  • My Iphone 5s doesn't work. When i power on appear searching the sim card, but doesn't connect to the operator. Who can help me?

    Hy dear!
    My Iphone 5s doesn't work. When i power on appear searching the sim card, but doesn't connect to the operator. Who can help me? I reset the Iphone, but doesn't fix the probem.
    Thanks

    Hi dear!
    I'm very disappointed with Apple products! I was 15 days without my Iphone 5, because it stopped working and the had to be replaced by authorized apple. Then i bought an iphone 5s in two days it stopped working. Doesn't read the sim card. I call to Apple suport and discovery that the model A1533 is not warranted in Brazil and need to be replaced, because there is a hardware problem. In a moment i don't have anyone Phone. Why Apple does not send other equipment equal to authorized to exchange my Iphone, because in Brasil doesn't have the same model? I liked a lot this Apple phone, but i can't use, i have one brand new, but doen'st work. I don't have anybody in USA to exchange in one Apple store. Please help me!
    Thanks.

  • In my dock there was this weird program called "tutorial". While throwing away this program I had to fill in my password. Afterwards I tried to change my password, but my old password doesn't work anymore. Who can help?

    In my dock there was this weird program called "tutorial". While throwing away this program I had to fill in my password. Afterwards I tried to change my password, but my old password doesn't work anymore. Who can help?

    What was this program for, or did you just assume it's something you shouldn't have and therefore arbitrarily decide to "throw it away"? Exactly how did you supposedly throw it away?
    If you didn't change your administrator password, there's no reason it shouldn't work now, so that suggests you did something else, or changed it and then forgot what it was.
    You can't recover that password; you can only change it. To do that, you would need to boot from your Snow Leopard DVD, choose your language, then choose Reset Password from the Utilities menu in the top menu bar.

  • Entries on my I phone 4 in Calender are not pushed to I cloud so does not sync with my Mac and I pad. Reverse (from Mac to I pad and i phone works fine who can help me??

    Use Mac. I phone 4 and i Pad all latest software switched to i Cloud, works fine except entries in the Calender of the I Phone are not pushed to I Pad and Mac. reverse (from Mac to I phone and Ipad) it works ok. I pad entries in calender are pushed to Mac and IPhone Who can help me??

    On the iPhone open the Calendar app and on the top left conner tap the Calendar button and confirme that the calendars on your iPhone are under iCloud.
    If not that is the reason why they are not going.
    If  they are under iCloud try to toggle off and back on iCloud calendar options.

Maybe you are looking for

  • IPad mini iTunes sync without Bluetooth??

    I have a wifi-only iPad Mini on order for my wife. Her computer is an older iMac5,2 without Bluetooth. Will she be able to transfer/sync her contact data, photos and music using the iMac's USB connection? Would any additional adaptor/'camera kit' be

  • How to interact with database?

    Hi, I am exploring sampleportal application in Weblogic Portal8.1 SP4. There in login portlet they are using login.jsp file which uses examples.login.DirectorBacking class for login form authentication. DirectorBacking class uses default com.bea.p13n

  • Session tracing with HttpSessionBindingListener

    Hi, I hope someone can help. I am an Oracle developer/ assis,. dba looking at the possiblilties of Servlet and JSP's as front end apps for my databases. I'm trying to call an event when a session invalidates but i am having great difficulty whith get

  • Creating an instance of a class with no default constructor

    Hello gurus, I wrote my own serialization and RMI protocol for both C++ and Java that follows closely what the default Java version does. I'm trying to recreate an object on the Java side that was sent over the wire. The first step is to create an in

  • Can the proofreading tools in Pages be altered?

    Is it possible to alter the proofreading items flagged by Pages. When I write technical documents it is tiresome to have Pages repeatedly flag the same word as jargon; in a technical document jargon is useful and intended. My favorite irritating flag