• Post Reply
  • Bookmark Topic Watch Topic
  • New Topic

JTable look and feel.

 
Naveen Kumar
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please send me any body having examples on JTable Look and Feel.

Thanks
kumar
 
Russell Peters
Ranch Hand
Posts: 50
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
you gotta post some of your work, before asking someone for help. This place is to try and learn things. You have to be more specific in what you want.

I don't think anybody would be willing to simply send you stuff, without knowing that you tried something and were stuck in it, be it examples or code. :roll:

And if you are still gonna be that generic, all I can say is GIYBF, Sorry!

Good Luck !
[ February 01, 2007: Message edited by: Russell Peters ]
 
Naveen Kumar
Ranch Hand
Posts: 35
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Please see the below link

http://www.trendysoft.com/images/screenshots/1.8/table_blue1.png

In this look and feel i have to do.

So any body can help me.
 
Henrik Engert
Ranch Hand
Posts: 70
  • 0
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Hi,


The first thing you have to do is to write a class that extends AbstractTableModel.

Then depending on what needs to be shown in the table you might be able to use the standard TableCellRenderers that come with JTable. For example to show an image in a Cell you can use ImageIcon as the type and then you would want to override the following method from AbstractTableModel:



Then the getValueAt needs to return an ImageIcon.

This is not something that is easy to do your first time, but once you have done a TableModel it will become easier.

You also have to write this stuff on your own or else you won't learn a thingy.
 
I agree. Here's the link: http://aspose.com/file-tools
  • Post Reply
  • Bookmark Topic Watch Topic
  • New Topic