I get unwanted duplicate lines when editing the data content of my JTable

I have created an editable JTable (filled with data from an SQL) with a modified instance of AbstractDataModel.
I have a phenomenon that I cannot explain nor fix: each time I edit a data field in the JTable and press ENTER or leave the field, the edited line is duplicated. The extra content is not sent to my SQL (if I recreate the table everything is fine, except that certainly the changed value is lost). The problem must come from the Java code.
Ok, I admit, that I am not a Java pro and might have made a really stupid error, but I cannot find it.
Has someone already seen such a behavior?
Thanks
CCH
Message was edited by:
CCHuser

Now we are drifting away a little from Java and start getting into philosophy ... :-) But one last reply I will do:
I agree that just playing around with the fuse box is dangerous and brings no benefit. But I am not that unknowing in Java... Technically saying I work in IT, but just not as a programmer but rather as a business consultant (I write the functional concepts that later the programmers have to implement and then I have to talk to them to fix functional errors and do the testing). Besides, I hold an official Java Programmer degree. But when not programming professionally and continuously gaining experience, it is very hard to keep your skill up. Therefore I do one or another hobby project with Java that I could also do better and faster with other tools such as Excel, Access or a simple batch job.
My concept for trying new things is to get a piece of code from the internet from which I assume I know roughly what it does. Then I use it in my programs, and while altering it to my needs, I continuously keep searching in API, documentation and tutorials or simple trial and error to get better insight into the details.
And as a scientist you know what I mean when I say that if I try something new, I simply accept for certain details that they work without knowing how. And over time I then take the time for the "how". Many famous people made their inventions by trial and error and while then testing their new observation and changing the surrounding conditions found out why they work. Not that I would claim for myself to be anything close to a genius inventor but I found that the approach works for me to advance in my insights of a solution.
Sincerely CCH
Message was edited by:
CCHuser

