Problem still there, Please Help me, it is urgent, thanks a lot.

I still can't solve my problem, now I will try to figure out the problem with less codes.
I just try to extends AbstractTableModel, and all my data is saved in a Vector, when I try to insert a blank row into the table, it deadlocked. I found the data I insert is ok, the problem is the fireTableRowsInserted.
here is some code of it:
public void insertRow() {
ToDoItem insert_item=new ToDoItem("", "",new GregorianCalendar());
data.add(insert_item);
System.out.println(insert_item.toDebugString());
//data is ok here
fireTableRowsInserted(0,0);
//program deadlock??????
here is some of the ToDoList:
public class ToDoList implements ToDoRepository {
private Vector theList = null;
     public boolean add( ToDoItem newItem ) {
     return getTheList().add( newItem );
Here is some of the ToDoItem:
public class ToDoItem {
     protected String name = null;
     protected String description = null;
     protected GregorianCalendar creationDate = null;
     protected GregorianCalendar dueDate = null;
     // START constructors -----------------------------
     public ToDoItem() {
          this( "", "", null );
     public ToDoItem( String newName, String newDescription, GregorianCalendar newDueDate ) {
          name = newName;
          description = newDescription;
          dueDate = newDueDate;
          creationDate = new GregorianCalendar();

I have used JTable and DefaultTableModel many times in the past, and I have NEVER invoked fireTableRowsInserted() explicitly. This method is invoked automatically, so you dont have to call it yourself.
That is your problem. Dont extend AbstractTableModel, use DefaultTableModel instead, or extend from DefaultTableModel and override the methods you need to handle data. Do not alter any methods that are involved with event handling. The DefaultTableModel takes care of events for you.
SAF

Similar Messages

  • I am not able to launch FF everytime i tr to open it, it says FF has to submit a crash report, i even tried doing that and the report was submitted too, but stiil FF did not start, and the problem still persists, please help me solve this issue in English

    Question
    I am not able to launch FF everytime i try to open it, it says FF has to submit a crash report,and restore yr tabs. I even tried doing that and the report was submitted too, but still FF did not start, and the problem still persists, please help me solve this issue
    '''(in English)'''

    Hi Danny,
    Per my understanding that you can't get the expect result by using the expression "=Count(Fields!TICKET_STATUS.Value=4) " to count the the TICKET_STATUS which value is 4, the result will returns the count of all the TICKET_STATUS values(206)
    but not 180, right?
    I have tested on my local environment and can reproduce the issue, the issue caused by you are using the count() function in the incorrect way, please modify the expression as below and have a test:
    =COUNT(IIF(Fields!TICKET_STATUS.Value=4 ,1,Nothing))
    or
    =SUM(IIF(Fields!TICKET_STATUS=4,1,0))
    If you still have any problem, please feel free to ask.
    Regards,
    Vicky Liu
    Vicky Liu
    TechNet Community Support

  • My Ipad kept telling me that my apple ID is disable, I have re-set the password, sign off and sign by on, and its still there, Please Help!

    Both my iphone and ipad are telling me that my apple ID is disable on the device, and I have already reset the password, sign out the apple id on the device, and sign back on, but I am still unable to update any of my app, because it is still saying that my apple ID is disabled on my devices, please help!

    You have to contact Support
    http://www.apple.com/support/itunes/contact/

  • When i try to open photoshop this shows up Please uninstall and reinstall the product.  If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.  Error: 16

    i had to take my photoshop file into a hardrive because my dad was going to give me a new Mac and when things didn't work out and went back to my old one i use the time capsule thing to save everything before but didn't give me photoshop so i physically moved the file and tried to open it but then this error shows up
    Please uninstall and reinstall the product.
    If this problem still occurs, please contact Adobe technical support for help, and mention the error code shown at the bottom of this screen.
    Error: 16
    and when i click the uninstall app on the file it tells me this
    The alias “Uninstall Adobe Photoshop CS6 2” can’t be opened because the original item can’t be found
    and when i click fix alias i click on photoshop and the app just turns into photoshop and i just run in circles
    please help thank you

    Run the cleaner tool and reinstall.
    Use the CC Cleaner Tool to solve installation problems | CC, CS3-CS6
    Download CS6 products
    Mylenium

  • HT201263 my ipad give me the apple sign without running up it appears all the time in the screen , i tries to reset my ipad , but still in this problem , can you please help me?

    my ipad give me the apple sign without running up it appears all the time in the screen , i tries to reset my ipad , but still in this problem , can you please help me?

    You may want to look at this about using recovery mode to restore your iPad.
    http://support.apple.com/kb/ht4097

  • Iphone 3GS 3.1.2 syncing problem...Please help....!

    Hi,
    Can anyone out there please help me out...i just recently bought my iphone (n im lovin it to bitsssss)....few days ago ive been trying to sync my iphone with my ITUNES (lastest version) however i get an error saying:
    ITUNES cannot read the content of the Iphone "Iphone". Go to summary tab in Iphones preferences and click Restore to restore to this iphone to default factory settings.
    The problem is i have backed up my iphone 2-3 weeks last time and ive got so much changes apps, photos, settings and app data in it now that im not willing to lose my data. Can anyone help me figure out a way to resolve this either enabling a back up before restoring to default settings or not needing to restore it completely.
    Any help very much appreciated. Thank you.

    See if you can force the phone into recovery mode:
    Leave the USB cable connected to your computer, but NOT your phone, itunes running, press & hold the home button while connecting the USB cable to your dock connector, continue holding the home button until you see “Connect to iTunes” on the screen. You may now release the home button. iTunes should now display that it has detected your phone in recovery mode, if not quit and reopen iTunes. If you still don’t see the recovery message repeat these steps again. iTunes will give you the option to restore from a backup or set up as new.

  • It won't let me drag an effect from the browser all of a sudden. I have always been able to do before. I am using effects from favorites bin and when I try to drag it, it won't move. I have never had this problem before. Please help.

    It won't let me drag an effect from the browser all of a sudden. I have always been able to do before. I am using effects from favorites bin and when I try to drag it to the timeline, it won't move. I have never had this problem before. Please help.
    P.S. I have tried other effects including transitions and it still won't let me drag.

    Wow that was really quick, thank you so much.  Im not sure at all which version it was because i said it was around 4 years ago he bought it.  I know it isn't under his username, since he's a PC person (ugh) so i know its probably registered to one of our actual names.  isn't there some way to look it up since we did register it, because I'm not even sure where the disks are from when we bought it (we've moved a lot and also have two storage lockers, i know i would have kept it with other disks) but my cd rom drive is actually broken on my computer as well ( i think it got stepped on and is now squished and won't eject or run disks.)
    So is there anyway they can look up that its registered to one of our names since we did register it when we bought and installed it, or do i really have to find the disk with some sort of proof of purchase (i know there would be no receipt after all this time)
    either way, ill do what you suggested to the best of my abilities and thank you so much for answering my questions, i can't even open the program as its incompatible and find out the info from that) so I'm in a bit of a pickle and your response was so thorough and it didn't seem to be posted long enough to even write a well researched response, thanks, all the best,
    sarucia

  • My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    My phone wont let me download anything even free stuff or update.it keep saying something wrong with my billing info so i fix it but still cant download.I signed out sign back in still nothing please help i'm getting angry

    If it says your billing info is wrong that means that your credit card issuer is refusing to approve your account. You will have to solve the problem with your bank or credit card company.

  • I want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    want to cahage my peyment method ( i wana do take out my credit card  from there) please help how???

    You can't change to 'None' until you clear up the previous payment problem.  Add a fresh iTunes gift card, or add a credit card, and then once the billing issue clears, you can choose 'None' again.

  • HT4623 My ios update keeps getting stuck on the Restoring iPhone software stage. I uninstalled iTunes and reinstalled it again, but still nothing. Now I can't even use my phone as it shows the plug into iTunes screen. Please help!!!! Thanks,

    My ios update keeps getting stuck on the Restoring iPhone software stage. I uninstalled iTunes and reinstalled it again, but still nothing. Now I can't even use my phone as it shows the plug into iTunes screen. Please help!!!! Thanks,

    A Restore first downloads a new copy of iOS to your computer. On a slow Internet connection this can take a long time. How fast is your connection? How long would you expect it to take to download 900 MB?
    That's assuming nothing is interfering with the download. Some firewalls and antivirus programs will block the download or slow it down. So you should temporarily disable your security software. Security software can also block the update after the iOS download is complete.

  • The camera on my ipad cannot be launched,the shutter appears closed and the button for taking a picture is not there. When tryying to use intsgram the message camera cannot be launched appears .tried to restart but problem still there

    My camera is not working .shutter appears closed.tried to restart ipad but problem still there.no problem with photo booth problem with istangram

    Try closing the Camera app via the taskbar and see if it works properly when you re-open the app : from the home screen (i.e. not with the Camera app 'open' on-screen) double-click the home button to bring up the taskbar, then press and hold any of the apps on the taskbar for a couple of seconds or so until they start shaking, then press the '-' in the top left of the Camera app to close it, and touch any part of the screen above the taskbar so as to stop the shaking and close the taskbar.
    And by restart do you mean a soft-reset : press and hold both the sleep and home buttons for about 10 to 15 seconds (ignore the red slider), after which the Apple logo should appear (you won't lose any content, it's the iPad equivalent of a reboot). If not, and if closing the app doesn't fix it, then you could try that.

  • Hey, I have Final Cut Express 4.0.1 and a JVC everio camera, whenever i try to import my files to FCE via "Log and transfer", it just doesn't do anything, as if FCE doesn't know the camera is there, please help !

    Hey,
    I have Final Cut Express 4.0.1 and a JVC everio camera.
    Whenever i try to import my files to FCE via "Log and transfer", it just doesn't do anything, as if FCE doesn't know the camera is there,
    please help !

    FCE 4.0.1 can only capture DV/HDV which is produced by cameras using Mini-DV TAPES and cameras shooting AVCHD which is a high definition format.
    If your camera shoots standard definition on Memory Cards, DVDs or Hard Drives it will not work in FCE.
    What is your camera's exact model name and number?

  • Hello there. please help me. I thought I have made another plan for photoshop upgrading it for a lig

    hello there. please help me. I thought I have made another plan for photoshop upgrading it for a lightroom package for  22, 00 reals past year and indeed I was able to download the new package.  and that the previous subscription I had for only photoshop would be automatic canceled. but looks like I have been paying for both, as get 2 receipts in my mailbox every month. one for $19,00 and another from a company called  Digital River do Brasil Ltda, um revendedor de comércio eletrônico aprovado pela Adobe.. can please put me on the right track on this one? thanks val

    If it is not accepting another payment method then contact iTunes support here:
    https://getsupport.apple.com/Issues.action

  • Mac Book Air sleeps when moved...i don't know whats the problem...please help me out if anyone knows about this...

    Mac Book Air sleeps when moved...i don't know whats the problem...please help me out if anyone knows about this...

    your reed switch for the monitor is defective, it thinks youve shut the lid when you havent
    mechanical fault , contact Apple for service and parts replacement.

  • I want to ask how to downgrade ios 7 to 6.1.3, because a lot of problems ios 7. please help

    I want to ask how to downgrade ios 6.1.3 to 7, because a lot of problems ios 7. please help

    I'm sorry, but Apple does not provide a downgrade path for iOS. Because downgrading is unsupported by Apple we cannot discuss it on these forums.

Maybe you are looking for