Skip to Main Content

Java SE (Java Platform, Standard Edition)

Announcement

For appeals, questions and feedback about Oracle Forums, please email oracle-forums-moderators_us@oracle.com. Technical questions should be asked in the appropriate category. Thank you!

drawing lines on JTable

843807Jan 8 2010 — edited Jan 8 2010
I need help with drawing lines on a JTable. After making my table this is what i did
Graphics g = table.getGraphics();
g.setColor(Color.red);
g2.draw(new Line2D.Double(x1, y1, x2, y2));
where table is a JTable.
This draws a line with red color where i want it to but then that line disappears in like a second. Can someone help me?
Comments
Locked Post
New comments cannot be posted to this locked post.
Post Details
Locked on Feb 5 2010
Added on Jan 8 2010
7 comments
490 views