• Post Reply Bookmark Topic Watch Topic
  • New Topic

Graphics on JTable

 
rahul joshi
Greenhorn
Posts: 1
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
I would like to use JTable in JScrollPane and want to show the Graphics on it. For example a rectangle on JTable starting from 1st row 1st column to 3rd row 6th column. I also want to show few more graphics like this. Can any body help me out?
 
Jim Yingst
Wanderer
Sheriff
Posts: 18671
  • Mark post as helpful
  • send pies
  • Quote
  • Report post to moderator
Offhand, I'd use a glass pane. You can put stuff on the glass pane whichis then overlaid on other components. Check out the Sun tutorial here. You'll have to figure out how to get the exact positions of the cell corners so that you know where to draw the rectangle on the glass pane. Enjoy.
 
  • Post Reply Bookmark Topic Watch Topic
  • New Topic
Boost this thread!