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....
Jump to Post
getTableCellRendererComponentmethod just test the
rowparameter to see if this is the first row, then return a JPanel or a JLabel as appropriate
All 6 Replies
Be a part of the DaniWeb community
We're a friendly, industry-focused community of 1.21 million developers, IT pros, digital marketers, and technology enthusiasts learning and sharing knowledge.