I GOT PROGLEM IN MY CODE PLEASE HELP ME

mY CODE IS STARTRTING FROM HERE
MIXER AND MENU IS MUCH BLINKING
import java.awt.*;
import java.applet.*;
import java.awt.event.*;
class minipaint extends Applet implements MouseMotionListener,MouseListener
     boolean menu=false;
     boolean menu2=false;
     paintin p2=new paintin();
     int menua1=0,menua2=0;
     boolean filemenu=true;
     int fmenu=1000;
     int fmenu2=1000;
     public void init()
          setBackground(Color.white);
          addMouseMotionListener(this);
          addMouseListener(this);
          setBackground(p2.c);
     public void paint(Graphics g)
          g.setColor(Color.white);
          g.fillRect(108,57,450,353);          
                         //{PINK OUT LINES OF DRAWING AREA START FROM HERE}
          g.setColor(Color.pink);
          g.fillRect(105,60,3,350);//LEFT
          g.fillRect(105,60,450,3);//UPER
          g.fillRect(555,60,3,350);//RIGNT
          g.fillRect(105,410,453,3);//LOWER
                         //{PINK OUT LINES OF DRAWING AREA ENDS HERE}
               //{OUT LINE OF APPLET STARTS FROM HERE}
          g.setColor(Color.yellow);
          g.fillRect(5,25,3,493);//LEFT
          g.fillRect(5,25,600,3);//UPER
          g.fillRect(594,25,3,493);//RIGHT
          g.fillRect(5,493,600,3);//DOWN
          g.fillRect(102,28,3,385);//CENTER HORIZANTAL
          g.fillRect(5,413,600,3);//CENTER VERTICAL
          g.fillRect(105,57,493,3);//CENTER UPPER
          g.fillRect(558,57,3,357);//CENTER UPPER HORIZANTAL
          g.fillRect(427,413,3,150);
          g.fillRect(102,413,3,100);
               //{OUT LINE OF APPLET ENDS HERE}
               //{WORK SHEET COLOR BUTTON START FROM HERE}
          for(int i=0,j=75;i<11;i++,j+=30)
               g.setColor(p2.wc);
               g.fill3DRect(566,j,25,20,p2.wcc[i]);
                    //{WORK SHEET COOLR BUTTON ENDS HERE}
                                             //COLOR BUTTONS STARTS FORM HERE
          for(int i=0,j=112;i<10;i++,j+=32)
               g.setColor(p2.cc[i]);
               g.fill3DRect(j,422,20,20,p2.col[i]);
          for(int i=10,j=112;i<20;i++,j+=32)
               g.setColor(p2.cc[i]);
               g.fill3DRect(j,445,20,20,p2.col[i]);
          for(int i=20,j=112;i<=p2.customcolor;i++,j+=32)
               g.setColor(p2.cc[i]);
               g.fill3DRect(j,468,20,20,p2.col[i]);
                              //COLOR BUTTONS END HERE                              
                                             //COLOR MIXER STARTS FROM HERE
               g.setColor(p2.c);
               g.fill3DRect(450,424,142,5,true);//First Line
               g.fill3DRect(450,441,142,5,true);//Seconed Line
               g.fill3DRect(450,458,142,5,true);//Third Line
               g.fill3DRect(p2.mixer1,420,5,12,true);
               g.fill3DRect(p2.mixer2,437,5,12,true);
               g.fill3DRect(p2.mixer3,454,5,12,true);
               g.fill3DRect(448,469,65,20,p2.custbutton);
               g.setColor(Color.white);
               g.drawString("<< ADD",460,483);
               g.setColor(Color.red);
               g.fillRect(433,420,12,12);
               g.setColor(Color.green);
               g.fillRect(433,437,12,12);
               g.setColor(Color.blue);
               g.fillRect(433,454,12,12);
               g.setColor(p2.newcolor);
               g.fillRect(530,467,60,22);
                                             //COLOR MIXER ENDS HERE     
                                             //FILL AND LINE COLOR BUTTONS START FROM HERE
               g.setColor(Color.red);
               g.fillRect(9,p2.border1,31,31);
               g.setColor(p2.frontcolor);
               g.fillRect(12,425,25,25);
               g.setColor(p2.backcolor);
               g.fillRect(12,457,25,25);
               g.setColor(Color.white);
               g.setFont(p2.f);
               g.drawString("LINE COLOR",42,441);
               g.drawString("FILL COLOR",42,473);                                             
                                        // FILL AND LINE COLOR BUTTON ENDS HERE
     public void update(Graphics g)
                                             //COLOR MIXER STARTS FROM HERE
               paint(g);
               g.setColor(p2.c);
               g.fill3DRect(450,424,142,5,true);//First Line
               g.fill3DRect(450,441,142,5,true);//Seconed Line
               g.fill3DRect(450,458,142,5,true);//Third Line
               g.fill3DRect(p2.mixer1,420,5,12,true);
               g.fill3DRect(p2.mixer2,437,5,12,true);
               g.fill3DRect(p2.mixer3,454,5,12,true);
               g.fill3DRect(448,469,65,20,p2.custbutton);
               g.setColor(Color.white);
               g.drawString("<< ADD",460,483);
               g.setColor(Color.red);
               g.fillRect(433,420,12,12);
               g.setColor(Color.green);
               g.fillRect(433,437,12,12);
               g.setColor(Color.blue);
               g.fillRect(433,454,12,12);
               g.setColor(p2.newcolor);
               g.fillRect(530,467,60,22);
                                             //COLOR MIXER ENDS HERE     
     public void mouseDragged(MouseEvent e)
                         //MIXER MOVES FROM HERE
               if (p2.m1)
                    p2.mixer1=e.getX();
                    if (p2.mixer1<450)
                         p2.mixer1=450;
                    if (p2.mixer1>587)
                         p2.mixer1=587;
                    p2.mc1=(p2.mixer1-450)*2;
                    repaint();
               if (p2.m2)
                    p2.mixer2=e.getX();
                    if (p2.mixer2<450)
                         p2.mixer2=450;
                    if (p2.mixer2>587)
                         p2.mixer2=587;
                    p2.mc2=(p2.mixer2-450)*2;
                    repaint();
               if (p2.m3)
                    p2.mixer3=e.getX();
                    if (p2.mixer3<450)
                         p2.mixer3=450;
                    if (p2.mixer3>587)
                         p2.mixer3=587;
                    p2.mc3=(p2.mixer3-450)*2;
                    repaint();
                         // MIXER ENDS MOVING HERE
     public void mouseMoved(MouseEvent e)
     public void mouseClicked(MouseEvent e)
     public void mousePressed(MouseEvent e)
                    // FOR MOVING MIXER STARTS FROM HERE
          if (e.getX()>=p2.mixer1 && e.getX()<=p2.mixer1+3 && e.getY()>=420 && e.getY()<=432)
               p2.m1=true;
          if (e.getX()>=p2.mixer2 && e.getX()<=p2.mixer2+3 && e.getY()>=437 && e.getY()<=449)
               p2.m2=true;
          if (e.getX()>=p2.mixer3 && e.getX()<=p2.mixer3+3 && e.getY()>=454 && e.getY()<=466)
               p2.m3=true;
               //MIXER ENDS MOVING HERE
     public void mouseReleased(MouseEvent e)
                              //mixer
          p2.m1=false;p2.m2=false;p2.m3=false;
                              //ends mixer
     public void mouseEntered(MouseEvent e)
     public void mouseExited(MouseEvent e)
