Get the source when mouseclicked
I have a GUI with 36 different JTexFields. They are stored in an array JTextField[].
When I add them to the pane I just use for loop up 36 and add them.
Moving on I have implemented a mouselistener and when I press the right button(on mouse) I want to get the current JTextField[]. Fexample if clicked on the JTexField[2] I need to get number 2.
I have tried with e.getComponent() but I not sure how to cast it to something readable

