Difference between table and table model

From what I've understood till now, in a JTable, the table itself is actually only a "display area" while the actual data is located in the table model. Is this correct?
Does this mean it is possible to delete rows and columns within the table itself without affecting the actual data in the table model?

Hi,
ok, I will try to answer your second question "is it possible to delete rows and columns in the table but not in the table model"?
The table - lets say the table's view - reflects the data of the data model only, if you fire the correct notification messages via the TableModelListener interface - JTable itself is a TableModelListener and updates its display accordingly to these messages - it never holds data by itself - if something is to be redrawn in the view, JTable ask the model via getValueAt(...) for the data and renders it using one of the cellrenderers delivered by the column of the column model resp. one of the registered default renderers.
Now to your question - you can't delete a row in the tables view, without any change in the table model, as so the data isn't hold by the table's view, it is only held by the table model. But the other way round, it is possible - often accidentially - you can change the data in the table model and forget to fire a notification message for it via the TableModelListener interface - in this case, JTable will not update its view - and the table may look strange, if parts of its view is hidden by other applications and afterwards redrawn, when this application closes. Only the parts, that were hidden, will be redrawn - and this is done with the new data. So, keep track of always sending the correct notification message with every change you make in the table model, so that JTable is able to keep its view up to date.
Hope this helps
greetings Marsian