Similar Messages

  • Why do I get faint horizontal lines when I print from elements 12 mac

    why do I get faint horizontal lines when I print from elements 12 mac

    Hi Ben,
    I can't reproduce that behavior.  The only two things I can think of at the moment are (1) you accidentally added a shortcut as a panel shortcut instead of a diagram shortcut or (2) the name of the object you specified isn't for the "Multiply" node, but for some other node (you said "Multiplication" in your initial post) that can only be dropped in certain places (i.e. maybe it's a node that is only valid in Simulation diagrams).  Can you post the following lines from your LabVIEW INI file so I can look into it further:
    QuickDropDiagramShortcuts
    QuickDropPanelShortcuts
    Let me know,
    -D
    Edit:  Yeah, what he said. 
    Message Edited by Darren on 10-13-2008 11:28 AM
    Darren Nattinger, CLA
    LabVIEW Artisan and Nugget Penman

  • Force a new line when editing a SMS

    Does anybody know how I can force a new line when editing a SMS for instance,
    Starting the SMS with:
    Dear xxx
    Now I start editing the SMS on a new line....
    Solved!
    Go to Solution.

    Press the 0 button 3x times quickly usually works for me.
    S.
    History: Motorola MR30, Nokia: 7110, 7650, N70, N80, N82, X6 (32GB), Samsung Galaxy SII
    Current: Samsung Galaxy Note3 Black

  • Emails get sent in Mail when pressing the space bar whilst spell checking

    Why do emails get sent in Mail when pressing the space bar whilst spell checking ?? This is beyond annoying. It's been happening for ages on my MBP. I have seen others complain and I can't understadn why this simple bug has not been fixed. Any help on this would be very much appreciated. thank you.

    Hi
    In composing I have Check Spelling "when I click send" selected. I tried on my iMac, my Mail account is sync'd via iCloud etc.. I got the same thing, when you hit send and review your spelling, I need to do that a lot, as well as insert missing words. As soon as you hit the space bar off goes the email. I have seen others complain of this on the google. I have now switched to check as I type but when i make a typo Mail just puts a red line under the word, it doesn't open up the Spell Checker dialog.
    Is there away of resetting my Mail Apps database ? MAybe something is corrupt.
    thanks.

  • Approval List Error when editing the charge account segments.

    Hi All,
    when i edit the charge account segments for purchase requisition approve through r12 iprocurement an error has occurred.
    " An error has occurred in building your approver list. Please contact your system administrator. "
    I think only it will occur when editing the segments occasionally but not consistently.
    Because i tried for requisition second and third time with same account charge segments but there is no error occured.
    Requisition completed for approve.
    Please forward the suggested reply.
    Thanks,
    Praveen Kumar.

    Does anyone have an answer to this question? I am having the same issue and applying patch 10102050 did not work.

  • I am getting error message A12E5 when installing the free 30 day trial for InDesign why?

    I am getting error message A12E5 when installing the free 30 day trial for inDesign...don't know why?

    don't know why?
    Neitehr do we. You are not offering any relevant technical info like what computer you are actually on or the exact error message.
    Mylenium

  • I am unable to get a bullited list when using the synchronized text feature.

    I am unable to get a bullited list when using the synchronized text feature. The option is greyed out and not active. Any tips? Am I doing something wrong?

    This is by default , synchronized text does not alter any style and other visual attributes associated with instance.
    Thanks,
    Sanjit

  • 'Error 8 occurred when starting the data extraction program'

    Hello Experts,
    I am trying to pull master data (Full upload) for a attribute. I am getting an error on BW side i.e. 'The error occurred in Service API .'
    So I checked in Source system and found that the an IDOC processing failure has occurred. The failure shows 'Error 8 occurred when starting the data extraction program'.
    But when I check the extractor through RSA3, it looks fine.
    Can someone inform what might be the reason of the failure for IDOC processing and how can this be avoided in future. Because the same problem kept occurring later as well.
    Thanks
    Regards,
    KP

    Hi,
    Chk the idocs from SM58 of source system are processing fine into ur target system(BI system)...?
    Chk thru Sm58 and give all * and target destination as ur BI system and execute and chk any entries pending there?
    rgds,
    Edited by: Krishna Rao on May 6, 2009 3:22 PM

  • Ü Character being replaced ? when writing the data to CSV from DB in Linux

    Hi All,
    Can anyone help me in understanding the exact cause of my issue
    Issue Description: Ü Character being replaced ? or when writing the data to CSV from DB in Linux.
    Shell used: ksh
    Actual string: MÜNCHENER RÜCKVERSICHERUNGS-GESELLSCHAFT AG
    Output String: M?NCHENER R?CKVERSICHERUNGS-GESELLSCHAFT AG
    locale ouput:
    LANG=en_US.UTF-8
    LC_CTYPE="en_US.UTF-8"
    LC_NUMERIC="en_US.UTF-8"
    LC_TIME="en_US.UTF-8"
    LC_COLLATE="en_US.UTF-8"
    LC_MONETARY="en_US.UTF-8"
    LC_MESSAGES="en_US.UTF-8"
    LC_PAPER="en_US.UTF-8"
    LC_NAME="en_US.UTF-8"
    LC_ADDRESS="en_US.UTF-8"
    LC_TELEPHONE="en_US.UTF-8"
    LC_MEASUREMENT="en_US.UTF-8"
    LC_IDENTIFICATION="en_US.UTF-8"
    LC_ALL=
    Environment variable set: NLS_LANG=AMERICAN_AMERICA.WE8ISO8859P1
    Linux Version: 2.6.18-128.el5 128 bit
    java Version: 1.6
    Oracle DB version: Oracle Database 10g Enterprise Edition Release 10.2.0.5.0 - 64bi
    When i query directly from DB i get the data in right format but when i write the same data to a csv file then the above problem occurs.
    Can anyone please suggest me what could be the cause for this issue?
    Regards,
    Shiva

    Hi Srini,
    We are using Java based ETL specifically written for our application. we are using sqlplus to make DB connections. am using vi editor to see the data. After the Extraction process the data processed in also in the wrong format.
    Regards,
    Shiva

  • Error when updating the data from DSO to cube

    Hi,
    I am getting the error when uploading the data from the ods to cube.
    The following is the error message.
    Unable to determine period for date 20090101, fiscal year variant Z2: Error #
    How can i solve this issue.
    Regards
    Annie

    Hi ,
    fiscal year variant, go into Customizing for Financial Accounting (FI) under Financial Accounting Global Settings >>>Fiscal Year >>>Maintain Fiscal Year Variant.
    check this link ..
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/frameset.htm
    http://help.sap.com/saphelp_scm41/helpdata/en/50/0d89f2ad919c40b95b9ae7583c8c96/content.htm
    Regards,
    shikha

  • How to avoid the split problem when uploading the data from csv file

    Dear Friends,
                  I have to upload data from the .csv file to my custom table , i have found a problem when uploading the data .
    i am using the code as below , please suggest me what i have to do in this regard
          SPLIT wa_raw_csv  AT ',' INTO
                    wa_empdata_csv-status
                     wa_empdata_csv-userid
                     wa_empdata_csv-username
                     wa_empdata_csv-Title
                     wa_empdata_csv-department.
    APPEND wa_empdata_csv TO  itab.
    in the flat file i can see for one of the record for the field Title  as
    Director, Finance - NAR............there by through my code the  wa_empdata_csv-Title is getting splited data as "Director, and  Department field is getting Finance - NAR" , i can see that even though  " Director, Finance - NAR"  is one word it is getting split .
    .......which is the problem iam facing.Please could any body let me know how in this case i should handle in my code that this word
    "Director,Finance - NAR"   wil not be split into two words.
    Thanks & Records
    Madhuri

    Hi Madhuri,
    Best way to avoid such problem is to use TAB delimited file instead of comma separated data. Generally TAB does not appear in data.
    If you are generating the file, use tab instead of comma.
    If you cannot modify the format of file and data length in file is fixed character, you will need to define the structure and then move data in fixed length structure.
    Regards,
    Mohaiyuddin

  • Error 7 occurred when generating the data transfer program

    Hello All ,
    In Master Data Load Process Chain ,  we get error like
    1. System Response
        Caller 09 contains an error message.
    Diagnosis
    Error 7 occurred when generating the data transfer program for the requested InfoSource.
    System Response
    The data transfer is terminated.
    Procedure
    Check the SAP Support Portal for the appropriate Notes and create a customer message if necessary.
    Note : We faced this issue for two days now . Just repeating the load make it success .
    If any one faced and fixed this issue . Please let me know .
    Thanks in advance .

    Hi,
    . Initially goto transaction SE38, Run the program RSDS_DATASOURCE_ACTIVATE_ALL. Give your Datasource name, and source system and check the check box for "Only Inactive objects".
    This will actiavate the given datasource.
    2. Replicate the datasource in RSA1.
    3. Try to schedule the infopackage for the datasource which you have activated now.
    4. IF infopackage runs through, Repeat the process for all datasources ie uncheck the check box, which means it will activate all datasources for the source system.
    Also make sure that there will be enough Back Ground Processor available....
    Reduce the parallel process
    Thanks
    BVR

  • Get postion from vacancy when transfer applicant data

    Dear all,
    Pls tell me how to get postion from vacancy when transfer applicant data? At the Initial data entry, i chose the advertisement that determine vacancy. But when transfer data, i have to choose the position again.
    Best reagrds,
    Quanglv

    Hi,
    IN PB40 enter additional data you assign applicant to position or vacancy, and when u will transfer data to pa position will come automatically...
    Regards,
    Kapil

  • Attribute change run fails - "Error when deleting the data record /B05/X.."

    Hello,
    I get the error message "Error when deleting the data record /B05/X.." on doing the change run.
    I have already done RSRV on this objects and found no errors, but still the activation fails.
    please give your suggestions ASAP to fix the issue as it is on production system.
    Thanks.

    Attribute change run could fails due to 2 reasons-
    (1) attribute xchange run is already runnnig for any toher object(monitor lock) (check by thi prog-RSDDS_CHANGERUN_MONITOR)
    (2) data is loading deleting from the object on which attribut changerun is running.(go in a manage tab and check)
    check this two conditions and rerun the attribute changrun again from program - RSDDS_AGGREGATES_MAINTAIN and give the master data name in the selection.
    Hope it helps you.

  • Not able to EDIT the data in PSA

    Hi Experts,
    I had created cube and it has following seeting
    1) Three  dimensions i.e. Employee_No, Employee_name and Time
    2) Key figures i.e. Salary and Tax
    Procedure What I have followed
    =======================
    1. Created one CSV file and it contains ten records
    2. I created one file interface source system
    3. I had created one infosource
    4. In the change button of infosource I have included four objects i.e. 
        Employee_No,Employee_name, Salary and Tax
    5. I assigned data source to the above infososurce
    6. By creating data package with the selection of PSA and Infoobject parallel in
        the processing button I loaded 10 records into the cube
    7. Next time I tried to use same infopackage with the selection of Only PSA in
        processing button
    8. Than I tried to Edit the data, but pop's with warning message "An internal error
        occured in maintenance module"
    I hope some one reply to this issue.

    hi,
      i think it is becqause u HAVE CHANGED TO only psa option .
    also u can create another infopackage and load the data
    or else u can edit the data in source system instead in ps.
    regards
    pls assign popints if helpful.

Maybe you are looking for