import java.awt.*;
public class mcolors
          Color c1=new Color(236,134,56);//coffe light
          Color c2=new Color(22,230,231);//light green
          Color c3=new Color(83,44,45);//cofee dark
          Color c4=new Color(3,234,23);//green
          Color c5=new Color(167,255,223);//soft green
          Color c6=new Color(45,46,150);//light royal blue
          Color c7=new Color(222,222,222);//microsoft gray
          Color c8=new Color(245,56,56);//red
          Color c9=new Color(22,22,220);//blue
          Color c10=new Color(6,78,78);//royal green
          Color c11=new Color(44,172,229);//light blue
          Color c12=new Color(255,234,50);//yellow
          Color c13=new Color(255,239,239);//dim pink
          Color c14=new Color(223,25,229);//purple standard
          Color c15=new Color(100,0,0);//kalege
          Color c16=new Color(171,173,255);//Beautilfull blue
          Color c17=new Color(171,13,255);//royal purple
          Color c18=new Color(253,134,234);//pinky
          Color c19=new Color(251,100,155);//light red
          Color c20=new Color(212,200,25);//warmer
          Color c21=new Color(255,255,222);//cream
          Color c22=new Color(0,85,0);//dark green
          Color c23=new Color(100,100,10);//naswari
          Color c24=new Color(150,150,100);//light naswari
          Color c25=new Color(250,0,250);//dim purple
          Color c26=new Color(150,200,200);//sarkari
          Color c27=new Color(220,220,200);//royal gray
          Color c28=new Color(250,150,0);//malta
          Color c29=new Color(240,125,200);//pink
          Color c30=new Color(255,255,255);//bura
          //     Color cc[]={c1,c2,c3,c4,c5,c6,c7,c8,c9,c10,c11,c12,c13,c14,c15,c16,c17,c18,c19,c20,c21,c22,c23,c24,c25,c26,c27,c28,c29,c30};
