Results 1 to 5 of 5

Thread: Table model

  1. #1
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Post Table model

    Hi people,
    Anyone with an idea on how to create table model with data tht is editable.
    Please help
    Thank you

  2. #2
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

  3. #3
    Manfizy's Avatar
    Manfizy is offline Senior Member
    Join Date
    Nov 2008
    Location
    Germany
    Posts
    193
    Rep Power
    6

    Default

    Quote Originally Posted by Eranga View Post
    Can you explain more clearly what you are talking about table model?
    Ok.I want to create a table store my data in an array.I want to be able to update and change the data and at the same time perfom some calculations on it.
    Is it clear now?

  4. #4
    Norm's Avatar
    Norm is offline Moderator
    Join Date
    Jun 2008
    Location
    SW Missouri
    Posts
    17,308
    Rep Power
    25

    Default

    Are you talking about the JTable class? It uses a TableModel class for its data model.
    The TableModel class has get and set methods.

  5. #5
    Eranga's Avatar
    Eranga is offline Moderator
    Join Date
    Jul 2007
    Location
    Colombo, Sri Lanka
    Posts
    11,372
    Blog Entries
    1
    Rep Power
    20

    Default

    Quote Originally Posted by Manfizy View Post
    Ok.I want to create a table store my data in an array.I want to be able to update and change the data and at the same time perfom some calculations on it.
    Is it clear now?

    So I think you are talking about JTable. To store/updating data on a JTable you have to use data model.

    Did you read Java doc for JTable?

    How to use Table

Similar Threads

  1. Data from a model class won't show up in the table
    By ayampanggang in forum AWT / Swing
    Replies: 3
    Last Post: 11-27-2008, 08:20 PM
  2. thread model in java6 jvm
    By fun_indra in forum Threads and Synchronization
    Replies: 2
    Last Post: 04-23-2008, 06:19 PM
  3. EJB, classes Model
    By Felissa in forum Enterprise JavaBeans (EJB)
    Replies: 1
    Last Post: 07-06-2007, 03:17 PM

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •