I've created a component that basically is a JPanel fully covered with (non-editable) JTextAreas. I want a MouseListener to be fired everytime the JPanel area is being clicked on. I do want to add the Listener once to the JPanel instead of n times to the JTextAreas.
Is there a way to send the JTextAreas to background, so the JPanel is clicked "through" the JTextArea?
Note: With JLabels this works without anything special, the JPanels Listener is always fired, but I prefer JTextAreas, because of the linebreak.