• Post Reply Bookmark Topic Watch Topic
  • New Topic

PreapareRenderer doesnt give proper row and column numbers in Advanced Java  RSS feed

 
Madhura Keni
Greenhorn
Posts: 3
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator

Output:

 
m Korbel
Ranch Hand
Posts: 174
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
there are two options

1. for better help sooner post an SSCCE, short, runnable, compilable with hardcoded value for XxxTableModel

2. convert view index to model as is described in official Oracle tutorial How to use Tables (HashMap havent't indexing, you not able, cant to determine 1st., 2nd. or last row, have to use util.List as underlaying array for XxxTableModel)
 
Madhura Keni
Greenhorn
Posts: 3
Eclipse IDE
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Thanks for your reply.Posting a model wont be necessary.That is some database input which is given to the model.But my expected output is

First value of row 1 3

and so on and so forth.
Please can you elaborate if you know why i m geting such random output like


I m just not geting why does index_row and index_col doesnt go sequentially
 
Rob Camick
Ranch Hand
Posts: 2756
12
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Posting a model wont be necessary.


Yes it is if you want help. A proper SSCCE needs to be posted (and getting data from a database is NOT a proper SSCCE, the data should be hard coded as already mentioned).
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!