Update numbers -shows expecting in typecasting.. pl help

Hi
I have a Object class Field Group with methods like setgroup id,get groupid,get label, set label .
I need to update the group id when the List <fieldgroup> is updated. for updating i worte a code saying
g_list is a List<FieldGroup>
public void updateidNumbers()
     for (int i = 0 ; i < g_list.size(); i ++)
               int c = g_list.size();
               System.out.print(c);
               FieldGroup a = g_list.get(i);
               a.setGroupId(new BigDecimal(i));
               System.out.print(a.getlabel());
where setGroupId return a bigdecimal value ...
My probelm is that it showing a Exception in thread "AWT-EventQueue-0" java.lang.ClassCastException: java.lang.String
     at this line      FieldGroup a = g_list.get(i);
please help
thanks in Advance

public class ViewTreeModel implements TreeModel
     private Vector<TreeModelListener> f_treeModelListeners; // TreeModelListeners associated with the tree
//     private View f_view;//A View For ProjectField
//     private View g_view;// A View For ProjectFieldGroup
     List <ProjectFieldGroup>g_list;//Top Level List for Project Field Group
     List <ProjectField>f_list ;//Top Level List for Project Field Group
     private View root; // root will be a node
      * @param view
      * @param grouplist
      * @param fieldlist
     public ViewTreeModel(List<ProjectFieldr> field , List<ProjectFieldGroup>group )
          f_list = field;
          g_list = group;
          f_treeModelListeners = new Vector<TreeModelListener>();
/**Add a  Group
* @param pathtoParent 
* @param groupId
* @param content
     public void addgroup(TreePath path ,int groupid, Object content)
          Object parent =path.getLastPathComponent();
     //     ((List)parent).add(groupid, content);
          if (parent instanceof List)
               ((List)parent).add(groupid ,content);}
          updateidNumbers();
          fireStructureChange();
     public void add(TreePath path , int index , Object obj)
      * Update all the  group id and parent id of ProjectFieldGroupDescriptor in the view
     public void updateSequenceNumbers()
          for(int i = 0 ; i < f_list.size();i++)
               f_list.get(i).setSequence(new BigDecimal(i));
     public void updateidNumbers()
          int i = 0 ;
          int g = g_list.size();
     //     System.out.print(g);
          Object a = (g_list.get(i));
          System.out.print(a);
          (g_list.get(i)).setGroupId(new BigDecimal(i));
          int c = g_list.size();
          for (int i = 0 ; i < g_list.size(); i ++)
          //     System.out.print(c);
                Object a =      g_list.get(i);
     /*          ProjectFieldGroupDescriptor  a = (ProjectFieldGroupDescriptor)g_list.get(i);
               a.setGroupId(new BigDecimal(i));
               //     b = (g_list.get(i)).setGroupId(new BigDecimal(i)); //Orginal Statement
               System.out.print(a.getLabel());*/
               System.out.print(a);
     }

