Win a copy of Murach's Python Programming this week in the Jython/Python forum!
  • Post Reply Bookmark Topic Watch Topic
  • New Topic

JTables & dynamic update  RSS feed

 
Stu Chapman
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I'm trying to write a small program for use as an invoicing package. I'm trying to use the JTable as an input field for the invoice.
What I want to do is let the user input a value in, e.g. cell (0,0) (top left) of the table, and upon pressing the enter key I want to fill the other columns of the table with information gathered from a database.
(The scenario is that a product code is being entered, and I want to display the details of that product, it's price etc in the Table).
Any help will be greatly appreciated.
 
Paul Stevens
Ranch Hand
Posts: 2823
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
So what is your question? Have you looked at the java tutorial on tables? You create your own model and fill it.
 
It is sorta covered in the JavaRanch Style Guide.
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!