Results 1 to 6 of 6

Thread: table

  1. #1
    NidaSahar is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default table

    Hi All,

    I want to insert variables in table.If I initialize a table then its first field must be int var1 whose value changes in entire program.

    Thanks in advance,

    Nida

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

  3. #3
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default

    Quote Originally Posted by NidaSahar View Post
    Hi All,

    I want to insert variables in table.If I initialize a table then its first field must be int var1 whose value changes in entire program.

    Thanks in advance,

    Nida
    What does that mean?
    You don't initialise database tables...

  4. #4
    NidaSahar is offline Member
    Join Date
    Mar 2011
    Posts
    3
    Rep Power
    0

    Default Re:table

    Thanks for reply

    int var1;
    int var2;
    String columndata={........};
    String data = {};

    JTable table= new Table(data,columndata);

    My question is how I place var1,var2 in String data.

    Thanks

    Nida

  5. #5
    Tolls is offline Moderator
    Join Date
    Apr 2009
    Posts
    12,182
    Rep Power
    20

    Default

    Which has nothing to do with databases.

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

Similar Threads

  1. table
    By danghieu in forum New To Java
    Replies: 1
    Last Post: 05-12-2010, 08:03 AM
  2. Copy Default table model to another default table model?
    By greatmajestics in forum AWT / Swing
    Replies: 2
    Last Post: 04-28-2010, 05:08 PM
  3. Replies: 1
    Last Post: 01-08-2010, 07:19 AM
  4. add a table
    By anvi123 in forum JavaServer Pages (JSP) and JSTL
    Replies: 0
    Last Post: 11-19-2009, 10:06 PM
  5. Table Help
    By CoOlbOyCoOl in forum NetBeans
    Replies: 1
    Last Post: 05-06-2007, 05:19 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
  •