Similar Messages

  • HT5052 when ever i download an update i.e,iOS 5.0.1 Software Update it shows an error so pls help me or guide through it.....

    when ever i download an update i.e,iOS 5.0.1 Software Update it shows an error so pls help me or guide through it.....the error shown is-3676 timed out

    Most likely computer Anti-Virus and or computer Fire-Wall is interferring with the download of the Firmware. Turn them OFF, so your computer can download the Firmware.

  • TS3694 I am having problem with my iphone 3g update, its showing 1015 error. someone please help me out. Thanks

    I am having problem with my iphone 3g update, its showing 1015 error. someone please help me out. Thanks

    nomibutt wrote:
    ... its showing 1015 error.
    Unauthorized modification of iOS
    http://support.apple.com/kb/HT3743
    ERROR 1015...
    This Error Code is indicative of the Device being jailbroken / Hacked...
    Sorry... But...
    The discussion of Jailbroken Devices is against the Terms of Use of this Forum.
    You will need to look elsewhere.

  • Halo, i hav an ipad2 version 4.3.5. now i went for updating it and while updating it shows error 4005. Pls help me in fixing this issue

    halo, iam using an ipad 2 and it was in version 4.3.5. Thought of updating it and went for it. While updating it shows error 4005 and i couldnt fix it. Can some one help me to fix this issue.

    You've tried the other things on those pages e.g. tried a different USB port on your computer and a different cable, tried the other pages that the first link
    If there’s an issue with the USB port, cable, dock, or hub, or if the device becomes disconnected during restore, try troubleshooting the USB connection, then troubleshooting your security software.
    If you checked your connections and are still seeing the error message, check for hardware issues.
    Check for hardware issues
    Related errors: 1, 3, 10, 11, 12, 13, 14, 16, 20, 21, 23, 26, 27, 28, 29, 34, 35, 36, 37, 40, 1000, 1002, 1004, 1011, 1012, 1014, 1667, or 1669.
    Try to restore your iOS device two more times while connected with a cable, computer, and network you know are good. Also, confirm your security software and settings are allowing communication between your device and update servers. If you still see the error message when you update or restore, contact Apple support.
    Do you have a different computer that you could try ?
    If you continue to see error 4005, 4013, or 4014 when you restore your device, contact Apple for support.

  • After latest update - Numbers shows in the Application Folder

    I recently updated Numbers and Pages and shows that the applications are installed under purchase section of software.  But the applications don't show in the application foler on my computer.  I can't remove the applications to try reinstall>
    Any idea how I resolve this issue?
    Thanks,
    Mike

    Hi Mike,
    he applications don't show in the application foler on my computer.  I can't remove the applications to try reinstall>
    If, after following Wayne's suggestion of restarting your computer, for some reason you still can't see the latest version of Numbers in the Applications folder, you could try going to Launchpad and looking there for the Numbers icon with four columns. You can use Launchpad to uninstall an app. Hold down the option key until all the icons jiggle, then click the x by the icon of the app you want to uninstall. Then go to the Mac App Store and try downloading again.
    SG

  • App store neither updating Numbers nor allowing purchase

    Like many users I hadn't updated Numbers (showing as '09 2.3) , but had updated Pages.
    After updating to Yosemite, Pages updated fine, but I get the 'update unavailable with this id' message that others have mentioned.
    So of course I have been reading as many threads here as I can.
    However I also have no option to purchase it, only to update, and I can't even hide the update badge by changing iWork Spotlight preferences, restarting, resetting pram, etc.  There isn't an 'accept' message in my ITunes account, and support either directs me back to this page, or offers a £25 genius bar fee - more expensive than repurchasing the App would be!
    Any ideas - other than to keep using the old one which fortunately still works fine?
    I can just about accept that I made a mistake by not updating it earlier, but then why can't I buy it? A Yosemite bug?
    I think I got iWork with this iMac in 2011, though I also had it on my previous iMac.

    Ok I found the solution to some of this.
    I found in another thread that iWork is indexed, rather than each app.
    What I did was: put the entire Applications folder from the hard drive into privacy in Spotlight preferences.
    Reset the App store.
    Removed the applications folder, but added iWork '09 folder, Keynote, and Pages ie all the iWork components.
    App store then showed no updates available but that I could purchase Numbers.
    I decided just to buy it again.

  • I have installed apps Hungry Shark vobec but it does not show me the settings I like it or not even in the game center I have not updated results from it you can not help me thank you

    I have installed apps Hungry Shark vobec but it does not show me the settings I like it or not even in the game center I have not updated results from it you can not help me thank you

    Hi Marcel1no,
    Welcome to the Apple Support Communities! 
    I understand that it can be frustrating when an application downloaded from the App Store is not behaving as you would expect. In this situation, I would recommend using the attached article for information on troubleshooting apps downloaded from the App Store. 
    iOS: An app you installed unexpectedly quits, stops responding, or won’t open - Apple Support
    Cheers,
    Joe 

  • Ockeim getting problem in imovie & iphoto update.my 1st id is bld,i changed my id but during update it is showing my previous id.please help me how should i update my app by new id.

    im getting problem in imovie & iphoto update.my 1st id is blocked,i changed my id but during update it is showing my previous id.please help me how should i update my app with my new id.

    Contact App Store support. There's a link on the right hand side of the App Store Window. They're the only ones who can sort out account issues.

  • Digital camera RAW Compatibility update 6.02 does not seem to update and keeps showing as an update to down;road. Can anyone help. Thanks. Tim

    Digital camera RAW Compatibility update 6.02 does not seem to update and keeps showing as an update to down;road. Can anyone help. Thanks. Tim

    Download it directly from Apple and apply;
    Digital Camera RAW Compatibility 6.02

  • Every time I open iPhoto, the program freezes, showing me the spinning rainbow of death.  I always need to perform a Force Quit.  I have updated my software, but that did not help.

    Every time I open iPhoto, the program freezes, showing me the spinning rainbow of death.  I always need to perform a Force Quit.  I have updated my software, but that did not help.

    tullch24
    Try these in order - from best option on down...
    1. Do you have an up-to-date back up? If so, try copy the library6.iphoto file from the back up to the iPhoto Library (Right Click -> Show Package Contents) allowing it to overwrite the damaged file.
    2. Download <a href="http://www.fatcatsoftware.com/iplm/"><b><u>iPhoto Library Manager</b></u></a> and use its rebuild function. This will create a new library based on data in the albumdata.xml file. Not everything will be brought over - no slideshows, books or calendars, for instance - but it should get all your albums and keywords back.
    Because this process creates an entirely new library and leaves your old one untouched, it is non-destructive, and if you're not happy with the results you can simply return to your old one.
    3. If neither of these work then you'll need to create and populate a new library.
    To create and populate a new *iPhoto 08* library:
    Note this will give you a working library with the same Events and pictures as before, however, you will lose your albums, keywords, modified versions, books, calendars etc.
    In the iPhoto Preferences -> Events Uncheck the box at 'Imported Items from the Finder'
    Move the iPhoto Library to the desktop
    Launch iPhoto. It will ask if you wish to create a new Library. Say Yes.
    Go into the iPhoto Library (Right Click -> Show Package Contents) on your desktop and find the Originals folder. From the Originals folder drag the individual Event Folders to the iPhoto Window and it will recreate them in the new library.
    When you're sure all is well you can delete the iPhoto Library on your desktop.
    In the future, in addition to your usual back up routine, you might like to make a copy of the library6.iPhoto file whenever you have made changes to the library as protection against database corruption. 

  • HT1933 I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 i

    I am facing problems with mails after update iPhone 4S/io7. I have configured yahoo mail in iPhone 4S. When I click on refresh, it shows new mail downloaded but when I go inside inbox the new mail don't show up. Can anyone help me with this iOS 7 issue ?

    Hi were you able to resolve yours?
    I was very worried losing all my medical stuff on my iPad Air 2, plus i have nothing to use for the next day! So i have to try all the possible things i read on the internet!! And this worked on my part (Thank God, and thank you Google)
    Perform a hard reboot
    Hold down the Home button and Power button on your iPhone or iPad and keep holding them until you see the Apple logo. Once you do, you can let go. When your device boots back up, go ahead and check to see if the apps have started re-downloading. If they still appear to be stuck, continue on.

  • TS1702 I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits  this happens on both my ipad3 & iphone5

    2/3/14: I just updated numbers to newest version and found that numbers quits to home screen when I tap the information icon on "function  help", it starts to load the "help" then quits. It happens on both my ipad3 &amp; iphone5. I tried restarting the devices but it didn't help.

    Try this  - Reset the iPad by holding down on the Sleep and Home buttons at the same time for about 10-15 seconds until the Apple Logo appears - ignore the red slider - let go of the buttons. (This is equivalent to rebooting your computer.) No data/files will be erased. http://support.apple.com/kb/ht1430
    iOS 7: Help with how to fix a crashing app on iPhone, iPad (Mini), and iPod Touch
    http://teachmeios.com/help-with-how-to-fix-a-crashing-app-on-iphone-ipad-mini-an d-ipod-touch/
    Troubleshooting apps purchased from the App Store
    http://support.apple.com/kb/TS1702
    Delete the app and redownload.
    Downloading Past Purchases from the iTunes Store, App Store and iBooks Store
    http://support.apple.com/kb/ht2519
     Cheers, Tom 

  • Hello. I recently updated numbers on my macbook pro. I like the auto completion feature (proposing te word as I type). With this new update, I cannot see this feature and it doesn't work automatically. Can I have any help on this issue ?

    Hello. I recently updated numbers on my macbook pro. I like the auto completion feature (proposing te word as I type). With this new update, I cannot see this feature and it doesn't work automatically. Can I have any help on this issue ?

    This is really unfortunate. I'm sorry that nothing works. I was going to mention holding down the power button and doing a force shutdown but you already did that. You might need to take it into the Apple store. I don't know if booting into safe mode would help. You would have to turn off the machine again, hit the start button and hold down the shift key after you hear the tone, but normally you would let go of the shift key when you see the apple logo and spining wheel. Maybe by holding down the shift key after you here the tone will cause the screen to come back on? The other option is to start up from the 'install disk' if your machine came with one. You would insert the disk, then shut down the computer, and hold down the C key right after hitting the start button.
    Here's the link for the safeboot
    http://support.apple.com/kb/HT1564?viewlocale=nl_nl

  • TS3694 i tried to update my jailbroken iphone 3gs to iOS 6 and i tried to activate it using redsn0w it uploaded but the phone didn't activate, then i tried to restore it in iTunes and it also wasn't working it shows 3194 error. Please help!

    i tried to update my jailbroken iphone 3gs to iOS 6 and i tried to activate it using redsn0w it uploaded but the phone didn't activate, then i tried to restore it in iTunes and it also wasn't working it shows 3194 error. Please help!

    brigikeh wrote:
    i tried to update my jailbroken iphone 3gs
    Buzz! Thank you for playing!
    Any warranty you had is void and your ability to get help here or from Apple is forfeit.
    Try Google. We can not assist you per the terms of service.
    It's very likely that your phone is now a brick.

  • When i got to general and software update, the update wont show up and it sais searching for update forvever. Help?

    when i got to general and software update, the update wont show up and it sais searching for update forvever. Help?

    Hi spolinski1,
    Thanks for visiting Apple Support Communities.
    You may find the tips in this article helpful with completing your iOS update:
    Resolve issues with an over-the-air iOS update
    http://support.apple.com/kb/TS4431
    Best Regards,
    Jeremy