Similar Messages

  • Differences between 16GB and 32GB Models

    Hi,
    I'm looking at the differences between the 16GB and 32GB Xperia Z tablets (model numbers SGP311GB and SGP312GB) and apart from the differences in memory (obviously ) there doesn't appear to be anything else.
    So, this begs the question what benefit does the internal memory have over an SD card - if I wanted 32GB I could buy the 16GB model and put a 16GB SD card in cheaper than the £50 difference between the two models.
    or, have I missed something less obvious.
    Thanks

    1. The Main function of an SD Card is for media data such as photos videos, music etc.
    2. The Tablet Z supports microSD, microSDHC and microSDXC up to 64GB.
    The FAT32 format will restict the size of files you can move to card.
    Don't forget to mark posts that answers the topic as Accepted Solution. 
    If you find any post helpful, press Kudos.
    What are your thoughts about this forum? Let us know by doing this short survey.
     - Official Sony Xperia Support Staff
    If you're new to our forums make sure that you have read our Discussion guidelines.
    If you want to get in touch with the local support team for your country please visit our contact page.

  • Any difference between 16 and 32GB model other than capacity?

    Hi,
    I've just had my 16GB iPhone 4 stolen, and it's not looking like I'm going to be able to get it back. So I'm going to have to dig deep and buy a new one. But I'd want an upgrade at the same time, to allow me to better cope with the loss. So I'm thinking about the 32GB model (also, i was pushed for space with the 16GB).
    Is there any difference; Battery life, weight, speed, etc between the 16 and 32GB models? Beyond the obvious larger capacity?
    As most will know, bigger hard drives are faster, mainly due to higher areal density, but I don't know how/if this applies to solid state storage. I thought possibly it might use more battery life and be slightly faster.
    Thanks.

    No difference except for storage capacity.

  • What is difference between table space and shchema

    what is difference between table space and shchema ?

    784633 wrote:
    so each user has it own space of tables - schema ?yes, but let's clarify a bit ....
    The "schema" is the collection of all objects owned by a particular user. So if user SCOTT creates two tables, EMP and DEPT, and a view EMP_RPT, and a procedure GET_MY_EMP, those objects (tables, views, procedures) collectively make up the SCOTT schema.
    Those objects will be physically stored in a tablespace.
    A tablespace is a named collection of data files. So tablespace USERS will be made up of one or more data files. A specific datafile can belong to one and only one tablespace. If a tablespace has more than one data file, oracle will manage those files as a collection invisible to the application - much like the OS or disk subsystem handles striping across multiple physical disks.
    A specific object in the SCOTT schema can exist in only one tablespace, but not all objects of the schema have to be in the same tablespace. Likewise a tablespace can contain objects from multiple schemas.
    and can one user to access tables of other users?As others have said - FRED can access tables belonging to SCOTT as long has SCOTT has granted that access to FRED.

  • How to join three tables and practical difference between 10g and 11g

    I want to know with example how to outer join three different tables in Oracle.
    Also if you have any website or reference for understand syntax or performance difference between 10g and 11g then please paste a link in.thanks!!

    Hi,
    897293 wrote:
    I want to know with example how to outer join three different tables in Oracle.The 3rd table comes into the result set the same way the 2nd one did:
    FROM           table_1  t1
    LEFT OUTER JOIN      table_2  t2  ON   ...
    LEFT OUTER JOIN      table_3  t3  ON   ...The join condition(s) for t3 can reference t1, or t2, or both.
    Also if you have any website or reference for understand syntax or performance difference between 10g and 11g then please paste a link in.thanks!!The main manuals all have "What's New" sections near the beginning. For example:
    http://download.oracle.com/docs/cd/B28359_01/server.111/b28286/wnsql.htm#sthref5
    Hoek,
    We've missed you. Welcome back!

  • Difference between ALV and Table control

    Hi folks,
    i want to know the major differences between AlV and table controls.
    i know that table control is designed in screen painter, but i want to know the major diff between Table control and ALV.
    helpful answers will be rewarded.
    Regards,
    Naveen

    Hi Naveen,
    Basically ALV is a way to display the output and Table Control is designed in screen painter through which you can get entries in Table Control, can delete some records etc for further processing and  its not use only for Display.
    <b>ALV is Application List viewer:-</b>
    Sap provides a set of ALV (ABAP LIST VIEWER) function modules which can be put into use to embellish the output of a report. This set of ALV functions is used to enhance the readability and functionality of any report output. Cases arise in sap when the output of a report contains columns extending more than 255 characters in length. 
    In such cases, this set of ALV functions can help choose selected columns and arrange the different columns from a report output and also save different variants for report display. This is a very efficient tool for dynamically sorting and arranging the columns from a report output. 
    <b>TABLE CONTROL:-</b>
    ABAP offers two mechanisms for displaying and using table data in a screen. These mechanisms are table controls and step loops. Table controls and step loops are types of screen tables you can add to a screen in the Screen Painter.
    Rewards if useful.
    Regards,
    Shilpi

  • Hi guru's what is the difference between table and temlate in smartforms

    hi guru's what is the difference between table and temlate in smartforms

    Hi Vasu,
    Template is used for proper allignment of data which table is used for displaying multiple data.
    We can say Template is for static data and Table is for dynamic data.
    Suppose we have a requirement in which we have to allign the customer address in such a way as shown below:-
    Name- Vasu Company- WIPRO Location- Chennai
    Desig- S/W Native - Mumbai
    Then for proper allighnment we can create a template and split that into 3 columns and 2 rows and create text elements for each cell display a proper allighned data at the output.
    When we include a template inside a loop it gives the same property as a table.
    When we have mutiple data which is to be extended to the next page like when we display all employee details in a company we use table.
    Table has 3 sections , HEADER, ITEM ,FOOTER
    The header secntion will be executed once and it will loop at the item level. at the end footer will be executed.
    Hope this gives u some idea..
    <b>Please reward if useful</b>
    Regards,
    sunil kairam.

  • What is the difference between infocube and fact table?

    hi bw gurus,
    what is the difference between infocube and fact table?
    thanks in advance
    bye

    Fact table contains only KeyFigures and foreign keys of dim ids.
    Infocube conatin fact table sorrounded by dimension tables.dimension table contain primary keys of dim ids and SIDs which link to master data.
    https://www.sdn.sap.com/irj/servlet/prt/portal/prtroot/docs/library/uuid/6ce7b0a4-0b01-0010-52ac-a6e813c35a84

  • Difference between "Export" and "Export form Fact Table" package

    Hi experts!
    Could you tell me what is the difference between "Export" and "Export form Fact Table" package?
    Tkanks
    Gabriel

    Hi,
    Basic difference between Export and Export from Fact Table is
    In standard package "Export" : We can perform this function when we are online and we have adequate amount of data to be exported. We can run this package eg: weekly or monthly. Here we use u201CExport Packageu201D to pull the data
    And in the administrative package "Export from Fact Table"   Mostly it is used to do the backend data loading  basically bulk data , also any formula logic has to be implemented on the data in that case we use the administrative package.
    Hope this helps.

  • Difference between table CKMLKEPH and transaction figure of CKM3

    Hi Gurus,
    Having an issue in material ledger transaction and table data.
    There is a difference between table CKMLKEPH and transaction figure of CKM3 for couple of periods.
    Single level price difference for raw material domestic figure coming in transaction CKM3 is not matching with CKMLKEPH table.
    Can you advice the tentative reason of it.
    Thanks in advance,
    MC.

    Hi MC,
    MLHELP_CCS_CONS_CHECK which check the actual CCS and the program
    MLHELP_SPRICE_CCS_INIT for the standard CCS.
    These programs are provided by the ML Helpdesk tool via note 364368.
    Although these reports are used by SAP Support you can execute them in
    test mode to verify your CCS data.
    Regards,Declan

  • Difference between is_published and is_replicated columns of sys.tables

    Hello,
    Can someone please tell me the exact difference between is_published and is_replicated columns of sys.tables? I know is_published is inherited from sys.objects table , but purpose of both the columns are same. However sometimes for some replicated tables
    i have seen is_published = 1 and is_replicated = 0 and for another published database tables value of both columns are 1.
    It is bit confusing. Can you please explain?
    Thanks in Advance.
    -Malkesh

    Is published has a value of 1 for snapshot and transactional replication, and peer to peer.
    Is_replicated has a value of 1 for transactional, p2p, and cdc.
    The values will be 1 for both the pub and the subscriber in p2p, but are 0 for both for all other subscription types.
    The values are always 0 for merge.
    looking for a book on SQL Server 2008 Administration?
    http://www.amazon.com/Microsoft-Server-2008-Management-Administration/dp/067233044X looking for a book on SQL Server 2008 Full-Text Search?
    http://www.amazon.com/Pro-Full-Text-Search-Server-2008/dp/1430215941

  • Difference between table and advanced table

    hi
    what is the main difference between table and advanced table ?
    What are the usages of both the Beans?

    Hi
    OAAdvancedTableBean extends OATableBean to provide declarative support for existing table features that previously required programmatic control.
    OAAdvancedTableBean also provides declarative support for features not available with OATableBean, such as column span in a table column header. Oracle recommend new tables be implemented as "advanced tables"...
    Please Read more info from Jdev Guide..
    Thanks
    AJ

  • Difference between table and tenplate?

    Hi
    What is a difference between table and a template?
    Thanks

    are you refering to Smartforms?
    Well in SF, table is something that contains data. Tables could be dynamic.
    Template is a fixed format. Example if you have a invoice and the format is fixed with several vertical and horizontal lines. And you have terms and condition to be printed at the bottom. And the total amount.
    Now this template will be printed in the form even if there are line items and even if htere is no line items.

  • Difference between Table and Table Type

    Hi
       Can you please let me know the
    Difference between Table and Table Type and
    Difference between Structure and Table Type?
    Regards,
    Sree

    hi,
    table is a data dictionary object in sap. table is of different types
    1. transparent tables
    2. pool tables
    3. cluster tables
    table type gives option for u to select different types of internal tables. they r
    1. standard table
    2. sorted table
    3. hash table
    Structures :
    -Defined like a table and can then be addressed from ABAP programs.
    -Structures contain data only during the runtime of a program.
    -Just like user-defined data type.
    - they are not present in database server and only on application server.
    if helpful reward some points.
    with regards,
    Suresh Aluri.

  • Difference between Table and Container

    Hi,
        Whats the difference between table and container.
    How to create container in smartform.
    Cheers
    Senthil

    Hi,
         I have a requirement to remove a column from an existing container. I removed a column, but still the column showing up.. so I decided to recreate the container again. But I can create only table. How to make this as container.
    Cheers
    Senthil

  • In smart forms-- difference between table and template

    can you please tell me what is the difference between table and template in smart forms,
    and als give me some object developed in smart forms.

    it is not recommended because, when ever we activate the smartform it generates one function module.
    if we transport that driver program and smartform to testing or production, in that server the generated function module name will be differ.
    hope u got it.
    for this we need to use these function modules.
    SSF_FUNCTION_MODULE_NAME
    FM_NAME
    regards.
    santhosh reddy
    reward if useful
    Edited by: Santhosh Reddy on Feb 16, 2008 7:52 PM

Maybe you are looking for

  • Page up and down buttons nor working in preview

    Changes to preview seem to prevent the recognition of the page-up and page0down buttons. How do I fix this or report it as a bug to apple?

  • Wireless printer connection

    I lost my wireless printer connection. It keeps telling me the printer is "offline" What do I do?

  • Joining Multiple facts to the multiple Dimension tables

    Hi All, We have multiple fact tables which are Joined to common Dimension tables. We join them in physical layer and maintain Left outer join in the BMM. I do not get any consistency errors. But when I run report I get error. "could not find level de

  • Bug in OS2 Email client

    The new OS2 email client is pretty slick and works well.   However, it has a number of small bugs and quirks that need addressing. First, when you delete a message, the browser correctly moves on to open the next message. However, if the next one is

  • Unable to co create Bond for Export sale

    Dear Experts, We are dealing with Non exciseable finished goods.For Export Sale when i try to create Bond in J1ibn01the system is showing the error messege "For object J_1IBOND , number range interval 01 does not exist Message no. NR751 Diagnosis The