I am Using tablecellrendere for a table to add a JPanel at the fourth column.... It is adding to all ..... But i want to add a textfield at first row only....
sankubha 0 Light Poster
Recommended Answers
Jump to PostIn your
getTableCellRendererComponent
method just test therow
parameter to see if this is the first row, then return a JPanel or a JLabel as appropriate
Jump to PostI have no idea how that fragment fits into your program, but anyway, I don't know how to make it any clearer than I did in my first post.
All 6 Replies
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
sankubha 0 Light Poster
JamesCherrill 4,733 Most Valuable Poster Team Colleague Featured Poster
mKorbel 274 Veteran Poster
sankubha 0 Light Poster
mKorbel 274 Veteran Poster
Be a part of the DaniWeb community
We're a friendly, industry-focused community of developers, IT pros, digital marketers, and technology enthusiasts meeting, networking, learning, and sharing knowledge.