Could You help Please (updating JTable Content)

Sorry for posting again... I really need help... can't update the content of JTable instead it keep adding the columns to the table. How can I remove before add?? I tried couple of things but didn't work...
Please help... bellow is the code i posted on the previous message...
Hi,
How can I remove the content of my table columns before adding the new data?
here is the code the fillout the table everytime the new data is available..
public void FillOutTables()
m_data.setTableData();
jTable1.setAutoCreateColumnsFromModel(false);
jTable1.setModel(m_data);
for (int k = 0; k <AppLetterTableData.m_columns.length; k++)
DefaultTableCellRenderer renderer = new DefaultTableCellRenderer();
renderer.setHorizontalAlignment(AppLetterTableData.m_columns[k].m_alignment);
TableColumn column = new TableColumn(k, AppLetterTableData.m_columns[k].m_width, renderer, null);
jTable1.addColumn(column);
JTableHeader header = jTable1.getTableHeader();
header.setUpdateTableInRealTime(false);
how should I clean the table before adding? should I clean the table or the dataClass (AppLetterTableData) allthough I clear the vector with in the data class (AppLetterTableData) before I add to it.
Very much appreciate your help

I guess I solved the problem but JTable.setValueat(Object value, row, column)
thanx for not responding:)

Similar Messages

  • For some reason I cannot download and install the latest version of iTunes. 11.0.2. Could you help please? Each time I try, I get a command box saying 'The feature you are trying to download is on a network resource that is unavailable. Click Ok to try ag

    For some reason I cannot download and install the latest version of iTunes. 11.0.2. Could you help please? Each time I try, I get a command box saying 'The feature you are trying to download is on a network resource that is unavailable. Click Ok to try again or enter an alternate path to a folder containing the installation package iTunes.ms in the box below.
    Please help!
    Many thanks in advance
    Ben Bentley
    West Midlands
    UK

    (1) Download the Windows Installer CleanUp utility installer file (msicuu2.exe) from the following Major Geeks page (use one of the links under the "DOWNLOAD LOCATIONS" thingy on the Major Geeks page):
    http://majorgeeks.com/download.php?det=4459
    (2) Doubleclick the msicuu2.exe file and follow the prompts to install the Windows Installer CleanUp utility. (If you're on a Windows Vista or Windows 7 system and you get a Code 800A0046 error message when doubleclicking the msicuu2.exe file, try instead right-clicking on the msicuu2.exe file and selecting "Run as administrator".)
    (3) In your Start menu click All Programs and then click Windows Install Clean Up. The Windows Installer CleanUp utility window appears, listing software that is currently installed on your computer.
    (4) In the list of programs that appears in CleanUp, select any iTunes entries and click "Remove", as per the following screenshot:
    (5) Quit out of CleanUp, restart the PC and try another iTunes install. Does it go through properly this time?

  • Could you help please ? I forgot my security questions answer

    Hello to evewryone ! Could you help please ? I forgot my security questions answers !

    The Apple Support Communities are an international user to user technical support forum. As a man from Mexico, Spanish is my native tongue. I do not speak English very well, however, I do write in English with the aid of the Mac OS X spelling and grammar checks. I also live in a culture perhaps very very different from your own. When offering advice in the ASC, my comments are not meant to be anything more than helpful and certainly not to be taken as insults.
    It is suggested that you contact Itunes Customer Support and ask that they transfer your issue to the Account Security Team to reset the questions so that you may configure them again.
    iTunes Support -
    http://www.apple.com/support/itunes/

  • Hi apple! My Mac Book Air wont update so i can have imessage! Could you help please!

    Hi apple! My comp. wont update to a new itunes, imessage, and imovie!

    iTunes is already installed. There no longer is an iMessage. iMessage is now part of Messages. iMovie should be a free download for you when you open App Store along with iPhoto and GarageBand.

  • T528 also says PLAN field is missing. (PA40-BATCH). Could you help please?

    DATA : BEGIN OF itab OCCURS 0,
            infty TYPE p0001-infty,
            pernr TYPE p0001-pernr,  "per no
            plans TYPE p0001-plans,  "pozisyon
            werks TYPE p0001-werks,  "personel alanı
            persg TYPE p0001-persg,  "çalışan grubu
            persk TYPE p0001-persk,  "çalışan alt grubu
            END OF itab.
    DATA it_pprop TYPE pprop OCCURS 0 WITH HEADER LINE.
    PARAMETERS p_file TYPE string.
    AT SELECTION-SCREEN ON VALUE-REQUEST FOR p_file.
       CALL METHOD cl_rsan_ut_files=>f4
         EXPORTING
           i_applserv       = space
           i_title          = 'File path...'
           i_gui_extension  = 'TXT'
           i_gui_ext_filter = space
         CHANGING
           c_file_name      = p_file.
    START-OF-SELECTION.
       CALL METHOD cl_gui_frontend_services=>gui_upload
         EXPORTING
           filename                = p_file
    *    FILETYPE                = 'ASC'
        has_field_separator     = 'X'
    *    HEADER_LENGTH           = 0
    *    READ_BY_LINE            = 'X'
    *    DAT_MODE                = SPACE
    *    CODEPAGE                = SPACE
    *    IGNORE_CERR             = ABAP_TRUE
    *    REPLACEMENT             = '#'
    *    VIRUS_SCAN_PROFILE      =
    *  IMPORTING
    *    FILELENGTH              =
    *    HEADER                  =
        CHANGING
          data_tab                = itab[]
      EXCEPTIONS
        file_open_error         = 1
        file_read_error         = 2
        no_batch                = 3
        gui_refuse_filetransfer = 4
        invalid_type            = 5
        no_authority            = 6
        unknown_error           = 7
        bad_data_format         = 8
        header_not_allowed      = 9
        separator_not_allowed   = 10
        header_too_long         = 11
        unknown_dp_error        = 12
        access_denied           = 13
        dp_out_of_memory        = 14
        disk_full               = 15
        dp_timeout              = 16
        not_supported_by_gui    = 17
        error_no_gui            = 18
        OTHERS                  = 19.
      IF sy-subrc <> 0.
        MESSAGE ID sy-msgid TYPE sy-msgty NUMBER sy-msgno
                   WITH sy-msgv1 sy-msgv2 sy-msgv3 sy-msgv4.
      ENDIF.
    END-OF-SELECTION.
      LOOP AT itab.
        it_pprop-infty = itab-infty.
        it_pprop-fname = 'P0001-PLANS'.
        it_pprop-fval = itab-plans.
        APPEND it_pprop.
        it_pprop-infty = itab-infty.
        it_pprop-fname = 'P0001-WERKS'.
        it_pprop-fval = itab-werks.
        APPEND it_pprop.
        it_pprop-infty = itab-infty.
        it_pprop-fname = 'P0001-PERSG'.
        it_pprop-fval = itab-persg.
        APPEND it_pprop.
        it_pprop-infty = itab-infty.
        it_pprop-fname = 'P0001-PERSK'.
        it_pprop-fval = itab-persk.
        APPEND it_pprop.
        CALL FUNCTION 'HR_MAINTAIN_MASTERDATA'
         EXPORTING
           pernr                    = itab-pernr
    *   MASSN                    =
           actio                    = 'INS'
           tclas                    = 'A'
    *     begda                    = itab-begda
    *     endda                    = itab-endda
    *   OBJPS                    =
    *   SEQNR                    =
    *   SPRPS                    =
    *     subty                    = itab-subty
         werks                    = itab-werks
         persg                    = itab-persg
         persk                    = itab-persk
         plans                    = itab-plans
           dialog_mode              = '2'
    *   LUW_MODE                 = '1'
    *   NO_EXISTENCE_CHECK       = ' '
    *   NO_ENQUEUE               = ' '
    * IMPORTING
    *   RETURN                   =
    *   RETURN1                  =
    *   HR_RETURN                =
          TABLES
            proposed_values          = it_pprop
    *   MODIFIED_KEYS            =
      ENDLOOP.

    Hi Niel,
    For Ex. you have sample data like below.
    Info Provider   A   B   C   D   E   KF1     KF2     KF3
    Cube A        YZ  PQ RS JK LM (20000) 100
    Cube A        AB CD  RS JK LM (60000) 300
    Cube B         #    #   RS JK LM                        200
    Cube A        AB  CD EF GH UV   (0)     500
    Cube B         #    #   OP TV AZ                        200
    Figures in Bracket is what we should ideally get on running formula.
    Now let me try explain you simulation if we keep only C,D & E Info Objects Only. Heres the statement below.
    {KF1,C,D,E,Cube A} = {KF2,C,D,E,Cube A} * {KF3,C,D,E,Cube B}
    As A & B Info Objects are also coming through the level, the transaction data is more at granular level. i.e A wise, B wise, C wise, D wise and E wise by which KF2 is getting determined.
    Just by keeping C D & E KF2 in above case cannot be derived.
    Hence for the above formula KF2 value is 0.
    It will never aggregate KF2 to 300 + 100 = 400 and then multiply by 200. Reason being if it does it, it will get a value 400*200 = 80000. Now how will it divide this 80000 into
    (YZ  PQ)  &  (AB CD) combination if we dont keep A & B info objects in the FOX. For such dilamma BPS never aggregates key figures on its own. It considers the same granularity level of the key figure as it coming through the level in lead coln. And the granularity level you have kept in FOX and in level is different.
    In short, you where trying to calc key figure values at a higher level but data flowing the planning level is more at granular level.
    Hope this clarifys.
    Thanks,
    Mihir

  • HT4623 i have updated my iphone to ios 6.0.1 but it is not activating so please could you help me out....while inserting in itunes it showing no sim card inserted

    i have updated my iphone to ios 6.0.1 but it is not activating so please could you help me out....while inserting in itunes it showing no sim card inserted

    All iPhones sold in Japan are carrier locked. The Japanese carriers do not offer unlocking.
    You can not use that phone on a carrier other than the one it is locked to.
    Sell it and buy one you can use.

  • My friend have problem in his system in macbook pro. after he update it. the macbook get restart every 10min. he so upset. please could you help him? thanks

    hello best stor in the world
    my friend have problem in his system in macbook pro. after he update it. the macbook get restart every 10min. he so upset. please could you help him?
    thanks

    thanks, but he wants this updeta.
    because has many specile features not found in the old update

  • I have had a update on my mini ipad and its asking for a code could you help me out please

    I have got a iPad mini a update has come though and its asking me for a code when i click update could you help me out please

    TheArtificialNerd wrote:
    I can say 100% that the AppleCare phone number only redirects to other AppleCare groups.
    ALL of them Apple corporate or Apple Authorized partners.

  • I would need to install Adobe Connect Add-in Test for only one webinar. When I pressed instal button -  it said to me - it cannot be written on hard disc. Could you help me, please. Bretislav

    I would need to install Adobe Connect Add-in Test for only one webinar. When I pressed instal button -  it said to me - it cannot be written on hard disc. Could you help me, please. Bretislav

    After posting my concern/question, especially in regards to the optical drive, I read this on this forum:
    Jul 11, 2011 5:21 AM      
    I would like to update my macbook pro from Tiger to Snow Leopard, but my optical drive is not working. Can I take my macbook pro into the apple store and have them install it via a portable drive?
    MacBook Pro, Optical drive is no longer working
    Another poster replied, "Yes, I believe they will."
    Is this true? Can someone verify this?  Any idea of cost?  I really don't need my optical drive.  Besides, end of year, I'm getting a new Mack Book Pro.

  • I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I have a problem with my iphone 4. My 3G always stays activated but I lose my network signal. The bars all get lost and I'm not able to receive / send sms, mms or phone calls. Could you guys please help me fix this problem? Ios 5.1.1

    I haven't gotten a new sim card because the problem has been presenting itself in various cards not only mine. So far, all I've done is reset my network settings.
    Last night, I turned off the 3G tab and it had all the signal bars. Today, I did the network reset and it's working apparently. But like I said before, previously the bars just disappear and the iphone only has the 3G activated.

  • TS1453 Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Hi, I bought Apple tv traying to rent a movie but there problem with itunes, and there is on apple tv don't have my country. could you help me please how can I solve this problem?

    Whinston,
    I live in Azerbaijan. Recently I bought apple tv in New York. When I come back to my country tried to rent movies from my country but couldn't find my country name on apple tv menu, so there is a problem I don't know how to fix it. is there have another way to take a rent movies?

  • My iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!

    my iPod has not been working for a month now and i was hoping that you could help me.The part where you charge and sync the iPod is not connecting.There is defiantly not the lead as we use it for the iPhone and that works please could you help!
    yours sincerly
    jackfromsurrey

    What I am saying is ..........
    The iPhone HAS to be active making calls on the UK carrier network for the carrier to identify as "theirs" and therefore eligible for the Carrier to unlock
    The way to achieve this is to use a PAYG sim making and receiving calls to establish a customer relationship  with the Carrier and then follow the Carrier's process to unlock
    With a PAYG it usually means adding a specified (by the carrier ) amount  usually £15 /£20 depending on the carrier
    This is how O2 function and according to Gemma  this is how Vodafone work

  • I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    I moved to new house where I have wifi base station I made extension via TP-link power line adapter and connect my Airport utility 6.3.2, but I don't now how to set up as a second network with one IP address?Could you help me please?

    Urvergessen wrote:
    +You may have already done this, but do you have the first AirPort Express configured to "Allow this network to be extended"?+
    Could not find that setting anywhere.
    It's in AirPort Utility, AirPort panel, Wireless tab.
    When I'm within the range of the base station I connect normally, but further away the connection drops despite the fact that the other Airport is very close and light is green. Interestingly, my PB Pro has signal almost everywhere in the house, but my iPhone and Mac Mini don't. Most likely just a hardware difference?
    In AirPort Utility with the second Express, in the AirPort panel, Wireless tab, have you checked "Allow wireless clients"?
    The second AP does show an IP address: 10.0.1.3.
    With a "Configure IPv4" setting of "Using DHCP", that suggests that the second Express really is connecting to the first Express. In that case I have no other explanation of your your problem.

  • Hi, I'm trying to download applications, but after I enter my ID password it's giving me window - cannot open iTunes? Please could you help me with the solution

    Hi, I'm trying to download applications, but after I enter my ID password it's giving me window - cannot open iTunes? Please could you help me with the solution

    What did you have to do? I am having the same window come up and I read all of the support trouble shooting. Still won't work.
    I need help please.

  • Right now I changed my ID but when I am trying to update my apps only see this message " Your Apple ID is been desactivated". Could you help me

    Right now I changed my Apple ID but when I am trying to update my apps only see this message " Your Apple ID is been desactivated".
    Could you help me

    This may help:
    http://support.apple.com/kb/ts2446

Maybe you are looking for