import java.awt.*;
import java.awt.event.*;
import java.applet.*;
class paint2 extends Applet
     Color c=new Color(171,173,255);//BORDER COLOR
     Color wc[]= {Color.white,Color.red,Color.green,Color.black,Color.yellow,Color.orange,Color.pink,Color.gray,Color.cyan,Color.magenta,c};//WCC COLOR ARRAY
     boolean wcc[]={true,true,true,true,true,true,true,true,true,true,true,true};//WCC COLOR BUTTON ARRAY
     boolean wccc=false;
     boolean
     col[]={true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true,true};//COLOR ARRAY
     boolean col1=false;
     int mixer1=470,mixer2=470,mixer3=470;int mc1,mc2,mc3;Color newcolor;
     mcolors ncc=new mcolors();;boolean m1=false,m2=false,m3=false;
     int customcolor=26;boolean custbutton=true;boolean custbutton2=false;
     Color cc[]={ncc.c1,ncc.c2,ncc.c3,ncc.c4,ncc.c5,ncc.c6,ncc.c7,ncc.c8,ncc.c9,ncc.c10,ncc.c11,ncc.c12,ncc.c13,ncc.c14,ncc.c15,ncc.c16,ncc.c17,ncc.c18,ncc.c19,ncc.c20,ncc.c21,ncc.c22,ncc.c23,ncc.c24,ncc.c25,ncc.c26,ncc.c27,ncc.c28,ncc.c29,ncc.c30};
     Font f=new Font("BookmanOldStyle",0,9);
     Color frontcolor=new Color(0,0,0);
     Color backcolor=new Color(255,255,255);
     boolean fillcolor=true;
     int border1=422;
     public void paint(Graphics g)
               newcolor=new Color(mc1,mc2,mc3);
                         //{BLUE BACK GROUND STARTS FROM HERE}
          g.setColor(c);
          g.fillRect(0,0,105,383);//UNDER BUTTONS
          g.fillRect(105,0,550,30);//UPER SIDE
          g.fillRect(557,30,43,353);//RIGHTSIDE
          g.fillRect(0,383,600,78);//UNDERSIDE
                         //{BLUE BACKGROUND ENDS HERE}
                         //{WORK SHEET COLOR BUTTON START FROM HERE}
          for(int i=0,j=47;i<11;i++,j+=30)
               g.setColor(wc[i]);
               g.fill3DRect(566,j,25,20,wcc[i]);
                         //{WORK SHEET COOLR BUTTON ENDS HERE}
                         //{PINK OUT LINES OF DRAWING AREA START FROM HERE}
          g.setColor(Color.pink);
          g.fillRect(105,30,3,350);//LEFT
          g.fillRect(105,30,450,3);//UPER
          g.fillRect(555,30,3,350);//RIGNT
          g.fillRect(105,380,453,3);//LOWER
                         //{PINK OUT LINES OF DRAWING AREA ENDS HERE}
               //{OUT LINE OF APPLET STARTS FROM HERE}
          g.setColor(Color.yellow);
          g.fillRect(0,0,3,460);//LEFT
          g.fillRect(0,0,600,3);//UPER
          g.fillRect(597,0,3,460);//RIGHT
          g.fillRect(0,457,600,3);//DOWN
          g.fillRect(102,0,3,383);//CENTER HORIZANTAL
          g.fillRect(0,383,600,3);//CENTER VERTICAL
          g.fillRect(105,27,493,3);//CENTER UPPER
          g.fillRect(558,30,3,353);//CENTER UPPER HORIZANTAL
          g.fillRect(447,383,3,150);
          g.fillRect(100,383,3,100);
               //{OUT LINE OF APPLET ENDS HERE}
                                             //{ 3D BUTTON STRATS FROM HERE }
          g.setColor(c);
          g.fill3DRect(8,30,40,25,true);
          g.fill3DRect(55,30,40,25,true);
          g.fill3DRect(8,63,40,25,true);
          g.fill3DRect(55,63,40,25,true);
          g.fill3DRect(8,96,40,25,true);
          g.fill3DRect(55,96,40,25,true);
          g.fill3DRect(8,129,40,25,true);
          g.fill3DRect(55,129,40,25,true);
          g.fill3DRect(8,162,40,25,true);
          g.fill3DRect(55,162,40,25,true);
          g.fill3DRect(8,195,40,25,true);
          g.fill3DRect(55,195,40,25,true);
                                             //{3D BUTTONS END HERE}
                                             //COLOR BUTTONS STARTS FORM HERE
          for(int i=0,j=105;i<10;i++,j+=35)
               g.setColor(cc[i]);
               g.fill3DRect(j,390,25,20,col[i]);
          for(int i=10,j=105;i<20;i++,j+=35)
               g.setColor(cc[i]);
               g.fill3DRect(j,413,25,20,col[i]);
          for(int i=20,j=105;i<=customcolor;i++,j+=35)
               g.setColor(cc[i]);
               g.fill3DRect(j,436,25,20,col[i]);
                                             //COLOR BUTTONS END HERE
                                             //COLOR MIXER STARTS FROM HERE
               g.setColor(c);
               g.fill3DRect(470,394,125,5,true);//First Line
               g.fill3DRect(470,411,125,5,true);//Seconed Line
               g.fill3DRect(470,428,125,5,true);//Third Line
               g.fill3DRect(mixer1,390,5,12,true);
               g.fill3DRect(mixer2,407,5,12,true);
               g.fill3DRect(mixer3,424,5,12,true);
               g.fill3DRect(455,438,65,17,custbutton);
               g.setColor(Color.white);
               g.drawString("<< ADD",468,450);
               g.setColor(Color.red);
               g.fillRect(453,390,12,12);
               g.setColor(Color.green);
               g.fillRect(453,407,12,12);
               g.setColor(Color.blue);
               g.fillRect(453,424,12,12);
               g.setColor(newcolor);
               g.fillRect(540,435,50,20);
                                             //COLOR MIXER ENDS HERE
               g.setColor(Color.black);
          g.setColor(Color.red);
          g.fillRect(7,border1,31,31);
          g.setColor(frontcolor);
          g.fillRect(10,395,25,25);
          g.setColor(backcolor);
          g.fillRect(10,427,25,25);
          g.setColor(Color.white);
          g.setFont(f);
          g.drawString("LINE COLOR",40,411);
          g.drawString("FILL COLOR",40,443);

