In my code I want to enable/disable certain functionality based on the context JTextArea is placed.
For Example: If JTextArea is used as a CellRenderer I want to disable certain funcionality.
How can I detect, if a particular JTextArea component is used as CellRenderer or not?