JTable

Collapse
X
 
  • Time
  • Show
Clear All
new posts
  • gaya3
    New Member
    • Aug 2007
    • 184

    JTable

    Hi,
    can anyone please say how to insert values in JTable dynamically.
    I need to create JTable(n,2) where values needed to fill dynamically.
    please help me out. Thanks in Advance.

    -Thanks & Regards,
    Hamsa


    -Thanks & regards,
    Hamsa
  • r035198x
    MVP
    • Sep 2006
    • 13225

    #2
    Originally posted by gaya3
    Hi,
    can anyone please say how to insert values in JTable dynamically.
    I need to create JTable(n,2) where values needed to fill dynamically.
    please help me out. Thanks in Advance.

    -Thanks & Regards,
    Hamsa


    -Thanks & regards,
    Hamsa
    I'm not sure what you mean by "where values need to fill in dynamically".
    Perhaps if you post what you have and explain what you want it to be like.

    Comment

    • JosAH
      Recognized Expert MVP
      • Mar 2007
      • 11453

      #3
      Originally posted by gaya3
      Hi,
      can anyone please say how to insert values in JTable dynamically.
      I need to create JTable(n,2) where values needed to fill dynamically.
      please help me out. Thanks in Advance.

      -Thanks & Regards,
      Hamsa


      -Thanks & regards,
      Hamsa
      Simply add/remove/modify rows and call the JTable.tableCha nged method
      given a new TableModelEvent (yourTableModel ) afterwards.

      kind regards,

      Jos

      Comment

      Working...