How to repaint a table after a change in data?????????????3F????????

hi there
i have a table which contains some values. i am able to delete a row from it. but i need to repaint the table, so that the change can be shown. the table is contained in a scrollPane which is contained in a Pane. i understand that to repaint, i need to call revalidate() or repaint() on a component. in my case, which component should i call the function? or it is done in different way? thank you.
my code..
JTable inTable = new JTable(rowDataIn, columName);
JScrollPane spIn = new JScrollPane(inTable);
spIn.setPreferredSize(new Dimension(650,270));
JPanel inPane = new JPanel();
inPane.add(spIn);
..2C270));
JPanel inPane = new JPanel();
inPane.add(spIn);
..

After ur modifications done in a JTable, I think u need to call this method.
fireTableChanged(new TableModelEvent(this)) ;
Here this is a instance of myModel object which extends AbstractTableModel.
Hope it helps.

Similar Messages

  • How to repaint a table after a change in data?????????????

    hi there
    i have a table which contains some values. i am able to delete a row from it. but i need to repaint the table, so that the change can be shown. the table is contained in a scrollPane which is contained in a Pane. i understand that to repaint, i need to call revalidate() or repaint() on a component. in my case, which component should i call the function? or it is done in different way? thank you.
    my code..
    JTable inTable = new JTable(rowDataIn, columName);
    JScrollPane spIn = new JScrollPane(inTable);
    spIn.setPreferredSize(new Dimension(650,270));
    JPanel inPane = new JPanel();
    inPane.add(spIn);
    ..

    After ur modifications done in a JTable, I think u need to call this method.
    fireTableChanged(new TableModelEvent(this)) ;
    Here this is a instance of myModel object which extends AbstractTableModel.
    Hope it helps.

  • PSE 10 tossing images in trash after I change the date on a mac

    Is it normal for PSE 10 to throw images in the trash after I change the date of a image? I have a bunch of images that came in with the wrong date from my camera, I decided finally to correct the date. I noticed my trash can suddenly with content, I opened it and all the images I changed the date on were in the trash can. This makes me nervous if I should empty the trash. Is this normal for these images to get tossed? It doesn't keep the original somewhere?
    I'm on a macbook pro, os x 10.7.2 lion.

    Hi,
    If you are adjusting date time of your images, the new images with new date time are created with the same name as the older ones. So they replace the old files on the disk location. As such the older files (with old date time) are sent to trash. Also, why would one want to clutter his catalog with duplicates having one set of wrong timed media and a duplicate set of correctly timed media.
    I guess this is how organizer understands the workflow.
    So possibly you can safely empty your trash, but this does mean loosing out on your 'old-timed' media.
    Thanks
    andaleeb

  • How to refresh the table after change value in the VO programatically?

    Hi,
    I like to update my table by using a popup. My problem is that the table does not refresh after I change the value in the table's VO by the popup.
    There is another table in the popup, and the popup is triggered by a command button. An af:showPopupBehavior is nested in the button. The method of the button in backing bean is as following,
    public void accountcodeButtonClicked(DialogEvent dialogEvnt) {
    ViewObject volisttable=am.getAcChartValidateView1();
    String nowcode=volisttable.getCurrentRow().getAttribute("Code").toString();
    ViewObject vobasetable=am.getGlDetailView1();
    vobasetable.getCurrentRow().setAttribute("AccountCode",nowcode);
    The partialTrigger of the base table's column AccountCode points to the triggering button.
    I do not know why the base does not refresh after the above method is executed.
    Please me.
    Stephen

    Hi,
    kind of a shame that after so many years of ADF the message that updates should be through the binding layer hasn't gone through ;-)
    You change the underlying business service, which doesn't impact the binding layer the way you do it. So here is what you can try in the same order
    - 1. RequestContext.getCurrentInstance().addPartialTarget(<table reference>)
    - 2. If 1. doesn't show the changed data, try and re-execute the iterator that is the base of the table. If this works then the effect you see is caused because you ignore using the binding layer
    Frank

  • Interactive Gantt chart - how to receive updated XML after user changes

    Hello,
    I failed to receive changed XML after user updates.
    I've constructed following example:
    Created context attribute of type XSTRING, binded it to the "dataSource" property of the Gantt chart control.
    I pass following XML to the control:
    <?xml version="1.0" encoding="iso-8859-5" ?>
    <SAPJNetData version="1.0">
    <Application type="GANTT" version="1.0" />
    <TypeRepository version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" />
    <UserInterface version="1.0" href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" />
    <Graph type="Gantt.Graph" version="1.0">
    <rows>
      <row id="001" />
      <row id="002" />
      <row id="003" />
      </rows>
    <dates timeZone="GEurope/Berlin" locale="de_DE" format="dd.MM.yyyy" dateEnd="20.01.2010">
      <section date="01.01.2010" unit="DAY" unitSize="20" />
    <calendarItem id="Cal.1stDayInMonth">
      <repetition unit="MONTH" />
      </calendarItem>
    <calendarItem id="Cal.1stDayInWeek">
      <repetition unit="WEEK" />
      </calendarItem>
      </dates>
    <view>
      <viewpos date="01.01.2010" />
      </view>
    <chart id="Dummy">
    <timeScale>
    <section index="0">
      <ribbon type="Gantt.CProjects.Ribbon.Month" />
      <ribbon type="Gantt.CProjects.Ribbon.3Days" />
      </section>
      </timeScale>
      <grid type="Grid.CProjects.Gantt.TimeLine" calendarIDs="Cal.1stDayInWeek" />
    <table type="Gantt.Table" id="CProj-Table">
      <defaults typeCell="L.Table" typeHeader="L.Table" />
      <tree showRootIcons="TRUE" />
    <cols showInitially="4">
      <ids>TREE,ID2,ID3</ids>
      </cols>
    <header>
      <header width="30" />
      <label colid="TREE" width="250">Этап</label>
      <label colid="ID2">Дата с</label>
      <label colid="ID3">Дата по</label>
      </header>
    <rows>
      <ids>001,002,003</ids>
      </rows>
    <row>
      <header>1</header>
      <tree>Top Item</tree>
      <label>01.01.2010</label>
      <label>20.01.2010</label>
      </row>
    <row>
      <header>2</header>
      <tree parentRow="001">Subitem 1</tree>
      <label>01.01.2010</label>
      <label>10.01.2010</label>
      </row>
    <row>
      <header>3</header>
      <tree parentRow="001">Subitem 2</tree>
      <label>11.01.2010</label>
      <label>20.01.2010</label>
      </row>
      </table>
    <graph>
    <view>
      <backColor type="White" />
      </view>
    <node id="001" type="Gantt.CProjects.SummaryNode" rowID="001">
    <dates>
      <date>01.01.2010</date>
      <date>20.01.2010</date>
      </dates>
      </node>
    <node id="002" type="Gantt.CProjects.Node" rowID="002">
    <dates>
      <date>01.01.2010</date>
      <date>10.01.2010</date>
      </dates>
      </node>
    <node id="003" type="Gantt.CProjects.Node" rowID="003">
    <dates>
      <date>11.01.2010</date>
      <date>20.01.2010</date>
      </dates>
      </node>
      </graph>
      </chart>
      </Graph>
      </SAPJNetData>
    Then I run my example application, press standard "Save" button in Gantt chart control.
    After that my XML in context changes, but it's incorrect. There is no <graph> tag at all - this tag should contain all significant parameters of the chart.
    The resulting XML below:
    <?xml version="1.0" encoding="UTF-8" standalone="no"?>
    <SAPJNetData build="9295" date="04-Aug-2010 10:19:13" host="localhost" version="1.1247">
    <Application type="GANTT" version="1.0"/>
    <TypeRepository href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_tr.xml" version="1.0"/>
    <UserInterface href="/SAP/BC/WebDynpro/SAP/ZT_INV_WDR_TEST_GANTT/gantPR02P00086_3_ui.xml" version="1.0"/>
    <GraphGantt version="1.1247"/>
    </SAPJNetData>
    All the chart in fact has completely disappeared. There is nothing left but file header.
    The question: How to get XML with all user changes back from the Gantt chart control?

    Long time, hah..
    Anyways thanks to behave like a responsible person on SCN and taking care of your threads..
    Liked.

  • How to manage the tables after deploying an SDA for Oracle

    How can I manage the tables after deploying an SDA  on Oracle.There is tool for MaxDB,but how can I connection to the Oracle Database?
    Thanks

    In J2ee administrator console

  • How to Create a Table in Oracle with XML data type.

    Dear ALL,
    What are the requirements for creating a table with xml datatype in Oracle: The steps would help very much to know the scripting of the table and how to query and either insert/update and remove data from that table.
    Any help, direction, advise would be highly appreciated.
    Thanks.

    Reffer to this Note.243554.1.
    In a nut shell you will need to run catqm.sql

  • Please help! is there a (easy) way to remove/copy files to ext HD without changing ANY date? An d how about e-mail attachments, they also change all dates

    Dear forum readers
    All I want is to copy my pics to another disk without MAC OS change the date on wich I shot them. Pics, sent to me by e-mail also loose there original date. I understand the difference between making a new file by copying, but I don't understand why it change when I remove them.

    There are two kinds of metadata involved when you consider  jpeg or other image file.
    One is the file data. This is what the Finder shows. This tells you nothing about the contents of the file, just the File itself.
    The problem with File metadata is that it can easily change as the file is moved from place to place or exported, e-mailed, uploaded etc.
    Photographs have also got both Exif and IPTC metadata. The date and time that your camera snapped the Photograph is recorded in the Exif metadata. Regardless if what the file date says, this is the actual time recorded by the camera.
    Photo applications like iPhoto, Aperture, Lightroom, Picasa, Photoshop etc get their date and time from the Exif metadata.
    The problem is that the Finder doesn't work with Exif. You need to use an app that understands Exif.
    Regards
    TD

  • How to save Internal table inside Personnel Change Request after JSPcode ??

    HI ,
         I have built up Som Org management Data while running PCR . But when it goes to JSP for form display
    and comes back to SAP. The internal table that I have saved in SAP MEMORY / ABAP MEMORY is getting washed off..
    I m building the table in the INIT method of the BADI ( qisr1) .
    Can any body suggest a way for saving the DATA when control is back from JSP.
    is it posible thr saving in som class private data ??

    SAP and ABAP Memory belong to a user session, in a new session you wont have access to the ABAP/SAP Memory of another session. Seems like you are using a stateless JSP.
    Instead you could use the Shared Memory, check this link: http://help.sap.com/saphelp_nw04s/helpdata/en/14/dafc3e9d3b6927e10000000a114084/frameset.htm or you use a Server-Side cookie, http://help.sap.com/saphelp_nw70/helpdata/EN/bd/4cd23a09313b37e10000000a11405a/frameset.htm
    regards,
    Markus

  • How to keep Internal table after filter in tableview?

    Hi, Im kinda new in BSP, Im an ABAP developer.
    I manage to get info from a SolMan to my internal table using submit importing from memory after clicking a search button and the table is filled.
    The thing is after I execute a filter on any field of the tableView my internal table is not FILTERED, I see the original internal table that I searched.
    I wanna know how can I get the filtered table so if I make a Download to Excel button I want to download the table that Im seeing "filtered" and not the original one.
    Thx
    Edited by: Rodrigo Ariel Giner de la Vega on May 8, 2008 4:41 PM

    Hi Roddy,
    you have probably figured out by now that the tableView filter option only filters which rows are displayed from the itab, is does not actually remove the filtered rows. This makes sense otherwise it would have to rebuilt the itab with each pass to ensure any previously filtered rows are returned if the filter is changed.
    What you can do it access the filter parameters in the OnInputProcessing method of your page. Essentially the HTTP request carries parameters as name/value pairs in either the HTTP header or as form fields. You can get to them like this..
    DATA:
          lt_ffields         TYPE tihttpnvp,
          lt_hfields         type tihttpnvp.
    request->get_header_fields( CHANGING fields = lt_hfields ).
    request->get_form_fields( CHANGING fields = lt_ffields ).
    Where the HTMLB event handling parameters are passed might depend on how you call the HTML form, so have a look in both areas for these parameters. I just did a simple test and they were in the form fields.
    So you can place a button on your screen to trigger your download to Excel and have it call the standard htmlb event processing routines.
    Then when you detect this button has been clicked in the OnInputProcessing method you can apply the tableView filters to the data before you send it to Excel.
    Cheers
    Graham Robbo

  • How to print blank page after group change

    Hi,
    I would like to print my report like this:
    (No1)
    Page1
    Page2
    Blank Page
    (No2)
    Page1
    Page2
    Blank Page
    No3
    How can I make this?
    Thanks
    Gregor
    gt

    Insert an empty frame with a Page Break Before and Page Break After, or use these properties to see if you can get the result you want in your current layout model.

  • How to display a table after clicking on a chart in ssrs?

    Hi all experts,
    I need to display a table control after clicking on a chart. 
    I was looking for the visibility property of the table which can be set based upon click on the bar chart.
    Please respond asap...

    Hi Manisha,
    If I understand correctly, you want to control the table visibility through clicking the chart. In this case, please refer to the detailed steps below:
    1. Create the parameter named Control, check the Boolean option in the drop-down list of the Data Type, and select Hidden in the parameter visibility tab.
    2. Specify the default value of the parameter to True.
    3. Click the series in the chart and select “Action” in the Properties pane and click the ellipsis as follows:
    4. Select the “Go to report” tab, and select the self-report in the “Specify a report” tab.
    5. Pass the parameter as bellows:
      Name:Control  Vaule:false
    6. Right click the table control, select Tablix Properties and select the Visiblity property.
    7. Select the tab of Show or hide based on an expression, and add the expression below:
    =iif(Parameters!Control.Value=true,true,false)
    If you need more assistance, please feel free to let me know.
    Regards,
    Heidi Duan

  • How to load a Hierarchy after a change in the R/3 system?

    Hi All,
    We have a hierarchy in BW hat we extract from R/3. But now they have added two new nodes to the hierarchical structure which is not being reflected in the BW version of the hierarchy. Can you tell me how to load into BW the latest version of the R/3 hierarchy with those two new nodes??
    Thanks Much for any Input,
    Reddy

    Hi Reddy,
    If you have modified just the function module to populate the hierarchy in R/3 then the hierarchies should load fine on BW. However if you have changed the datasource and there is a datasource(active) in the transport request in R/3 then you would need to replicate the datasource in BW and then load the hierarchy. Hope it helps.
    Bye
    Dinesh

  • How to clean database tables after testing?

    Hello, All !
    I'm beginer in eCATT. I have a simple question.
    My test run some transaction. It put record into database table. I need check some fields of this record.
    I want run this test avery day.
    How I can remove record automaticly? It's important because records can't have a douplication.
    Best regards.

    Hello,
    You can delete your entries in the table by logging into the transaction SE16N and entring the table name and selecting your entries to be deleted.
    Thanks & Best regards,
    Ajay

  • How I can install Lion after harddrive change?

    Hello community,
    I got my iMac back from a service provider who have replaced my harddrive, because it had a defect.
    Now I can't start Mac OS Lion. I get no error message, only a folder sign with a question mark.
    I thought the internet recovery mode does help, but it doesn't appear on my system.
    The German Apple Support can't help and suggest to go to another service provider.
    Do you have a idea to solve this problem?
    Thank you in advance.
    Frank

    Ivitini, la única forma para arreglar el problema fue llevar el MacBook Air al servicio técnico de Apple, en mi caso es en Chile y lo llevé a Mac Online, y, como el computador está aun con garantía ellos me reinstalaron todo. Formatearon el disco duro y lo dejaron como nuevo... que era lo que yo quería hacer. Se demoraron 2 días, entre que lo revisaban y le instalaban el sistema nuevamente.
    No me dijeron cual fue el problema, pero lo solucionaron.
    Creo que el problema de fondo puede ser el ROUTER, que de seguro si fuese un router APPLE no tendría problames. El que tengo es un D-Link bien cototo, pero no se la pudo. Esa es la única explicación que tengo al tema.

Maybe you are looking for

  • ITunes doesn't load - saying "Directory iTunes doesn't exist" ????

    Dear all, I have reinstalled iTunes 7.xx and get the same error when trying to start iTunes. The error message tells me: Directory "iTunes" doesn't exist in Dir: "Eigene Musik", but it exists. What am I doing wrong ? Could I please get some help ? Th

  • Tengo 2 ipods uno lo tengo con musica pero el otro solo deseo ponerle mis lecciones de ingles y no puedo.

    HOLA!     Tengo dos iPods, uno quiero que tenga solo musica y el otro que tiene una capacidad de 6.83 GB es version 4.2.1 y su numero de serie es 8K943LDJ75J lo quiero solo para mis lecciones de ingles de la universidad, sin embargo cada vez que lo a

  • How can I extract .rar files?

    I have UnRARX but that doesnt work on the ones I need extracted. I had to use a windows computer to extract the files, but what program for mac will get the job done?

  • DTP is not fetching any data eventhough data is there in psa

    Hi All, I need to load data from existing data source(2lis_03_bf) to new data target, data is available in data source for last 1 year, as my client is retail, and also huge data i tried to load data with filter on BUDAT, for 1 month, but dtp says da

  • No Photos to Import

    G5 PPC, OS 10.4.1.1, 8GB RAM, CS3 Images in HD folder can be opened in PS; when trying to Import into LR 2.3, get error "No photos to Import". In Import dialog, most, but not all, photos grayed out.  The images are definitely there!!