Can anyone help me for the following problem. I need to use mouse listener event on the Text panes that are created dynamically. I need to read the text from the clicked textpane and display it. I am getting the text from the last textpane in any pane i click.Please help.My code goes here..
i need your help. Please guide me to use the mouse events.Thanks in advance.
posted 7 years ago
Perhaps you want to use the MouseEvent's getSource() to get a reference to the actual JTextPane that was clicked. From there you can get its text.
Paper has not yet been outlawed – so let your Java Swing application print with wild abandon: JPDF