Bookmark Topic Watch Topic
  • New Topic

how to add a row to a table  RSS feed

 
Hussein Baghdadi
clojure forum advocate
Bartender
Posts: 3479
Clojure Mac Objective C
  • Mark post as helpful
  • send pies
  • Report post to moderator
Hi all , again.
I have extended the AbstractTableModel in my application and every thing
is ok.
my application is connected to a database and displayed the results using this table.
now, I want to add a button, when I clicked it, a new row should be added to the table (I mean to the JTable component), so I can enter some values how to perform this ??
 
Joe Ess
Bartender
Posts: 9426
12
Linux Mac OS X Windows
  • Mark post as helpful
  • send pies
  • Report post to moderator
This has to be one of the most-asked questions in this forum. You'd make quicker progress with your task if you'd use the search feature, or browse the Java Tutorial for examples. And don't forget the Java API Documentation for AbstractTableModel which details the use of methods like fireTableRowsInserted(). . .
 
Gregg Bolinger
Ranch Hand
Posts: 15304
6
Chrome IntelliJ IDE Mac OS X
  • Mark post as helpful
  • send pies
  • Report post to moderator
Please do not post the same question more than once. I am closing this duplicate thread.
 
    Bookmark Topic Watch Topic
  • New Topic
Boost this thread!