This week's book giveaway is in the Performance forum.
We're giving away four copies of The Java Performance Companion and have Charlie Hunt, Monica Beckwith, Poonam Parhar, & Bengt Rutisson on-line!
See this thread for details.
Win a copy of The Java Performance Companion this week in the Performance forum!
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

Jtable model and rendering

 
Bubi gupta
Greenhorn
Posts: 14
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
One thing I like to know that wether I should be bothered or not about the method calls of the
getValueAt(int rowIndex, int columnIndex) in the table model and the getTableCellRendererComponent () method in the renderer.
I should assume that how the parameters in those method increments is solely determined by java's own UI logic during rendering.
I should not be much bothered about that wright?('');

The renderer asks the model to supply data to paint.If I keep this basic thing in mind will that be sufficient?

One more thing,so basically what things I need to keep in mind during the usages of this method?Just what they do or any specific thing during the method handling?

Thanks once again in advance for you support.
 
Michael Dunn
Ranch Hand
Posts: 4632
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
> One thing I like to know that wether I should be bothered or not about the method calls of the
> getValueAt(int rowIndex, int columnIndex) in the table model and the getTableCellRendererComponent () method in the renderer.

in what context?

if you hop onto a bus, do you ask to see if the driver has a bus drivers licence?
 
Mark E Hansen
Ranch Hand
Posts: 650
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Sun has a really nice set of tutorials on using JTables. Have a look: http://java.sun.com/docs/books/tutorial/uiswing/components/table.html

This should have everything you need to get going with JTables.

Good Luck.
 
Rob Camick
Ranch Hand
Posts: 2600
9
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I should assume that how the parameters in those method increments is solely determined by java's own UI logic


I told you thats the way it works in your last question on this topic 3 days ago.

If you invoke a method, then you need to provide the proper parameters as defined in the API.

If a Java class invokes a method, then you assume it has invoked the method with the proper parameters as defined in the API.

Why do you continue to ask these questions? What is your problem that you are trying to solve? Repeating the same question over is a waste of our time and a sure way not to get help in the future.


 
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic