I’m searching for an editor like in this example; I mean the “Pick a Color”-Frame, but for the whole row. Is it my issue to fully implement this, or can I expand some exsiting editors?
Share
Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.
Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.
Lost your password? Please enter your email address. You will receive a link and will create a new password via email.
Please briefly explain why you feel this question should be reported.
Please briefly explain why you feel this answer should be reported.
Please briefly explain why you feel this user should be reported.
The default renderers and editors for common column data types are shown here. An editor is chosen for any cell in any row for which
isCellEditable()returnstrue. You can also specify a custom renderer and editor, such as the color chooser you cited. Two recent examples are seen here, but the details depend on your use-case.Addendum: something like an child window
You can pass a reference to the table’s
TableModeland the desired row number to yourRowEditor. You’ll have full access to the table model’s methods, includinggetValueAt(),setValueAt()andgetColumnClass()methods.