Results 1 to 3 of 3
  1. #1
    khanzaman is offline Member
    Join Date
    Jan 2009
    Posts
    8
    Rep Power
    0

    Default adding integers in JTable

    ok so i have

    String[] name = new String[]{"A", "", "L", "", "O", ""};
    DefaultTableModel model = new DefaultTableModel(headers, 35);
    table = new JTable( model );
    table.getTableHeader().setReorderingAllowed(false) ;
    scrollpane = new JScrollPane(table);
    scrollpane.setViewportView(table);
    im trying to add the columns that contain integers that the user has inputted. so for ex

    2
    3

    5<<total at the end of the column

    anyone know how to do this.

  2. #2
    camickr is offline Senior Member
    Join Date
    Jul 2009
    Posts
    1,236
    Rep Power
    7

  3. #3
    Fubarable's Avatar
    Fubarable is offline Moderator
    Join Date
    Jun 2008
    Posts
    19,316
    Blog Entries
    1
    Rep Power
    26

Similar Threads

  1. Reading from file and adding to JTable
    By purple in forum New To Java
    Replies: 11
    Last Post: 04-14-2011, 11:33 PM
  2. Adding New JTable in JTable
    By anilkumar_vist in forum New To Java
    Replies: 0
    Last Post: 01-27-2010, 09:27 AM
  3. Adding JButton to a JTable
    By ting.at.net@hotmail.com in forum AWT / Swing
    Replies: 6
    Last Post: 05-26-2009, 04:37 AM
  4. Replies: 2
    Last Post: 04-10-2009, 12:59 AM
  5. Adding information to a JTable in a JTabbedPane
    By bigpappatrader in forum AWT / Swing
    Replies: 0
    Last Post: 12-05-2007, 08:09 AM

Posting Permissions

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