I've created a component that basically is a JPanel
fully covered with (non-editable) JTextArea
s. 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 JTextArea
s.
Is there a way to send the JTextArea
s to background, so the JPanel
is clicked "through" the JTextArea
?
Note: With JLabel
s this works without anything special, the JPanel
s Listener is always fired, but I prefer JTextArea
s, because of the linebreak.