Maybe you are looking for

  • Recovery from Online backup

    Hai All, I regularly take hot backup via a script. In script copy all datafiles and archivelogs to the backup destination. One conrolfile is created using 'alter database backup control file to c:/backup.ctl' . Thus controlfile is also generated. I c

  • How do I install Lightroom 6 and active it using serial number while I'm a Adobe CC subscriber?

    I'am a Adobe CC for photographer subscriber and I have activated the new Lightroom CC on my desktop computer and one of my laptops. Yesterday, I redeem a Lightroom 6 serial number from Leica product purchasing. When I install lightroom 6 on my anothe

  • Setting focus in JSC

    I have a login screen and I want to set the focus to the user id. I am using the following line of code to do this: <body style="background-color: rgb(204, 204, 204); -rave-layout: grid" onload="document.form1.userIdTextField.focus();"> As you can te

  • Dialog box seems to freeze applescript

    Hi, What I want to do is simple : I try to get focus on an app (that is not scriptable as far as I know), send "quit" action, then send a keystroke to close an annoying dialog saying "cancel" or "quit", then relaunch the app ... The only problem I go

  • Assign Planning Plant for PM orders

    I am working on the configuration of PM and need help to assign a Plant to be able to creat PM order. Currently in my Dev, I have about 4 plants and ONLY 2 plants that allow the users to creat PM Orders and the other 2 are not yet assgned and I need