File APIs for Java Developers
Manipulate DOC, XLS, PPT, PDF and many others from your application.
http://aspose.com/file-tools
The moose likes Swing / AWT / SWT and the fly likes Jtable model and rendering Big Moose Saloon
  Search | Java FAQ | Recent Topics | Flagged Topics | Hot Topics | Zero Replies
Register / Login
JavaRanch » Java Forums » Java » Swing / AWT / SWT
Bookmark "Jtable model and rendering" Watch "Jtable model and rendering" New topic
Author

Jtable model and rendering

Bubi gupta
Greenhorn

Joined: Sep 21, 2009
Posts: 14
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.


Thanks a lot in advance for your support
BUBI gupta
Michael Dunn
Ranch Hand

Joined: Jun 09, 2003
Posts: 4632
> 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

Joined: Apr 01, 2009
Posts: 643
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

Joined: Jun 13, 2009
Posts: 2153
    
    7
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.


 
It is sorta covered in the JavaRanch Style Guide.
 
subject: Jtable model and rendering
 
Similar Threads
TableCellRenderer performance tuning problem
outOfMemory
Decoupling the GUI
ideas wanted on making this custom JTable cell renderer more efficient
Jtable Rendering