What type of object is paintin ?
paintin p2=new paintin();
I can't find it in the API or Searching thru the forum ?

Similar Messages

  • Installed windows 7 64 bit on my macbook .. but now got my macbook without audio. please help me!

    Installed windows 7 64 bit on my macbook .. but now got my macbook without audio. please help me!

    You most likely installed Windows 7 in EFI mode. Can you confirm this?
    If you used Bootcamp Assistant to partition your drive, you did not install in EFI mode.
    If you selected "EFI Boot" at the boot menu before installing Windows, you started the EFI Boot installer.
    Please let us know whether or not you installed in EFI mode because audio not working is a common problem in EFI mode, but should not appear in normal BIOS mode. (Normal BIOS mode is when you used Bootcamp assistant)

  • I have a compilation problem with my mini iPod that is preventing my volume from increasing. I can't get the compilation code, please help me

    MY mini iPod version number1.1.3 pc robs iPod ,4GB is having volume limit problem ,the volume is very low compare to how it was playing before I mistakenly touch the combination code. I have forgotten the combination code, please help me out.. I have tried to reset settings but it wouldn't work.

    i can get the combination code please

  • My macbook is blocked by pin code, please help, I dont know what to do!

    My macbook is blocked by pin code, please help, I dont know what to do!

    When you enter iTunes on the PC and the iPod icon pops up, right click on it and select "Options". Then click on the Music tab. Once you're in the Music tab check the box that says "Enable Disc Use". This means that you've just turned your iPod into a portable hard drive. Click "Ok" and move your iPod from the PC to the Mac. From there, your iPod should show up on the Mac's desktop right under the Hard Drive icon. Click "File" at the top of the screen and select "Add to Library". Find the iPod hard drive in the selection screen and choose the music folder that's on it. Then just click Ok and all your music will be downloaded. That should do the trick, but you might want to do a Google search on the subject to get a second opinion. Best wishes!

  • When I tried to authorize my computer using my Adobe ID, I got an error message. Please help me out.

    When I tried to authorize my computer using my Adobe ID, I got an error message. Please help me out.

    Please restart your machine and try again.
    Thanks

  • HT1539 When I was downloading a movie on iTunes, I got an error -50. Please help.

    hen I was downloading a movie on iTunes, I got an error -50. Please help.

    Perhaps try the "Error -50," "-5000," "8003," "8008," or "-42023" section in the Specific Conditions and Alert Messages: (Mac OS X / Windows) section of the following document:
    iTunes: Advanced iTunes Store troubleshooting

  • HT201304 ello my little brother has developed lock my iPhone and I could not see the unlocking code Please help and thank you

    Hello
    ello my little brother has developed lock my iPhone and I could not see the unlocking code Please help and thank you
    edited by host

    Hi Omar_a983,
    If you are having an issue with the passcode on your iPhone, you may find the following article helpful:
    iOS: Forgotten passcode or device disabled after entering wrong passcode
    http://support.apple.com/kb/ht1212
    Regards,
    - Brenden

  • I can't find my redemption code, please help!

    I can't find my redemption code, please help!

    You have purchased Creative Cloud Photography plan on Sept. 26, 2014.
    If the CC is asking for serial number then please follow the steps in http://helpx.adobe.com/creative-cloud/kb/ccm-prompt-serial-number.html
    To download the CC purchased you need to install &activate it. Please refer to
    http://helpx.adobe.com/creative-cloud/help/install-apps.html
    Download and Installation Help
    Hope it resolves your issue.
    Regards
    Rajshree

  • I brought an iphone 4 factory unlock and it is linked with an icloud id of previous owner, i dont even know id of icloud , 1 week ago i restore my iphone 4 n got stuck in activation screen, please help me out please?

    i brought an iphone 4 factory unlock and it is linked with an icloud id of previous owner, i dont even know id of icloud , 1 week ago i restore my iphone 4 n got stuck in activation screen, please help me out please?

    If you are trying to activate an iPad or iPhone and it is asking for the original owners Apple ID and password, you have encountered the Activation Lock. This is a security feature that prevents thieves from setting up and using a stolen or lost iPad or iPhone. You have no alternative. No must contact the original owner to get permission to use the device. If you cannot contact the original owner return the device to where you bought it and get a refund. You will never be able to activate the device and no one can help you do it.

  • My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    My MacAir is great except for a problem i have. Keys F1, F2,F5,F6,F7,F8,F9,F10,F11,F12 and the power button are unresponsive. These are keys i frequently use and i have searched the whole apple help centre. Anyone got answers for me? Please helP!!!

    Some keys don't work as expected
    From the Apple menu, choose System Preferences.
    From the View menu, choose Speech.
    Click the Text to Speech tab.
    If "Speak selected text when the key is pressed" is enabled, the key or key combination set to speak text cannot be used for other purposes or used to type text--click Set Key and change it to a less-commonly used key combination (try to use modifier keys such as Shift, Command, Option, and Control). Or, disable the "Speak selected text when the key is pressed" option.
    Click the Universal Access pane in System Preferences, click the Keyboard tab.
    Make sure that Slow Keys is turned off. With Slow Keys on, you need to press a key for a longer period of time for it to be recognized.
    In the Universal Access pane, click the Mouse tab, and make sure Mouse Keys is turned off. With Mouse Keys enabled, you cannot use the Numeric Keypad to enter numbers--instead the keypad moves the pointer (cursor). (There is an option to enable Mouse Keys with five presses of the Option key; you may want to turn that option off to avoid accidentally enabling it.) If Mouse Keys is enabled and you are using a keyboard with no numeric keypad or Num Lock function, see Unable to type while Mouse Keys is enabled in Mac OS X.
    If the function keys on the top row of the keyboard are not working as expected, see Mac OS X: How to change the behavior of function keys.
    If the issue persists, use Keyboard Viewer to help isolate the issue:
    Click the Language & Text pane (Mac OS X v10.6) or International pane (Mac OS X v10.5.8 or earlier) in System Preferences.
    Click the Input Sources tab (or Input Menu tab in Mac OS X 10.5.8 or earlier).
    Click the Keyboard & Character Viewer "On" checkbox to select it (click the Keyboard Viewer "On" checkbox in Mac OS X 10.5.8 or earlier).
    From the Input (flag) menu, choose Show Keyboard Viewer.
    If the keyboard is connected and detected by Mac OS X, the keys you type will highlight in the Keyboard Viewer window. Open TextEdit (or any text application), and try to type something using the keys that were previously not responding to see if they highlight in Keyboard Viewer.
    Start from the Mac OS X Install Disc, choose Terminal from the Utilities menu and test the keys which were previously not working.  If the keys work while started from the Install disc, then the keyboard itself is working correctly.  Use Mac OS X: How to troubleshoot a software issue to isolate the software issue that may be causing the keys to not respond.
    http://support.apple.com/kb/TS1381

  • I am using iPhone 5. I have a smart playlist that shows the 25 most play songs within the last 3 months. However, the list on my phone got completely messed up. Please help me.

    I am using iPhone 5. I have a smart playlist that shows the 25 most play songs within the last 3 months. However, the list on my phone got completely messed up. Please help me.

    First thought:  Have you used the same Apple ID for all the purchases you're talking about?  If not, that could cause an issue.
    Assuming you've used the same Apple ID all the way through everything you're talking about, here's the second set of questions:
    When you say you can't play the songs from the iPhone playlist, can you see the playlist on the iPhone?  Is the song visible in the playlist?  Is it visible under "Songs" in iTunes on your iPhone?  Is it visible in "Albums" on your iPhone?  Is the song in iCloud?

  • My OS X Mountain Lion PDF wont open - invaild code - Please help

    I bought this MacBook Pro on june 21. Its brand new, so yes I qualify for the free Mountain Lion upgrade. I finally got my 2 emails and I seriously have no idea what to do. The instructions make no sense at all. I open the PDF and enter my code I was given via Email and its too long / doesnt fit in the Protected Password PDF. I click enter, doesnt work, I enter parts of it, and it doesnt work. no matter what it doesnt work. I tried entering the code on the Reedem section of the Mac App store, still does NOT work. What am I doing worng? I called the Apple store and they said I was entering the code in worng. I am NOT entering it in wrong, I copy paste it and it just doesnt work. I entered it multiple times with the - and without it and it just wont work! Someone please help! I was promised a FREE mountain lion upgrade and I really want it for the Airplay feature!
    I can provide my Claim number / password if needed.

    Since these forums are user to user only, you will have to deal with Apple on this; I'd suggest emailing their MAS support and telling them that you've gotten an incorrect code (copy/paste it in the email). Ask them for a new one or instructions on what to do with it.
    Just an added thought: when you launch MAS (from your dock, Launchpad, or Applications folder), on the home / front page, do you see a "Redeem" link under Quick Links on the right side of the page? When you click on that, you should get a second window with a "enter your gift card or download code" section? Or is that the place where you've already tried it?

  • My iPod nano g7 isn't showing up on iTunes although i plug it in. it shows on the computer but not on iTunes. also it won't sync , accept new songs and doesn't  put on podcasts. it is new, i got it for christmas. PLEASE HELP

    my iPod nano g7 isn't showing up on iTunes although i plug it in. it shows on the computer but not on iTunes. also it won't sync , accept new songs and doesn't  put on podcasts. it is new, i got it for christmas. PLEASE HELP

    Hi avmary11,
    If your are having issues with your iPod not being recognized by iTunes (but it is being recognized by the computer), you may find the following article helpful:
    iPod: Appears in Windows but not in iTunes
    http://support.apple.com/kb/ts1363
    Regards,
    - Brenden

  • Error is my code please help

    I have created a try-catch statement, I have also created a home made Invalid value exception class. I have also thrown the InvalidValueException in a calculate method in a seperate class. I am getting the error of unreachable catch block. Here is my code for this process. Please Help
    private void runPayroll(List employees)
    Collections.sort(employees, new PersonComparator());
    // place the following code in a try-catch statement to check for the following errors
    //- InvalidValue (the pay units must be a decimal number > 0)
    try
    double payRate = jtfPayRate.getText();
    catch (InvalidValueException ivEx)//THIS IS WHERE I AM GETTING MY ERROR
    JOptionPane.showMessageDialog(this, "the pay units must be a decimal number > 0", "Error Message", JOptionPane.ERROR_MESSAGE);
    return;
    // loop through all of the employees in the collection
    Iterator iterator = employees.iterator();
    StringBuffer output = new StringBuffer("");
    while (iterator.hasNext())
    Employee employee = (Employee)iterator.next();
    output.append( employee.toString() + "\n" );
    //InvalidValueException class
    public class InvalidValueException extends Exception
    public  InvalidValueException(double payUnit)
    //super(payUnit);
    public String getLocalizedMessage()
    return "Amount must be > 0";
    //PayCheck class this is where I throw the exception
    public abstract double calculate(double payUnit, double payRate)
    throws InvalidValueException;

    That catch block is never reached because
    double payRate = jtfPayRate.getText();will never throw an InvalidValueException (it doesn't even know about it). I assume jtfPayRate is a textfield? If so, I am suprised the compiler doesn't give you an incompatible types error first, since you are trying to put a string into a double value with the above statement.
    I think what you are trying to do is this:
    try {
      double payRate = Double.parseDouble(jtfPayRate.getText());
    catch(NumberFormatException ex) {
      throw new InvalidValueException(...);
    }You may want to pass an error message string to your self made exception, by the way, and call super(message) in the constructor of it.

  • Stuck up in the code.Please help me.

    Hi,
    IF pa0168-bplan = 'P005' then send 'ST' to RDSTDCover field.
    send BEGDA OF PA0168 if 'ST' was sent for RDSTDCover, else send blanks for field RDSTDStrDte
    send ENDDA of PA0168 if 'ST' was sent for RDSTDCover& ENDDA is not equal to 12/12/9999.  Else send blanks for field RDSTDStpDte.
    If RDSTDCover = 'ST' Send '100525' for field RDSTDRptNum.
    if RDSTDCover = 'ST' Send 'N' for field RDSTDContPlan.
    if RDSTDCover = 'ST' do the following:
       If PA0001-BURKS='1009' go to Table Z_PR_legcode to retrieve previous Company Code Text       for PA0002-PERID.
    I was coded like this
    loop at p0168 into w0168
                    where begda <= v_rundat and
                          endda >= v_rundat.
        if w0168-bplan = 'p005'
          w_MetLife_detail-rdstdcover = 'ST'
        endif.
      endloop.
    but i was stuck up here.Please help me on this.

    Hi,
      Thanks for your reply.Again same condtions are repeating for LTD plan 'P006'.Where i write this conditions.
    IF pa0168-bplan = 'P006' then send 'LT' to RDLTDCover field.
    send BEGDA OF PA0168 to RDLTDStrDte if 'LT' was sent for RDLTDCover, else send blanks. 
    send ENDDA of PA0168 to RDLTDStpDte.if 'LT' was sent for RDLTDCover& ENDDA is not equal to 12/12/9999.  Else send blanks for field.
    If RDLTDCover = 'LT' Send '98340' for field RDLTDRptNum.
    if RDLTDCover = 'LT' Send 'N' for field RDLTDContPlan.
    if RDLTDCover = 'LT' do the following:
       If PA0001-BURKS='1009' go to Table Z_PR_legcode to retrieve previous Company Code Text for PA0002-PERID.
    Regards,
    Sujan

Maybe you are looking for

  • Will any mail apps open to the inbox by default?

    I have been using computers for decades...and have had my iPhone for a few years now. It was only a few days ago that I got my first iPad and was surprised by the "feature" that all of the mail apps seem offer... I am talking about opening the app to

  • Standard object for open ar line items charge backs

    Hello there, can any body tell me whether any standard object exists for open AR line Items Charge Backs. Regards Janapathi

  • Exporting from fcp - stp3

    I export the project but only certain files are heard on playback and the silent files have no wave pattern. I try to reconnect but can't cause not aiff files. How can I export my project and have all audio open?

  • I cannot open any emails in my Yahoo email (IE8 does) - why?

    First of all, I can open my Yahoo emails on my laptop which uses Firefox, and on my Kindle. But on my PC they just will not open with Firefox! They do open on my PC with IE8. I was using version 28.0 but reinstalled Firefox 28.0 to no avail. Any idea

  • Sharing HP 2550 With PC Over Network

    Is it possible to share my HP printer with the PC on my network? I have sharing enabled on both my Mac and the PC but the PC doesn't show the HP in the printer list. Thanks.