[Okta Webinar] Learn how to a build a cloud-first strategyRegister Now


Making a buffered image of a JTable row

Posted on 2004-11-27
Medium Priority
Last Modified: 2010-03-31
Does anyone have any example code for making a buffered image of a row of a JTable?

Many thanks in advance.
Question by:javaQQ
1 Comment
LVL 92

Accepted Solution

objects earned 500 total points
ID: 12688447
try something like:

Graphics g = image.getGraphics();
Rectangle r = table.getCellRect(row, 0, false)  
g.setClip(r.x, r.y, table.getWidth(), r.height);

Featured Post

Free Tool: ZipGrep

ZipGrep is a utility that can list and search zip (.war, .ear, .jar, etc) archives for text patterns, without the need to extract the archive's contents.

One of a set of tools we're offering as a way to say thank you for being a part of the community.

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

This was posted to the Netbeans forum a Feb, 2010 and I also sent it to Verisign. Who didn't help much in my struggles to get my application signed. ------------------------- Start The idea here is to target your cell phones with the correct…
Java Flight Recorder and Java Mission Control together create a complete tool chain to continuously collect low level and detailed runtime information enabling after-the-fact incident analysis. Java Flight Recorder is a profiling and event collectio…
This video teaches viewers about errors in exception handling.
This tutorial explains how to use the VisualVM tool for the Java platform application. This video goes into detail on the Threads, Sampler, and Profiler tabs.
Suggested Courses
Course of the Month20 days, 4 hours left to enroll

873 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question